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

EKM Tag: [ekm:productweight]

This tag is used to output the product weight attribute.

This tag can only be used on the product page. You must enable the the "product attributes" feature in your EKM shop.

  • Tag Information
  • Nesting This Tag
Basic Use
In its basic use the tag will output just the product weight with no surrounding text.

[ekm:productweight][/ekm:productweight]
                                
Advanced Use
The tag can also be used to output HTML around the product weight.

[ekm:productweight]
    weightsymbol='g';
    output_start='Product weight [';
    output_end=']';
[/ekm:productweight]
                                
Tag Attributes
Weight Unit
weightsymbol='g';

Define the unit of weight to be output on the shop. Unit conversion happens automatically.

Value
Description
auto
This outputs the weight in kg.
kg
Output the product weight in kg
g
Output the product weight in g
lb
Output the product weight in lb
oz
Output the product weight in oz
lb oz
Output the product weight in lb oz
HTML Before
output_start='Product weight [';

Define the text or HTML that will appear before the product weight value

Value
Description
{user defined}
Define any HTML you wish to display before the product weight.
HTML After
output_end=']';

Define the text or HTML that will appear after the product weight value

Value
Description
{user defined}
Define any HTML you wish to display after the product weight.

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='1';
    ifvalue2='1';
    ifthen='[ekm:productweight][/ekm:productweight]';
    ifelse='';
[/ekm:if]