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

EKM Tag: [ekm:productprice]

This tag is used to output the product price on a product page.

This tag can only be used on the product page.

  • Tag Information
  • Nesting This Tag
Basic Use
In its basic use the tag will output just the product price.

[ekm:productprice][/ekm:productprice]
                                
This outputs the following.
Our Price: £129.95
Advanced Use
The advanced version of the tag allows you to specify text styling and layout styling.

[ekm:productprice]
    display_type='auto';
    price_colour='auto';
    price_font='auto';
    price_size='auto';
    price_text_layout='auto';
    price_symbol_layout='auto';
[/ekm:productprice]
                                
Tag Attributes
Display Type
display_type='standard';

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

Value
Description
auto
Display just the price unless there are bulk discounts.
standard
Shows only the price regardless of whether bulk discounts are available.
bulkdiscount
Shows only bulk discounts if available.
Price Colour
price_colour='#ff7800';

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

Value
Description
auto
By default will make the price dark red (#8B0000)
{user defined}
Define a HEX code for the colour you want your price to display as. Example: #df6900
Price Font
price_font='no';

Specify whether or not to use font formatting on the price tag and which font face to use.

Value
Description
auto
Uses the default font face for the price.
no
Will not use any font formatting
{user defined}
Define a font face you wish to use Arial, Verdana
Price Size
price_size='3';

Specify the font size to use.

Value
Description
auto
Uses the default font size.
{user defined}
Define a font size you wish to use 3, 4, 2
Price Text Layout
price_text_layout='Price: [price]';

Specify how you would like the price to be output.

Value
Description
auto
Outputs the default wording "Our Price:" followed by the price.
{user defined}
Define the HTML and Text you wish to output with the price.

This attribute allows you to nest attribute tags within, this allows you to output data within your own custom HTML and text.

Value
Description
[price]
Outputs the product's price including the currency symbol.
[vat_price]
Outputs the price including or excluding VAT (depending on your tax settings)
Price Symbol Layout
price_symbol_layout='auto';

Specify the order in which to output the price and symbol. Useful for internation sites. It is advised you use auto unless you specifically need to output in a different order.

Value
Description
auto
Will output in the typical order for a given currency
symbol-price
Will output the symbol followed by price. £123.99
price-symbol
Will output the price followed by the symbol. 123.99£
Value Only
value_only='no';

Specify whether or not you want the price outputting with no currency symbol or surrounding HTML.

Value
Description
yes
Will output only the price value. This will not work with updating variant/option prices in real time.
no
Will output the price, symbol 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='0.00';
    ifvalue2='[ekm:productprice]price_text_layout='[price]'; value_only='yes';[/ekm:productprice]';
    ifthen='FREE';
    ifelse='[ekm:productprice][/ekm:productprice]';
[/ekm:if]