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:productcategories]

This tag allows you to output a list of categories that the product you are currently viewing is within. This allows you to list not only the main category but also the categories the product has been "category managed" into.

This tag can only be used on the product page.

  • Tag Information
  • Nesting This Tag
Basic Use
Placed on a product page the tag will output a list of categories. The list is started by outputting htmlbefore and each list item (if greater than one) will be seperated with the contents of htmlseparator and ended with the contents of htmlafter.

[ekm:productcategories]
   show='yes';
   htmlbefore='Categories: ';
   htmlseparator=',';
   htmlafter='';
[/ekm:productcategories]
                                
This would output something like...
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='Find similar products in ';

Define the text or HTML that will appear before the list of categories value

Value
Description
{user defined}
Define any HTML you wish to display before the list of catgeories.
HTML Separator
htmlseparator='|';

Define the text or HTML that will be used between the values in the list. This will only be used if the list contains more than one record to output.

Value
Description
{user defined}
Define any seperating HTML for each list item.
HTML After
htmlafter='';

Define the text or HTML that will appear after the list of catgeories

Value
Description
{user defined}
Define any HTML you wish to display after list of catgeories.

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:productcategories]show='yes'; htmlbefore='Other Categories'; separator='|'; htmlafter='';[/ekm:productcategories]';
    ifelse='';
[/ekm:if]