This article has moved to a new home. View the updated version Base Tag Library


Generates a list of countries available shipping countries


[%countries sortby:'sortorder,name' %]
    [%param *header%]
    [%param *body%]
        <p>[@country_code@] - [@country_name@]</p>
    [%param *footer%]


The countries tag generates a list of countries worldwide and lets you organise the list by different sort options. In order for the country to appear in the list it has to be set to "active" and available in the control panel, to do this go to admin > customisable fields > countries.

countries Parameters

Name Options Description
sortby:'' sortorder, name Determines the sort order of the list, by default, is name
header HTML & b@se tags Renders a single usable space above the body
body HTML & b@se tags Runs an array for each result
*footer HTML & b@se tags Renders a single usable space below the body

countries Data Tags

Name Description
[@count@] An incremental count that runs each array
[@country_code@] The code / ID for the country, in the case of Australia, the output would be AU
[@country_name@] The name of the country

Was this article useful?

Be notified when this page is updated. Optional.