Prints the country saved in the customer information of an orderer.
Kuvaus
By default, the tag prints content only if the online store's country of operation and the order's shipping country are not the same. You can also force the tag to print the country by using the attribute
.force:
true
The online store's country of operation can be set on the admin panel's General settings page in the item.
The content is printed from the customer information. To print the country from the shipping address, use the {OrderShippingCountry}
tag.
Syntaksi
{OrderCountry(
force: boolean
)}
Näkyvyys
Toimii näkyvyydessä: tilaus
The required scope is always set in the following templates:
Attribuutit
force:
Forces the tag to print the country name even if the country of the online store and the country of the order are the same.
Allowed values: true/false
after/before:
By using the
after
andbefore
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
andbefore
attributes will be output.escape:
Adds an escape character before quotation marks in the output.
The attribute makes it easier to process the tag-produced content when using JavaScript.
Allowed values:true/false. The default value is false.
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.'