Ecommerce for Statamic

Country Select

Outputs a <select> menu with all available countries. Read about locale settings

Parameters

name
The name attribute of the <select> element.
selected
Defines which option of the menu will be selected.
include_blank
Set to yes to include a blank <option> in at the top of the <select>.
blank_text
When using include_blank, this specifies the text to be used. Defaults to Please select.
attr
Allows you to set any number of HTML attributes on the <form> tag. You can specify multiple attributes by pipe | delimiting them.
sort_by
Sort by either country name, country code or leave this parameter out to sort by the order in your locales file.

Example

{{ bison:country_select name="billing_country" selected="{{ billing_country }}" }}


Problem with this page? Edit it on Github.