Prints the product's campaign price.
Kuvaus
The campaign price can be defined in two ways:
- Based on the campaign's general discount percentage
- Based on the product's individual campaign price – if an individual price has been defined
The campaign price is not the same thing as the selling price. A product can have different prices in different campaigns but the selling price is determined based on the campaign with the highest discount.
For more information about pricing campaign products, see our user guide.
Syntaksi
{ProductCampaignPrice(
campaign_id: int,
includetax: boolean,
currencysymbol: boolean
)}
Näkyvyys
Toimii näkyvyydessä: tuote, campaign-product
When necessary, use the campaign_id
attribute to select the campaign based on which the discount price should be printed.
Attribuutit
campaign_id:
Defines the campaign based on which the campaign price is printed.
Allowed values: integers (the campaign's ID number)
includetax:
Calculates the resulting sum either with or without value-added tax.
Allowed values:true/false. The default value is true.
currencysymbol:
Determines whether the currency symbol is also displayed with the total. The output symbol is automatically determined based on the currency in use.
The currency symbol can also be printed using the
{CurrencySymbol}
tag.Allowed values:true/false. The default value is 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: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:HTML and Interface markup.
E.g.
or:
'Sisältöä ei löytynyt.'