Skip to content

Price tag

Added in 3.6.5

The price tag is identical to the fieldtype price. The main purpose of this tag is that it solves/bypasses the issue around the parse order of templates.

The problem of the price fieldtype

In some situations when you have a dynamic tax_type, it cannot parse this in the following example:

{exp:channel:entries channel="products"}
    {exp:reinos_store:add_to_cart
        ...
    }
        {product_price:plus_tax_formatted tax_type="{tax_type}"}
    {/exp:reinos_store:add_to_cart}
{/exp:channel:entries}

In this situation it cannot parse the {tax_type} into the fieldtype. This is where you need the {exp:reinos_store:price} tag as shown in the example below.

{exp:channel:entries channel="products"}
    {exp:reinos_store:add_to_cart
        ...
    }
        {exp:reinos_store:price price="{product_price}" tax_type="{tax_type}" formatted="yes" incl_tax="yes"}
    {/exp:reinos_store:add_to_cart}
{/exp:channel:entries}

The tag

{exp:reinos_store:price price="10.00" tax_type="high|low" formatted="yes|no" incl_tax="yes|no"}

Tag Parameters

Below are the Tag Parameters. These parameters can be used in the tag described above

price

The price of your product

price="10.00"

tax_type

The Tax type, this could be high or low

tax_type="high|low"

formatted

Show the price as a formatted string. e.g. €10,00

formatted="yes|no"

incl_tax

Include tax or not

incl_tax="yes|no"