Prints the product's campaign price.

Description

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.

Syntax

{ProductCampaignPrice(
    campaign_id: int,
    includetax: boolean,
    currencysymbol: boolean
)}

Scope

Required scope: 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 sum to be printed either with or without VAT.

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

currencysymbol:

Defines whether the currency symbol should be printed along with the sum. The symbol to be printed is selected automatically based on the currency in use.

The exchanged attribute defines which currency symbol should be printed.

The currency symbol can also be printed by using the {CurrencySymbol} tag.

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.

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.'