Hikashop stripping out code of modules when loaded via template overrides

  • Posts: 366
  • Thank you received: 7
  • Hikashop Business
7 years 7 months ago #279706

-- HikaShop version -- : 3.2
-- Joomla version -- : 3.8
-- PHP version -- : 7
-- Browser(s) name and version -- : any

Hi,

I have overridden the product/tmpl/show_defaul.php file to include a module on the page.

I have included the following code to load the module.

<?php
	$mypostion="{loadposition bid}";
	echo JHTML::_('content.prepare',$mypostion );
?>

However, when loading a rsForm Pro form the <form> tags are stripped out and the form doesn't work?

If I load the same module on the same page, but in a template position it works fine.

It seems Hikashop is stripping out some of the code?

Help please! :)

Many thanks.

Please Log in or Create an account to join the conversation.

  • Posts: 26232
  • Thank you received: 4035
  • MODERATOR
7 years 7 months ago #279725

Hello,

I don't think that the <form> tag is stripped out ; but I guess that you're breaking the DOM.
So if you look at your page via the browser DOM inspector, you'll see a strange result but the page source code will right have the generated content ; it's just that the content is invalid.
The reason is that you can't add a form into a form.
And because the product page is a form (product / show); you cannot add any other form into.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 366
  • Thank you received: 7
  • Hikashop Business
7 years 7 months ago #279744

Hi,

Thanks for your answer. Sorry I thought turning the buy now buttons off (catalogue mode) would remove the product form.

Thanks for your help.

Please Log in or Create an account to join the conversation.

Time to create page: 0.033 seconds
Powered by Kunena Forum