Wishlist page product link cannot use other language

Wishlist page product link cannot use other language

JonathanG
Shopify Partner
2 0 0

Hi All,

 

My shop setup language English, Deutsch. Default is English. 

When I use Default language open a product, the link show: *.myshopify.com/de/product/*, added to wishlist.

Open wishlist page, the address is *.myshopify.com/de/wishlist,  I click the product, that auto open *.myshopify/com/product/*,  so the page change to default language(english).  How can I fix.

 

Wishlist use theme.js: e.url: code as follow: 

{var i=n[t];Shopify.getProduct(i,function(e){var t="",a=e.price_varies?"from "+theme.Currency.formatMoney(e.price_min,theme.moneyFormat):theme.Currency.formatMoney(e.price,theme.moneyFormat),
n=0!==e.compare_at_price_min?theme.Currency.formatMoney(e.compare_at_price_min,theme.moneyFormat):"";t+='<div class="wishlist-item-wrapper price--on-sale">',
t+='<div class="wishlist-item-wrapperbox">',t+='<div class="wishlist-main-wrapper">',t+='
<a class="wishlist-img-wrapper" href="'+e.url+'">',t+=' <img src="'+e.featured_image+'"/>',t+=" </a>",t+=' <div class="wishlist-name-wrapper">
<a href="'+e.url+'" class="title-prouct" >'+e.title+"</a>",t+=' <s class="price-item price-item--regular">'+n+"</s>",t+=" <span> "+a+"</span></div>",

Thanks!

Reply 1 (1)

richbrown_staff
Shopify Staff
652 96 171

Hi @JonathanG it sounds like something is not using the routes object. There's a good guide here

To learn more visit the Shopify Help Center or the Community Blog.