I see that you’re trying to simplify the selection process by merging the language and currency switcher into a single button while ensuring the correct products appear for each market. Right now, having separate buttons works fine, but hiding one disrupts the product visibility per market, which means Shopify’s market settings and translations are tied to separate controls.
Solution:
To create a single button that switches both the language and currency at the same time, you’ll need to customize your theme’s code by combining the language and currency switchers into a unified function.
Here’s how you can do it:
1. Modify the Theme Code
You’ll need to create a button that updates both the locale (language) and currency together when clicked. Open your theme’s header.liquid (or the file that contains the current language and currency selectors) and add the following:
Switch to NL
2. Update the Language and Currency Settings in Shopify
Make sure that:
Your store has Shopify Markets set up correctly for both LT and NL.
Both languages (LT & NL) are enabled under Settings → Languages.
The respective currency (LT EUR, NL EUR) is assigned under Markets → Market Settings.
3. Ensure the Correct Products Load Per Market- Go to Settings → Markets and verify that each market has specific product catalogs enabled.
Shopify automatically adjusts the product visibility based on the market setup, so linking the locale and currency via URL parameters should resolve the issue.
Final Thoughts
This method will allow you to have a single button that dynamically switches both language and currency while keeping the correct products visible per market. Since Shopify’s system already handles region-based product availability, using the locale and currency parameters together ensures a smooth customer experience.
If you need any other assistance, feel free to ask, and I will try my best to support you.
Best regards,
Daisy.