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
[ekm:productsaving][/ekm:productsaving]
[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]
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.
output_item='[total][percentage]';
Define any HTML you want to output with the saving values.
output_end='</div>';
Define any HTML you wish to be output after the saving has been output.
value_only='no';
Specify whether or not the values should be output with symbols (currency and percentage).
The EKM system allows for some tags to be nested within other tags.
[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]