<p>I believe the only way to do this at present is to select the <code>Include in Price</code> option on the Tax Rate in Commerce settings.</p>

CC BY-SA 3.0
2016-10-11T14:21:11.767Z
I've done that, and it's had no effect.
Tam
CC BY-SA 3.0
2016-10-11T14:29:00.450Z
@Tam I did a quick test on a vanilla Craft Commerce set up, the above option includes the tax within the price, so you'll need to adjust your price to include the tax amount (i.e. if you set the tax rate to 20% and the price of your product is normally £100 + tax, you need to set the price of your product to £120 (£100 + £20 tax)), but it is definitely included within the price on the product page.
Stephen Hamilton
CC BY-SA 3.0
2016-10-11T14:32:31.920Z
So it **doesn't** increase the price by the tax amount, you have to do that manually no matter what?
Tam
CC BY-SA 3.0
2016-10-11T14:39:55.397Z
@Tam Yeah, I believe the two options are: 1) display the tax as part of the price; or 2) have the tax be calculated separately as an adjuster. My understand is that adjusters can only be applied to an order model, not an individual product, so can only be calculated in the cart or during the checkout process.
Stephen Hamilton
CC BY-SA 3.0
2016-10-11T14:43:04.910Z
I was afraid of that.
Tam
CC BY-SA 3.0
2017-10-20T14:41:05.837Z
If you have to increase the price by the tax amount manually, whats does 'include in price' do?
ToddPadwick
CC BY-SA 3.0
2016-10-11T14:19:53.600Z
2016-10-11T14:19:53.600Z
Stephen Hamilton
<p>I made a really hacky way of applying 20% UK VAT to any value using a custom template variable. I expect you could grab Tax rule values from Commerce settings if you wanted the percentage to be dynamic.</p>

<p><code>{{ craft.businessLogic.taxAddedPrice( product.defaultVariant.price, 20 )|currency( cart.currency, true ) }}</code></p>

<pre><code>public function taxAddedPrice( $productPrice, $percentage )
{
  return ( ( ( ( $productPrice ) / 100 ) * $percentage ) + $productPrice );
}
</code></pre>

CC BY-SA 3.0
2016-10-18T11:57:15.923Z
I ended up doing the same thing, but with a twig macro:
`{% macro tax(price) %}{{ (price * 1.2)|currency(craft.commerce.cart.currency) }}{% endmacro %}`
Tam
CC BY-SA 3.0
2017-10-19T18:01:54.743Z
Surely there must be a way of including tax in the display price? I've never seen an e-commerce shop that surprises you with tax at checkout. 
We are selling to multiple zones with different taxes, and want the tax to be included in prices, determined by users geo - location. 
Is there no way of doing this with craft out of the box?
ToddPadwick
CC BY-SA 3.0
2016-10-18T11:44:40.857Z
2016-10-18T11:44:40.857Z
Luke Pearce
<p>Is it possible to include any tax values in the price on the products page (not just the cart)?</p>

<plugin-craftcommerce>
Include tax in price on product page
# Include tax in price on product page

(Asked by: username_0 on 2016-10-11)

Is it possible to include any tax values in the price on the products page (not just the cart)?

**Tags:** plugin-craftcommerce


---

## 2 answers

### Answer by username_1 on 2016-10-11. Score: 2 | Accepted answer

I believe the only way to do this at present is to select the `Include in Price` option on the Tax Rate in Commerce settings.

> **Comments:**
> **username_0**: I've done that, and it's had no effect.  
> **username_1**: @username_0 I did a quick test on a vanilla Craft Commerce set up, the above option includes the tax within the price, so you'll need to adjust your price to include the tax amount (i.e. if you set the tax rate to 20% and the price of your product is normally £100 + tax, you need to set the price of your product to £120 (£100 + £20 tax)), but it is definitely included within the price on the product page.  
> **username_0**: So it **doesn't** increase the price by the tax amount, you have to do that manually no matter what?  
> **username_1**: @username_0 Yeah, I believe the two options are: 1) display the tax as part of the price; or 2) have the tax be calculated separately as an adjuster. My understand is that adjusters can only be applied to an order model, not an individual product, so can only be calculated in the cart or during the checkout process.  
> **username_0**: I was afraid of that.  
> **username_2**: If you have to increase the price by the tax amount manually, whats does 'include in price' do?  

---

### Answer by username_3 on 2016-10-18. Score: 2

I made a really hacky way of applying 20% UK VAT to any value using a custom template variable. I expect you could grab Tax rule values from Commerce settings if you wanted the percentage to be dynamic.
{{ craft.businessLogic.taxAddedPrice( product.defaultVariant.price, 20 )|currency( cart.currency, true ) }}
public function taxAddedPrice( $productPrice, $percentage )
{
  return ( ( ( ( $productPrice ) / 100 ) * $percentage ) + $productPrice );
}

> **Comments:**
> **username_0**: I ended up doing the same thing, but with a twig macro: `{% macro tax(price) %}{{ (price * 1.2)|currency(craft.commerce.cart.currency) }}{% endmacro %}`  
> **username_2**: Surely there must be a way of including tax in the display price? I've never seen an e-commerce shop that surprises you with tax at checkout.  We are selling to multiple zones with different taxes, and want the tax to be included in prices, determined by users geo - location.  Is there no way of doing this with craft out of the box?  

---

