Reply To: Multilingual website – different cart URL-s problem

Hi,

Ok, i tried with url[3] and url[4] but this script is not working. Also, it shows that reservation is successfully sent but even with the default language (english) no redirection to the WooCommerce cart page is done.

My current script code:

var url = window.location.href.split(“/”);
if(url[4] == "et") window.location.href = "http://mysite.com/et/korv";
if(url[4] == "ru") window.location.href = "http://mysite.com/ru/korzina";
else window.location.href = "http://mysite.com/cart";

Can i send you my website credentials so you could take a quick look at it?

Regards,
J.