Modify contents in all_country_option_tags object

Hello,

I am trying to make a selectable list of countries for an add new address form using the all_country_option_tags object as described in the Liquid reference document.


But when I use the all_country_option_tags object, there seems to be a short list of countries at the top of the country list which is the list boxed in red in the image below.

It seems like some kind of favorites list of countries but I could not find any option to modify the list even in the admin account.

So, I am wondering why are those countries appearing at the top and if it is possible to change those countries.

Any help is appreciated,

Thank you

You ever get anywhere with this? As I understand it, this isn’t a thing you can directly modify.

You’ve probably got two options.

  1. Write a script to resort the options list. Remove items A, B, & C, and insert them at the top.

  2. Dump out the options list (just copy and paste the rendered code from the front end) and put it in a snippet, and then manually rearrange til it looks right. The downside of this is that the list doesn’t get updated if any country info changes.

And, of course, there’s a less-immediately-useful option 3) complain at shopify support to give us more options on this.

If you use {{ country_option_tags }}, it’ll only show the countries that you have set up for shipping. But you still don’t get any control over the order.