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

EKM Tag: [ekm:productsaving]

This tag is used to output the total saving for a product by comparing the price to the RRP. The tag can output the total saving as a value or a percentage.

  • Tag Information
  • Nesting This Tag
Basic Use
When the tag is used in it's most basic form it will output the total saving with the percentage saving in brackets.

[ekm:productsaving][/ekm:productsaving]
								
This outputs the following.
You Save: £15.21 (21%)
Advanced Use
You can also specify a depth to pull the ID of a category from. This can be either an integer value or 'default'.

[ekm:productsaving]
output_start='<div class="saving">';
output_item='You save <strong>[total]</strong> that's <strong>[percentage]</strong> off!';
output_end='</div>';
value_only='no';
[/ekm:productsaving]
								
This outputs the following.
You save £15.21 that's 21% off!
Tag Attributes
Output Start
output_start='<div id="savings">';

Define any HTML you wish to be output before the product's saving. This will only output if there is a saving to output.

Value
Description
{user defined}
Define any opening HTML or Titles to go before the savings.
Output Item
output_item='[total][percentage]';

Define any HTML you want to output with the saving values.

Value
Description
[total]
Outputs the total saving value as a currency.
[percentage]
Outputs the total saving as a percentage.
Output End
output_end='</div>';

Define any HTML you wish to be output after the saving has been output.

Value
Description
{user defined}
Define any closing HTML to be displayed after the saving has output.
Value Only
value_only='no';

Specify whether or not the values should be output with symbols (currency and percentage).

Value
Description
yes
The values will be output only. No symbols will show.
no
The values and symbols will output.

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

Nesting This Tag


[ekm:if]
	iftype='EQUALS';
	ifvalue='[ekm:nested_productsaving]value_only="yes";output_item="[percentage]";[/ekm:nested_productsaving]';
	ifvalue2='50';
	ifthen='Half price!';
	ifelse='';
[/ekm:if]