The Problem
Our default language is English but we can’t checkout in Japanese anymore, even when Japanese is selected in the language switcher.
The Solution
Open wholesale-all-in-one.liquid file and go to wholesaleDiscountReq function:
Find code in function response:
redirectToURL(response.checkout_url);
Replace with:
redirectToURL(response.checkout_url);
if($(".translation-lab-language-switcher").val() == "ja"){
var vl = response.checkout_url.replace("/checkout","/ja/checkout");
redirectToURL(vl);
}else{
redirectToURL(response.checkout_url);
}
See this screenshot for more information:
You can further manipulate code according to your requirements.
Comments
0 comments
Please sign in to leave a comment.