Product prices including and excluding VAT

You can use a B2B setting on your account to determine whether product prices are shown including or excluding VAT (and change this dependent on the type of visitor).

However, you may want to show product pricing including and excluding VAT at the same time.


product.price & product.sale_price

The product.price and product.sale_price variables will return the price or sale price of a product either including VAT or excluding VAT, depending on the setting referred to above.


Additional variables on the product page

The following variables can be used on the product page.

product.price_including_tax

product.price_excluding_tax

product.sale_price_including_tax

product.sale_price_excluding_tax

These work irrespective of the VAT display B2B settings.


Additional variables on the basket page

The following variables can be used on the basket page.

item.price_including_tax

item.price_excluding_tax

item.sale_price_including_tax

item.sale_price_excluding_tax

These work irrespective of the VAT display B2B settings.


Basket totals

The basket.sub_total and basket.shipping values will also output according to the VAT display B2B setting.

The following variables can be used on the basket page.

sub_total_including_tax

sub_total_excluding_tax

shipping_including_tax

shipping_excluding_tax