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


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 = "";
if(url[4] == "ru") window.location.href = "";
else window.location.href = "";

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