How do I remove country names from currency selector?

Hello there!

To remove the countries from the selector and the same types of currencies, do the following steps:

1º Open the code of your store.

2º Locate the file called: country-localization.liquid

3º Delete all the code. (Be sure to make a backup copy of the original file. To do this, for example, copy the code and paste it into a notepad.)

4º Replace the original code with the following code:


  
  

    

      {%- assign selected_currencies = '' -%}
      {%- for country in localization.available_countries -%}
        {%- unless selected_currencies contains country.currency.iso_code -%}
          {%- assign selected_currencies = selected_currencies | append: country.currency.iso_code | append: ',' -%}
          - {{- country.currency.iso_code }}
                  {{ country.currency.symbol }}
              
            
          
        {%- endunless -%}
      {%- endfor -%}
    

  

This should fix your problem!

1 Like