- Posts: 490
- Thank you received: 2
module class suffix not working
6 years 2 months ago - 6 years 2 months ago #322244
by ronron
module class suffix not working was created by ronron
-- 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
-- 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
Last edit: 6 years 2 months ago by ronron.
Please Log in or Create an account to join the conversation.
6 years 2 months ago #322251
by nicolas
Replied by nicolas on topic module class suffix not working
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:
in the file modules/mod_hikashop_cart/mod_hikashop_cart.php before the code:
it will work again as it did before.
We'll add that patch on our end too.
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:
Code:
if(!empty($module->params) && is_string($module->params))
$module->params = json_decode($module->params, true);
Code:
$html = trim(hikashop_getLayout('product','cart',$params,$js));
We'll add that patch on our end too.
Please Log in or Create an account to join the conversation.
6 years 2 months ago #322329
by ronron
Replied by ronron on topic module class suffix not working
great its working
thanks
thanks
Please Log in or Create an account to join the conversation.
Time to create page: 0.200 seconds