Hi,
I would like to remove countries and keep only the currencies in the country/currency selector in dawn theme so it looks like EUR, CHF, USD, AUD etc. in the list.
Could someone please help?
Thank you so much for your help in advance!
kvw2525
Hi,
I would like to remove countries and keep only the currencies in the country/currency selector in dawn theme so it looks like EUR, CHF, USD, AUD etc. in the list.
Could someone please help?
Thank you so much for your help in advance!
kvw2525
Hello @Ulalala
You can add code by following these steps
Go to Online Store → Theme → Edit code.
Open your theme.liquid file
Paste the below code before on theme.liquid
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution.
Hi,
Thank you so much for your quick response, but hiding the selector is not what I want to do.
I want the options to be just the currencies.
Thank you.
apologies for mis-under standing
you have to remove code from footer.liquid file.
Thank you for your response! Could you tell me which code to remove?
Hey @Ulalala ,
Please go into the “Edit Code” option and search for “country-localization.liquid”
Now carefully replace the highlighted portion with the code given below (Mine is line 8 to line 44)
{%- for country in localization.available_countries -%}
- {{- country.currency.iso_code }}
{%- endfor -%}
Thank you so much for your help @ThePrimeWeb !
It successfully hided the country names, but would it be possible to just who one currency each?
To show only 1 EUR instead of this:
Thank you so much!
Hey @Ulalala ,
That might not be possible because this is selector is designed to switch the country, not the currency. Yes, the currency switches but it’s switches based on country. So, if I remove 3 of the extra “EUR” selections, what will happen is that the users will not be able to switch to their country.
I do have a suggestion for you, not sure if you would like it. Basically, I could add the country next to the currency in Emoji (Only problem is some desktop’s don’t support this. All phones should be supported)
This is what i’ve done so far (This is on my phone)
On my PC that doesn’t support it, looks like this
Since most visitors are on phone anyway, it could be nice.
If you want to do this, just paste this code in the same “country-localization.liquid” file at the very bottom
Screenshot for reference
Thank you so much for your fun suggestion! I will consider what would be the best thing to do including your suggestion.
Thank you so much.
Hello sir,
can this code used in the same place of my store? My website is elixirdiuomo.com, no pass needed.
Thanks in advance!
off sitewide
July sale — 45% off at checkout, applied automatically. Valid for 60 minutes. One per customer.
Offer ends in