Prints country selector as a drop-down menu.

Description

The country menu contains the countries to which shipments are possible based to the shipping methods available in the store version. Applicable tax rates and estimated shipping costs displayed in the shopping cart depend on country selection.

If the customer is logged in, the country menu is not printed, and the country to be used in the theme is selected based on the customer information.

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 which countries should be included on the list.

By default, the tag prints all available countries.

Allowed values: pipe-separated codes of the desired countries.

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

force:

If the value is false, 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:The 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:The HTML and Interface markup

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