PROBLEM WITH CART BUTTON USING MULTILANGUAGE APP

edelfc44
Tourist
3 0 0

The problem is that if I go to my cart while I'm on site.com/de, it goes to site.com/cart instead of site.com/de/cart. I want the de, en, fr or whatever the language selected to stay as is.


I want to change the url for the Go to Cart button on my minicart
From site.com/cart to site.com/en/cart if English is the current language selected.

Replies 2 (2)

PaulNewton
Shopify Partner
6275 574 1324

Hi @edelfc44 clarify:

  1. is it when you enter the url site.com/de you are redirected to site.com/cart
  2. Or there is a button that you click that goes to site.com/cart even when your url is site.com/de?

If #2 the button code needs to be localized to use Locale-aware urls:

https://shopify.dev/themes/internationalization/multiple-currencies-languages#locale-aware-urls 

 

 

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


edelfc44
Tourist
3 0 0
Do you know if there's a short code that I can put inside the href tag?
Something like {{ request.locale.iso_code }}