# Calculating the ex VAT price to use in snippets

**URL:** <https://forum.shopware.com/t/calculating-the-ex-vat-price-to-use-in-snippets/67227>\
**Category:** Programmierung\
**Created:** [26. Mai 2020 um 15:02 UTC](https://forum.shopware.com/t/calculating-the-ex-vat-price-to-use-in-snippets/67227 "2020-05-26T15:02:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marcelnl1](https://avatars.discourse-cdn.com/v4/letter/m/e19adc/32.png) [@marcelnl1](https://forum.shopware.com/u/marcelnl1)\
**Post date:** [26. Mai 2020 um 15:02 UTC](https://forum.shopware.com/t/calculating-the-ex-vat-price-to-use-in-snippets/67227/1 "2020-05-26T15:02:41Z")

</div>

Hello,

I am using the default responsive theme. This theme only shows the price incl VAT, but I want to show both the prices incl and excl VAT. I think I can achieve this by editing the&nbsp;DetailDataPriceInfo snippet. I added this to the snippet:

{if $sArticle.tax \> 0}  
{math equation=„A / B“ A=$sArticle.price B=1.21 assign=„exTax“}  
Price ex VAT: {$exTax|currency}

{/if}

But it is just returning „€0.00“ all the time. I think this is becasue $sArticle.price is empty, but $sArticle.tax is working - so what value am I supposed to use?

Thanks!

&nbsp;

---

<div class="post-metadata">

**Author:** ![ListKool](https://avatars.discourse-cdn.com/v4/letter/l/ee7513/32.png) [@ListKool](https://forum.shopware.com/u/ListKool)\
**Post date:** [28. Mai 2020 um 13:31 UTC](https://forum.shopware.com/t/calculating-the-ex-vat-price-to-use-in-snippets/67227/2 "2020-05-28T13:31:57Z")

</div>

Hey you may need to edit theme and add this

&nbsp;

{math equation=„A / B“ A=$sArticle.price B=1.21 assign=„exTax“}  
Price ex VAT: {$exTax|currency} [auto clicker](https://www.autoclicker.onl/)

regards

Smith
