Currency selector - Only show currency options

Currency selector - Only show currency options

Magnus_
Tourist
11 0 1

Hello. 

Currently my currency selector force customers to select their country. In EU there are 26 countries but on my shop you can only select between two currencies. I would appreciate if my selector only give the customers the option to choose between pricing in EUR or DKK. 
I have already created a separate Market for Denmark and Euro Zone. Thanks in advance.

Replies 2 (2)

steve_michael2
Trailblazer
439 38 55
Hey @Magnus_ ,

To simplify your currency selector and only allow customers to choose between EUR and DKK, you can customize the currency selector in your Shopify theme. Here's how you can do it:


Steps to Update the Currency Selector

  1. Go to the Theme Editor:
    In your Shopify admin, navigate to Online Store > Themes, and click Customize on your active theme.

  2. Edit the Code:

    • Click Actions > Edit Code in your theme settings.
    • Locate the file that handles the currency selector, usually header.liquid, theme.liquid, or a specific section like currency-selector.liquid.
  3. Restrict the Available Currencies:
    Modify the code to limit the currencies to only EUR and DKK.
    Example:

 

<select name="currency" id="currency-selector">
    <option value="EUR">Euro (EUR)</option>
    <option value="DKK">Danish Krone (DKK)</option>
</select>

 

 

 

  • Update JavaScript (if needed):
    If your currency selector dynamically generates options, locate the relevant JavaScript file (often in assets) and filter the options to include only EUR and DKK.

  • Test the Selector:
    Preview your store and test the currency selector to ensure it only displays EUR and DKK.

Considerations

  • Since you've already set up separate markets for Denmark and the Euro Zone, the currency selector should ideally reflect this without showing unnecessary options. If your theme uses Shopify's native Markets API for currency detection, this adjustment may already align with customer geolocation.

  • If you're not comfortable editing the theme code, you can use an app like Geolocation by Shopify, which allows you to set region-specific currency preferences.

 

Crafting exceptional online experiences with innovative design and technology.

Try Big Bulk Discount To Boost Your Store Sales with Volume/Tier Discount

topnewyork
Astronaut
967 133 164

Hello, @Magnus_ 

Go tot the Online Store >> Search Bar >> You can download app Libautech: Currency Converter then you can add these countries in your store. 

Thanks!

Need a Shopify developer? Hire us at Top New York Web Design
Boost Your Store Sales with Volume/Tier Discount Try Big Bulk Discount
Create New Shopify Store For Just 1$/Month