A store owner wants to merge separate language (LT/NL) and currency (EUR) selectors into a single button that switches both simultaneously. Currently, two separate buttons exist, and hiding either one causes products for specific markets to display incorrectly.
The Problem:
Hiding one selector breaks market-specific product visibility
Both buttons must be set correctly (NL → NL EUR, LT → LT EUR) for proper product display
Goal is to simplify customer experience with one unified control
Proposed Solution:
Customize theme code by combining switchers into a unified JavaScript function
Create a button that updates both locale and currency parameters in the URL simultaneously
Ensure Shopify Markets is properly configured with both languages enabled and currencies assigned per market
Verify market-specific product catalogs are enabled in Settings → Markets
The solution involves modifying header.liquid with custom JavaScript that detects current locale and redirects to the appropriate language/currency combination, relying on Shopify’s built-in market system to handle region-based product availability.
Summarized with AI on November 1.
AI used: claude-sonnet-4-5-20250929.
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.