Skip to content

Select Shipping Countries

This webcomponent is responsible for rendering a select with currently available shipping countries.

Attributes

Attribute name Type Default Required Description
instance-id string "" yes Unique identifier commonly provided by a special module variable moduleInstance
default-country-locale string null yes Locale code of a default country, if a product does not ship to a default country, a first country from the list will be selected instead

Example

{% set shopLanguage = ObjectApi.getShopLocale() %}

<select-shipping-countries
    instance-id="{{ moduleInstance }}"
    default-country-locale="{{ shopLanguage.locale }}"
></select-shipping-countries>

ObjectApi methods reference