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.
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.
Write a script to resort the options list. Remove items A, B, & C, and insert them at the top.
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.