Prints the delivery country selection menu.

Description

The country menu contains the countries to which shipments are possible based to the shipping methods available in the store version. The choice of the country of delivery affects the tax rates and the shipping cost estimates of the shopping cart.

If the customer is logged in, the tag will not print the country menu by default, as the theme picks the country of delivery from the customer details.

Syntax

{CountrySelection(
    countries: string,
    force: boolean
)}

Scope

Required scope: globaali

Tags with global scope can be used on any template and in any tag.

Attribuutit

countries:

Specifies the countries included in the country menu. By default, the tag prints all available countries.

Allowed values: country codes separated by vertical lines.

E.g. countries: 'fi|de|gb'

force:

If the value is true, the tag prints the country menu even if the country has already been selected.

Allowed values:true/false. The default value is false.

after/before:

By using the after and before attributes you can define content that is output either after or before the tag's output.

Allowed values:HTML and Interface markup.

E.g.

  • before: '<p>Tämä merkkaus näkyy ennen tagin omaa sisältöä.</p>'
  • after: '<p>Tämä taas näkyy tagin oman sisällön jälkeen.</p>'

If the tag does not produce any content, neither the content of the after and before attributes will be output.

or:

Defines alternative content that is displayed if the tag itself does not produce any content.

Allowed values:HTML and Interface markup.

E.g. or:'Sisältöä ei löytynyt.'