Localization form with markets instead of individual countries

RyanOz
Visitor
2 0 1

Hi,

 

In Dawn, how could I amend the 'country-localization.liquid' theme file, so instead of it displaying every individual country within each market in the localization header/footer dropdown form, it instead displays only the broader individual markets?

 

Effectively it would be like the form in the Theme Customization Editor.

 

I know by appending the current URL with ?market=name_of_market it switches between markets, but I am not sure how to do this in the form as to my knowledge you cannot append a query to the current URL via a href link?

 

Can you amend the current form in 'country-localization.liquid' to achieve this? My markets won't ever change, so I don't mind hard-coding this manually rather than using a dynamic form with variables.

Replies 3 (3)

gr_trading
Shopify Partner
1687 141 174

Do you want to remove the other countries from the list?

For any custom development WhatsApp or connect at Email ID: gr.trading15@gmail.com for quick consultation. | Shopify Free codes
To support Buy Me a Coffee
RyanOz
Visitor
2 0 1

I don't want to remove the other countries from the actual markets list as then people can't order from those countries.

 

I just want to display the regions in the front-end dropdown menu, e,g,

 

Australia
USA
UK
Europe (setup as a region with multiple countries)
Other (all other countries not in regions above in the default international region)

Rafael_Miranda
Tourist
5 0 2

I'm trying to do the same thing, looks obviously to me that an option like this is needed, having all European countries that accepts EUR is useless, just mess up our page, also having all the countries you sell is also useless, better to do something like you suggested:  Other (all other countries not in regions above in the default international region)

I didn't found a solution. Does any one found it out?