April 10, 2014 at 10:47 /
Sorry for my dumb questions but i am not very good at scripting.
So, the full code for three languages should be this:
var url = window.location.href.split(“/”);
if(url[4] == "ge") window.location.href = "http://www.mysite.com/ge/cart-ge";
if(url[4] == "ru") window.location.href = "http://www.mysite.com/ru/cart-ru";
else if window.location.href = "http://www.mysite.com/cart";
Is it correct for the all three languages (english, german and russian) or is there a mistake? If there is a mistake, would you be so nice and correct it?
Thanks in advance,
J.