[Skip to main content](#vessel-content)

#   How can I show the Tax (VAT) amount on emails?

##

- **[kvwall](/forum/user/357-kvwall "View kvwall's Profile")**
- [![kvwall's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/car.gif)](/forum/user/357-kvwall "View kvwall's Profile") Topic Author
- [ Offline](/forum/user/357-kvwall)

Less More

- Posts: 2
- Thank you received: 0
-
-

16 years 2 days ago [\#2761](#2761) by [kvwall](/forum/user/357-kvwall "View kvwall's Profile")  *[How can I show the Tax (VAT) amount on emails?](/forum/4-how-to/2761-how-can-i-show-the-tax-vat-amount-on-emails#2761 "On my &quot;Order creation notification&quot;, I want to change TOTAL&#95;WITHOUT&#95;VAT to display the Tax amount. What code do I need to accomplish this?")* was created by *[kvwall](/forum/user/357-kvwall "View kvwall's Profile")*

On my "Order creation notification", I want to change TOTAL_WITHOUT_VAT to display the Tax amount. What code do I need to accomplish this?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI3NjEtaG93LWNhbi1pLXNob3ctdGhlLXRheC12YXQtYW1vdW50LW9uLWVtYWlscz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

16 years 2 days ago -  16 years 2 days ago [\#2762](#2762) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: How can I show the Tax (VAT) amount on emails?](/forum/4-how-to/2761-how-can-i-show-the-tax-vat-amount-on-emails#2762 "On my &quot;Order creation notification&quot;, I want to change TOTAL&#95;WITHOUT&#95;VAT to display the Tax amount. What code do I need to accomplish this?")*

In the email HTML version, near line 75 you should have the code Code:

echo '&lt;tr&gt;&lt;td colspan="4" style="text-align:right"&gt;'.JText::sprintf('TOTAL_WITHOUT_VAT',$currencyHelper-&gt;format($data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value,$data-&gt;order_currency_id)).'&lt;/td&gt;&lt;/tr&gt;';

that you can replace by Code:

echo '&lt;tr&gt;&lt;td colspan="4" style="text-align:right"&gt;Tax amount : '.$currencyHelper-&gt;format($data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax - $data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value,$data-&gt;order_currency_id).'&lt;/td&gt;&lt;/tr&gt;';

In the email text version, near line 30, you should have the code Code:

echo JText::sprintf('TOTAL_WITHOUT_VAT',$currencyHelper-&gt;format($data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value,$data-&gt;order_currency_id))."\n";

that you can replace by Code:

echo 'Tax amount : '.$currencyHelper-&gt;format($data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax - $data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value,$data-&gt;order_currency_id)."\n";

Last edit: 16 years 2 days ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI3NjEtaG93LWNhbi1pLXNob3ctdGhlLXRheC12YXQtYW1vdW50LW9uLWVtYWlscz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[kvwall](/forum/user/357-kvwall "View kvwall's Profile")**
- [![kvwall's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/car.gif)](/forum/user/357-kvwall "View kvwall's Profile") Topic Author
- [ Offline](/forum/user/357-kvwall)

Less More

- Posts: 2
- Thank you received: 0
-
-

16 years 2 days ago [\#2763](#2763) by [kvwall](/forum/user/357-kvwall "View kvwall's Profile")  Replied by *[kvwall](/forum/user/357-kvwall "View kvwall's Profile")* on topic *[Re: How can I show the Tax (VAT) amount on emails?](/forum/4-how-to/2761-how-can-i-show-the-tax-vat-amount-on-emails#2763 "On my &quot;Order creation notification&quot;, I want to change TOTAL&#95;WITHOUT&#95;VAT to display the Tax amount. What code do I need to accomplish this?")*

Thank you so much. It works!
I should have joined the forums a long time ago.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzI3NjEtaG93LWNhbi1pLXNob3ctdGhlLXRheC12YXQtYW1vdW50LW9uLWVtYWlscz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.049 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
