Prints the class name Current or Next, which refers to the customer's current or next reward tier in the loyalty program.

Description

The tag works in the reward tier list of the loyalty program, which is implemented using the {LoyaltyProgramDiscountTiers} tag. Its filter attribute can be used to specify which class name is printed:

  • The class name Current referring to the customer's current reward tier is printed when the attribute value is current or when the attribute is not set. The customer must be logged into the online store and at least at the lowest reward tier of the loyalty program.
  • The class name Next referring to the customer's next reward tier is printed when the attribute value is next. If the customer is already at the top reward tier of the loyalty program, the tag will not print anything.

Syntax

{LoyaltyProgramDiscountTierClass}

Scope

Required scope: loyalty-program-discount-tier

The tag is used only in the {LoyaltyProgramDiscountTiers} tag's helper attribute.

Attribuutit

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: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:HTML and Interface markup.

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