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

#   subtotal on email notifications without tax

##

- **[CindyDP](/forum/user/40441-cindydp "View CindyDP's Profile")**
- [![CindyDP's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/40441-cindydp "View CindyDP's Profile") Topic Author
- [ Offline](/forum/user/40441-cindydp)

Less More

- Posts: 22
- Thank you received: 0
-
-

4 years 6 months ago [\#341828](#341828) by [CindyDP](/forum/user/40441-cindydp "View CindyDP's Profile")  *[subtotal on email notifications without tax](/forum/27-checkout/904448-subtotal-on-email-notifications-without-tax#341828 "-- HikaShop version -- : 4.5.1 -- Joomla version -- : 4.1.3. -- PHP version -- : 8.0 -- Browser(s) name and version -- : Google Chrome  I'd like to see the subtotal price on the confirmation emails without vat. I have been searching in the templates of the emails system&gt;emails and found in the order notification for example these lines: 'CLASS' =&gt; 'subtotal', 'NAME' =&gt; JText::&#95;('SUBTOTAL'), 'VALUE' =&gt; $currencyHelper-&gt;format($subtotal,$data-&gt;cart-&gt;order&#95;currency&#95;id) ); } if(bccomp($data-&gt;cart-&gt;order&#95;discount&#95;price,0,5) != 0) { if($config-&gt;get('price&#95;with&#95;tax')) { $t = $currencyHelper-&gt;format($data-&gt;cart-&gt;order&#95;discount&#95;price &#42; -1, $data-&gt;cart-&gt;order&#95;currency&#95;id); }else{ $t = $currencyHelper-&gt;format(($data-&gt;cart-&gt;order&#95;discount&#95;price - @$data-&gt;cart-&gt;order&#95;discount&#95;tax) &#42; -1, $data-&gt;cart-&gt;order&#95;currency&#95;id); }  But no matter what I try, the subtotal remains with vat. Can you please help me?")* was created by *[CindyDP](/forum/user/40441-cindydp "View CindyDP's Profile")*

-- HikaShop version -- : 4.5.1
-- Joomla version -- : 4.1.3.
-- PHP version -- : 8.0
-- Browser(s) name and version -- : Google Chrome

I'd like to see the subtotal price on the confirmation emails without vat.
I have been searching in the templates of the emails system&gt;emails and found in the order notification for example these lines:
'CLASS' =&gt; 'subtotal',
'NAME' =&gt; JText::_('SUBTOTAL'),
'VALUE' =&gt; $currencyHelper-&gt;format($subtotal,$data-&gt;cart-&gt;order_currency_id)
);
}
if(bccomp($data-&gt;cart-&gt;order_discount_price,0,5) != 0) {
if($config-&gt;get('price_with_tax')) {
$t = $currencyHelper-&gt;format($data-&gt;cart-&gt;order_discount_price * -1, $data-&gt;cart-&gt;order_currency_id);
}else{
$t = $currencyHelper-&gt;format(($data-&gt;cart-&gt;order_discount_price - @$data-&gt;cart-&gt;order_discount_tax) * -1, $data-&gt;cart-&gt;order_currency_id);
}

But no matter what I try, the subtotal remains with vat. Can you please help me?

- [ ![Schermafbeelding2022-05-21om15.55.38.png](/forum/attachment/54856) ](/forum/attachment/54856 "...om15.55.38.png") [ ](/forum/attachment/54856?download=1 "...om15.55.38.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNDQ0OC1zdWJ0b3RhbC1vbi1lbWFpbC1ub3RpZmljYXRpb25zLXdpdGhvdXQtdGF4P3RtcGw9bWFya2Rvd24=) 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: 86587
- Thank you received: 14327
-
-

4 years 6 months ago [\#341834](#341834) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[subtotal on email notifications without tax](/forum/27-checkout/904448-subtotal-on-email-notifications-without-tax#341834 "-- HikaShop version -- : 4.5.1 -- Joomla version -- : 4.1.3. -- PHP version -- : 8.0 -- Browser(s) name and version -- : Google Chrome  I'd like to see the subtotal price on the confirmation emails without vat. I have been searching in the templates of the emails system&gt;emails and found in the order notification for example these lines: 'CLASS' =&gt; 'subtotal', 'NAME' =&gt; JText::&#95;('SUBTOTAL'), 'VALUE' =&gt; $currencyHelper-&gt;format($subtotal,$data-&gt;cart-&gt;order&#95;currency&#95;id) ); } if(bccomp($data-&gt;cart-&gt;order&#95;discount&#95;price,0,5) != 0) { if($config-&gt;get('price&#95;with&#95;tax')) { $t = $currencyHelper-&gt;format($data-&gt;cart-&gt;order&#95;discount&#95;price &#42; -1, $data-&gt;cart-&gt;order&#95;currency&#95;id); }else{ $t = $currencyHelper-&gt;format(($data-&gt;cart-&gt;order&#95;discount&#95;price - @$data-&gt;cart-&gt;order&#95;discount&#95;tax) &#42; -1, $data-&gt;cart-&gt;order&#95;currency&#95;id); }  But no matter what I try, the subtotal remains with vat. Can you please help me?")*

Hi,

It's not that code you want to change.
You want to change the line:
$subtotal += $item-&gt;order_product_total_price;
to:
$subtotal += $item-&gt;order_product_total_price_no_vat;

The following user(s) said Thank You: [CindyDP](/forum/user/40441-cindydp "View CindyDP's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0LzkwNDQ0OC1zdWJ0b3RhbC1vbi1lbWFpbC1ub3RpZmljYXRpb25zLXdpdGhvdXQtdGF4P3RtcGw9bWFya2Rvd24=) 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.052 seconds

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