Request a Call Back

Enter your number and one of our friendly ecommerce experts will be in touch. All fields are required.

Speak to our experts today 0333 004 0333
Speak to one of our experts today or Request a Callback
User Guides

EKM Tag: [ekm:productcode]

This tag is used to output the product code 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 code with no surrounding text.

[ekm:productcode]show='yes';[/ekm:productcode]
                                
Advanced Use
The tag can also be used to output HTML around the product code.

[ekm:productcode]
    show='yes';
    htmlbefore='Product Code [';
    htmlafter=']';
[/ekm:productcode]
                                
Tag Attributes
Show?
show='no'';

Specify whether or not you want the tag to be output on the page.

Value
Description
yes
The tag will be displayed
no
The tag will not be displayed
HTML Before
htmlbefore='Product Code [';

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

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

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

Value
Description
{user defined}
Define any HTML you wish to display after the product code.
Value Only
value_only='no';

Specify whether or not you want the attribute value outputting with no surrounding HTML.

Value
Description
yes
Will output only the attribute value.
no
Will output the value and surrounding HTML.

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:productcode]show='yes';[/ekm:productcode]';
    ifelse='';
[/ekm:if]