exit-icon
Request a callback
Request a callback

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 callback-group-circleRequest a callback
User Guides

EKM Tag: [ekm:product_urgency_low_stock_bar]

This tag is tactic of the Product Urgency feature. When the product stock is below a set threshold this tag will output a bar that will be more filled the closer the stock gets to zero.

  • Tag Information
Basic Use
The tag will output a bar that is filled the closer the stock gets to zero.

                                    [ekm:product_urgency_low_stock_bar][/ekm:product_urgency_low_stock_bar]
                                
This outputs the following.
Product Urgency Low Stock Bar
HTML Use
In most cases you would use this tag to create urgency on your product page regarding the amount of stock left available.


[ekm:product_urgency_low_stock_bar]
	output_start='<div>';
	output_item='[bar]<p>Only <strong>[stock]</strong> left in Stock</p>';
	output_end='</div>';
[/ekm:product_urgency_low_stock_bar]

                                
This outputs the following.
Tag Attributes
Output Start
output_start='<div>';

Define any HTML you wish to be output before the tactic. This will only output if there is a tactic to output.

Value
Description
{user defined}
Define any opening HTML or Titles to go before the Low Stock Bar.
Output Item
output_item='[bar]<p>Only <strong>[stock]</strong> left in Stock</p>';

Define any HTML you want to output in tandem with the stock bar and stock value

Value
Description
[bar]
Outputs the stock bar.
[value]
Outputs the current stock level
Output End
output_end='</div>';

Define any HTML you wish to be output after the tactic has been output.

Value
Description
{user defined}
Define any closing HTML to be displayed after the tactic.
Product ID
product_id='auto';

Specify the ID of a specifc product you'd like to output the tactic for. When on a product page you can use the value auto.

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 changes to it. It can be inserted into other tags like below.


[ekm:if]
    ...
    ifvalue='[ekm:sitename][/ekm:sitename]';
    ...
[/ekm:if]