Link add to cart in multilingual website

  • Posts: 5
  • Thank you received: 0
  • Hikashop Essential
5 months 3 weeks ago #309423

In my multilingual website I want to add links to add a product to the shopping cart.
This works fine for the default language by copying the HTML-code from the product page in the backend. However, if I click the link in another language the dreaded HTML 404 error page appears, because the URL points to the wrong page.
Do you know how I can tweak the link such that the cart is opened for the correct language?

I am running the latest HikaSop Essential.

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

  • Posts: 67920
  • Thank you received: 10117
5 months 3 weeks ago #309429


Well, it depends on how your website is configured and how the languages are setup. I suppose that you'll need to add the language tag in the URL, but maybe it also means changing the alias of the menu item...
The simplest is to use the content tag plugin:
It will generate the add to cart button based on the current situation and on top of that, it will support the HikaShop cart notification plugin to display the notification, refresh the cart module areas etc. Finally, since it will handle things dynamically, it should have no problem with different languages.

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

Time to create page: 0.050 seconds
Powered by Kunena Forum