module class suffix not working

  • Posts: 490
  • Thank you received: 2
3 years 8 months ago #322244

-- HikaShop version -- : 4.3
-- Joomla version -- : 3.9.18
-- PHP version -- : 7
-- Error-message(debug-mod must be tuned on) -- : none

hi

im trying out a new template with css4. my problem is that the module class suffix i add on the cart module doesn't appear when inspected . My cart module is suppose to appear only on mobile or xs. im using d-block d-sm-none visible-xs as classes. i added css3 library just to make sure since my template is css4 capable. But the class suffix is still not appearing when inspected

i also tried to use an ordinary custom template to check if the issue is the template but it works. i added a module that says "test should dissapear on sm". on the photo it disappears on larger screens because the classes are taken into account. i guess no problem with the template.

how can i make hikashop recognize the class suffix? or how to fix?

i send a photo.

please help

thanks

Attachments:
Last edit: 3 years 8 months ago by ronron.

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

  • Posts: 81484
  • Thank you received: 13062
  • MODERATOR
3 years 8 months ago #322251

Hi,

I checked on my end and it seems that since a few versions of Joomla, the parameters of the modules are not decoded by Joomla anymore. So the module itself has to do it to read the settings.
So if you add the code:

if(!empty($module->params) && is_string($module->params))
	$module->params = json_decode($module->params, true);
in the file modules/mod_hikashop_cart/mod_hikashop_cart.php before the code:
$html = trim(hikashop_getLayout('product','cart',$params,$js));
it will work again as it did before.

We'll add that patch on our end too.

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

  • Posts: 490
  • Thank you received: 2
3 years 8 months ago #322329

great its working

thanks

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

Time to create page: 0.059 seconds
Powered by Kunena Forum