country_option_tags

On the Shopline admin shipping page, generate an <option> element for each country and region within the shipping zone.

Each <option> element includes a data-provinces attribute containing a JSON-encoded array of the country’s or region’s sub-regions. If some country has no sub-regions, its data-provinces attribute is set to an empty array.

Tip

Use all_country_option_tags to retrieve all countries and regions within the store's shipping zone.

You can enclose the country_option_tags object within a <select> element to create a country options selector.

<select name="country">
{{{ country_option_tags }}}
</select>
Directly accessible in
  • customers/addresses
country_option_tags
Was this article helpful to you?

Error loading component.

Error loading component.