Speak to our experts today 0333 004 0333
Speak to one of our experts today
User Guides

EKM Tag: [ekm:loyaltypoints]

This tag is used to output the number of loyalty points a customer will earn when purchasing the product they are viewing.

This tag can only be used on the product page.

  • Tag Information
  • Nesting This Tag
Basic Use
In its basic use the tag will output just the integer value of the loyalty points a customer will earn.

[ekm:loyaltypoints][/ekm:loyaltypoints]
                                
This outputs the following.
1000
Advanced Use
The advanced version of the tag allows you to specify text styling and layout styling.

[ekm:loyaltypoints]
    output_start='';
    output_item='You Will Earn <b>[loyaltypoints]</b> points which is the equivalent of [loyaltypoints-value]';
    output_end='';
[/ekm:loyaltypoints]
                                
This outputs the following.
You Will Earn 1000 points which is the equivalent of £10.00
Tag Attributes
Output Start
output_start='<strong>';

Specify any HTML you want to be output before the loyalty points value. This is only output when loyalty points are enabled.

Value
Description
{user defined}
Specify any HTML you want to be output before the points value
Output Item
output_item='You Will Earn <b>[loyaltypoints]</b> points which is the equivalent of [loyaltypoints-value]';

Specify the layout of the information output. Here you can choose to output either the points value or the monetary value of the points or both.

Value
Description
{user defined}
Specify any HTML you want to output along with the points values. Here you should include any of the attribute tags below.

Within [ekm:tags] you would need to open and close them in the same way you would open and close HTML tags. However with attribute tags, like the ones below, they are self closing and work alone without any need to close them.

Value
Description
[loyaltypoints]
Outputs the amount of loyalty points awarded against the product.
[loyaltypoints-value]
Outputs the monetary value of the loyalty points awarded.
Output End
output_end='</strong>';

Specify any HTML you want to be output after the loyalty points value.

Value
Description
{user defined}
Specify any HTML you want to be output after the points value
Value Only
value_only='yes';

Specify whether to output the value with or without the surrounding formatting.

Value
Description
yes
Strips all formatting and just outputs the value. This will prevent the points updating with variant selections
no
Outputs the value with all formatting.

The EKM system allows for some tags to be nested within other tags.

Nesting This Tag

When nesting this tag you do not need to make any alterations.


[ekm:if]
    iftype='EQUALS';
    ifvalue='0';
    ifvalue2='0';
    ifthen='[ekm:loyaltypoints][/ekm:loyaltypoints]';
    ifelse='';
[/ekm:if]