Global expansion, localizing content, and selling in multiple currencies and languages
I'm working on multi-market features and I'm struggling to have the correct URL.
I'm following this documentation which definitely is what I'm looking for but it does not work.
https://shopify.dev/docs/themes/markets/multiple-currencies-languages#locale-aware-urls
<a href="{{ routes.cart_url }}">{{ "templates.cart.go_to_cart" | t }}</a>
It should be a no-brainer but it does not work, I have still base URL.
To be more specific:
https://findify-liquid-playground.myshopify.com/en-mx/
The /en-mx/ is NEVER shown.
Solved! Go to the solution
This is an accepted solution.
For the time being I will rely on Javascript side, so rather than having links on <a href="{{ routes.url }}" I will bind an click event and then do this:
const getSearchDestination = (query) => {
const root = window.Shopify.routes.root ? window.Shopify.routes.root : '';
return `${root}search?q=${query}`;
};
This is an accepted solution.
For the time being I will rely on Javascript side, so rather than having links on <a href="{{ routes.url }}" I will bind an click event and then do this:
const getSearchDestination = (query) => {
const root = window.Shopify.routes.root ? window.Shopify.routes.root : '';
return `${root}search?q=${query}`;
};
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025