- Posts: 22
- Thank you received: 0
content module under the product page in a multilingual site
-- HikaShop version -- : 4.5.1
-- Joomla version -- : 4.1.3.
-- PHP version -- : 8.0
-- Browser(s) name and version -- : Google Chrome
I have a site in two languages. I'd like to show a particular module under the product page.
I have the module in the French version and in the Dutch version.
Now it shows both modules in both languages! That is not how it is meant to be.
I already installed moduele manager of regular labs and included the Dutch language for the Dutch module and French for the French version.
But it seems that the settings in Hikashop configuration are overruling this.
What can i do to make it working as it should be?
Please Log in or Create an account to join the conversation.
In the settings of the modules, you need to select the language for which each module is:
i.imgur.com/UKDizag.png
It's not a setting of Advanced Modules Manager, but a default setting of Joomla, once you've configured several content languages on your website.
Please Log in or Create an account to join the conversation.
Instead of that, you get the possibility to set up conditions, when the module has to be shown on the frontend:
Unfortunately, both modules (Dutch and French) are still shown on the frontend in the French version.
Please Log in or Create an account to join the conversation.
Unfortunately, I don't know how these conditions work and what would be needed in HikaShop to have them supported.
HikaShop is directly loading the modules from the Joomla "modules" table (and take into account the language set in the module at that time) and then uses JModuleHelper::renderModule() to display the HTML of the module.
What you can do is to go in your PHPMyAdmin and open the modules table. There, search your modules and once found, edit them and change the "language" to the language code (like en-GB or fr-FR) and save.
Please Log in or Create an account to join the conversation.
This is the last reply I got: "To get it to work with Advanced Module Manager, HikaShop should pass the list of modules through the onPrepareModuleList event."
Please Log in or Create an account to join the conversation.
Thanks, that's the information we needed from them.
Then, add the code:
Please confirm that it works so that we can include the change on our end.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
You've added a "@" at the end of the line:
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Can you activate the "debug system" setting of the Joomla configuration and try again ?
It should hopefully display an error message with more information on where the problem is.
Please provide the information you get on the page (a screenshot ?)
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Thanks. However, I don't see why you get that error. It doesn't even seem to be linked to the "modules under the product page" but something between the template and the cart module.
Can you try again with the default template of Joomla ? Do you have the issue with it ?
And if you remove the code you added you don't get the error ?
On my end, whether I have the code or not, I don't get the error so I'm not sure what's going on.
Please Log in or Create an account to join the conversation.