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}`;
};
Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024