Prints the symbol of the currency selected in the theme.
Kuvaus
By default, product prices are indicated in euros in all MyCashflow online stores. You can display prices converted to the desired currency in the theme by using the Currency Converter extension.
Syntaksi
{CurrencySymbol( exchanged: boolean )}Näkyvyys
Toimii näkyvyydessä: globaali
It is possible to use global visibility tags in any page template and within any tag.
Printing the product price information – example
<div class="product-price-details"> <p> {ProductPrice( html: false, after: ' {CurrencySymbol}' )} (incl. VAT 24 %)<br> <span class="no-tax-price"> Excl. VAT {ProductPrice( html: false, includetax: false, after: ' {CurrencySymbol}' )} </span> </p> </div> The above code illustrates one way to print product prices on an online store's product page.
You can easily print product prices by using the collection tag {ProductPrices}.
In the example, the product's price including tax is printed with the {ProductPrice} tag, whose includetax attribute defaults to true.
In the after attribute, the currency symbol is printed after the price including tax with the {CurrencySymbol} tag. The currency symbol could also be printed using the {ProductPrice} tag's currencysymbol attribute.
You may also want to print tax-free prices after prices including tax. This is done practically with the same Interface markup, where the only difference is that the {ProductPrice} tag's includetax attribute is given the value false.
Attribuutit
exchanged:Specifies which symbol to display: the default euro symbol or the symbol of the currency selected by the customer.
The
exchangedattribute only works when the Currency Converter extension is in use.This attribute works only after the customer has placed an order. So, you can use the attribute in order templates and e.g. inside the order products' tags.
Allowed values: true/false. The default value is false.
With the value false, the content is always printed as euros.
before/after:With the
beforeandafterattributes, you can define content that is output before or after the content produced by the tag.Allowed values: text that may contain HTML and Interface markup.
E.g.
before:'<p>This markup appears before the tag's own content.</p>'.after:'<p>This appears after the tag's own content.</p>'
If the tag does not produce any content, the content of the
beforeandafterattributes will also not be displayed.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: text that may contain HTML and Interface markup.
E.g.
or:'Content not found.'
