Link add to cart in multilingual website

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

Hi,
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: 66619
  • Thank you received: 9806
  • MODERATOR
2 weeks 6 days ago #309429

Hi,

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:
www.hikashop.com/support/documentation/1...-product-insert.html
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.045 seconds
Powered by Kunena Forum