EKM Tag: [ekm:productstock]
This tag is used to output the stock level or a stock message.
This tag can only be used on the product page. Stock control must be enabled in the settings section.
- Tag Information
- Nesting This Tag
[ekm:productstock][/ekm:productstock]
[ekm:productstock]
instock='In Stock';
outstock='Out Of Stock';
[/ekm:productstock]
instock='In Stock';
Define the message to be displayed when the item is in stock
outstock='Not In Stock';
Define the message to be displayed when the item is not in stock
font_formatting='no';
Specify whether or not you want formatting to be displayed around the text or value.
value_only='yes';
Specify whether or not you want to output only the number of items in stock. This will not work with prevent product variants from updating the stock value on the page.
The EKM system allows for some tags to be nested within other tags.
When nesting this tag you do not need to make any alterations.
[ekm:if]
iftype='EQUALS';
ifvalue='0';
ifvalue2='0';
ifthen='[ekm:productstock][/ekm:productstock]';
ifelse='';
[/ekm:if]