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

#   Show order's Subtotal price without tax in Order notification email

##

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

3 weeks 18 hours ago [\#100000309](#100000309) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  *[Show order's Subtotal price without tax in Order notification email](/forum/40-taxes/100000063-show-orders-subtotal-price-without-tax-in-order-notification-email#100000309 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 5.4.6 -- Browser(s) name and version -- : Chrome 155.0  Hi!  In Order notification email and in Order administrator notification email, the subtotal price is the same as the total, with tax. In checkout tab, i selected NO to &quot;Price with tax&quot; so it displays the subtotal correctly there. How can i fix that also in the above emails?  Thank you")* was created by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")*

-- HikaShop version -- : 6.5.0
-- Joomla version -- : 5.4.6
-- Browser(s) name and version -- : Chrome 155.0

Hi!

In Order notification email and in Order administrator notification email, the subtotal price is the same as the total, with tax.
In checkout tab, i selected NO to "Price with tax" so it displays the subtotal correctly there.
How can i fix that also in the above emails?

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzEwMDAwMDA2My1zaG93LW9yZGVycy1zdWJ0b3RhbC1wcmljZS13aXRob3V0LXRheC1pbi1vcmRlci1ub3RpZmljYXRpb24tZW1haWw/dG1wbD1tYXJrZG93bg==) 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: 86363
- Thank you received: 14296
-
-

3 weeks 15 hours ago [\#100000311](#100000311) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Show order's Subtotal price without tax in Order notification email](/forum/40-taxes/100000063-show-orders-subtotal-price-without-tax-in-order-notification-email#100000311 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 5.4.6 -- Browser(s) name and version -- : Chrome 155.0  Hi!  In Order notification email and in Order administrator notification email, the subtotal price is the same as the total, with tax. In checkout tab, i selected NO to &quot;Price with tax&quot; so it displays the subtotal correctly there. How can i fix that also in the above emails?  Thank you")*

Hi,

The order emails do not use the "Price with tax" option of the cart block in your checkout workflow: that option only applies to the checkout page. The emails follow the global "Show taxed prices" setting under System &gt; Configuration &gt; Main &gt; Taxes ([ www.hikashop.com/support/documentation/54-hikashop-config.html](https://www.hikashop.com/support/documentation/54-hikashop-config.html)). When it is on "With tax", the unit prices, line totals and subtotal of the emails include the VAT, so when the order has no shipping or coupon the subtotal is the same as the total.

You have two ways to change it:

1. If you want prices without tax everywhere on your shop (product pages and listings included), set "Show taxed prices" to "No tax" and save. Nothing else is needed.

2. If you want to keep prices with tax on your shop and only have the emails without tax, edit the two emails under System &gt; Emails: open "Order notification", go to its "Preload" tab ([ www.hikashop.com/support/documentation/2...shop-email-form.html](https://www.hikashop.com/support/documentation/25-hikashop-email-form.html)), and replace each of the 8 occurrences of $config-&gt;get('price_with_tax') with false (the search and replace of the code editor can do it at once, or do it one by one). Save, then do the same in "Order administrator notification". After that, the product prices, the subtotal, the shipping and the coupon in these emails are shown without tax, followed by the VAT line and the total with VAT. You can check the result with the email's Preview button, choosing an existing order.

The "Order creation notification", "Order status notification" and "Payment notification" emails work the same way: edit their Preload the same way if you want them to match.

Your edited Preload is saved as an override, so it is kept when you update HikaShop. You can return to the original at any time with the "Remove Preload customization" button in the list of emails.

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

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

2 weeks 6 days ago [\#100000328](#100000328) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Show order's Subtotal price without tax in Order notification email](/forum/40-taxes/100000063-show-orders-subtotal-price-without-tax-in-order-notification-email#100000328 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 5.4.6 -- Browser(s) name and version -- : Chrome 155.0  Hi!  In Order notification email and in Order administrator notification email, the subtotal price is the same as the total, with tax. In checkout tab, i selected NO to &quot;Price with tax&quot; so it displays the subtotal correctly there. How can i fix that also in the above emails?  Thank you")*

Hi,

I'm not sure i understood what exactly to replace when you say:
replace each of the 8 occurrences of $config-&gt;get('price_with_tax') with false

I have t replace the whole thing with the word "false"?

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzEwMDAwMDA2My1zaG93LW9yZGVycy1zdWJ0b3RhbC1wcmljZS13aXRob3V0LXRheC1pbi1vcmRlci1ub3RpZmljYXRpb24tZW1haWw/dG1wbD1tYXJrZG93bg==) 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: 86363
- Thank you received: 14296
-
-

2 weeks 6 days ago [\#100000330](#100000330) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Show order's Subtotal price without tax in Order notification email](/forum/40-taxes/100000063-show-orders-subtotal-price-without-tax-in-order-notification-email#100000330 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 5.4.6 -- Browser(s) name and version -- : Chrome 155.0  Hi!  In Order notification email and in Order administrator notification email, the subtotal price is the same as the total, with tax. In checkout tab, i selected NO to &quot;Price with tax&quot; so it displays the subtotal correctly there. How can i fix that also in the above emails?  Thank you")*

Yes: you replace the whole expression $config-&gt;get('price_with_tax') with the single word false, and you keep everything around it (the "if(", the closing parenthesis and the curly bracket).

For example, this line:

if($config-&gt;get('price_with_tax')){

becomes:

if(false){

And this one (some have a space before the curly bracket):

if($config-&gt;get('price_with_tax')) {

becomes:

if(false) {

In the Preload of the "Order notification" email you will find this 8 times, so you end up with 8 lines of the form if(false){ or if(false) {. Do the same in the Preload of the "Order administrator notification" email.

Do not change the lines that contain $price_params-&gt;price_with_tax (without $config-&gt;get in front): they are a different thing, near the shipping part, and must stay as they are. Only the text $config-&gt;get('price_with_tax') is replaced.

Writing false there tells the email to always use the "without tax" branch of each condition, so the product prices, the line totals, the subtotal, the coupon and the shipping are shown without tax, then the tax line and the total with tax.

After saving, open the email again and use its Preview button with an existing order to check the result. If something goes wrong, the "Remove Preload customization" button in the list of emails brings back the original code.

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

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

Less More

- Posts: 1195
- Thank you received: 13
-
-

2 weeks 6 days ago [\#100000336](#100000336) by [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")  Replied by *[verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")* on topic *[Show order's Subtotal price without tax in Order notification email](/forum/40-taxes/100000063-show-orders-subtotal-price-without-tax-in-order-notification-email#100000336 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 5.4.6 -- Browser(s) name and version -- : Chrome 155.0  Hi!  In Order notification email and in Order administrator notification email, the subtotal price is the same as the total, with tax. In checkout tab, i selected NO to &quot;Price with tax&quot; so it displays the subtotal correctly there. How can i fix that also in the above emails?  Thank you")*

Hi!

I did what you said in Order notification email but i doesn't work.
This is my preload code:
Code:

&lt;?php /** * @package HikaShop * @version 6.5.0 * @author hikashop.com * @copyright (C) 2010-2026 HIKARI SOFTWARE. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or defined('ABSPATH') or die('Restricted access'); // phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped ?&gt;&lt;?php $app = JFactory::getApplication(); $config = hikashop_config(); $orderClass = hikashop_get('class.order'); $imageHelper = hikashop_get('helper.image'); $productClass = hikashop_get('class.product'); $fieldsClass = hikashop_get('class.field'); global $Itemid; $url_itemid = ''; if(!empty($Itemid)) { $url_itemid = '&amp;Itemid=' . $Itemid; } $order_url = $data-&gt;order_url; $mail_status = $data-&gt;mail_status; $customer = $data-&gt;customer; $data-&gt;cart = $orderClass-&gt;loadFullOrder($data-&gt;order_id,true,false); $data-&gt;cart-&gt;coupon = new stdClass(); $url = $data-&gt;cart-&gt;order_number; $data-&gt;cart-&gt;order_url = $order_url; $url = '&lt;a href="'.$order_url.'"&gt;'. $url.'&lt;/a&gt;'; if(hikashop_level(2)) { $itemFields = $fieldsClass-&gt;getFields('display:mail_order_notif=1', $data-&gt;cart-&gt;products, 'item'); } $price = new stdClass(); $tax = $data-&gt;cart-&gt;order_subtotal - $data-&gt;cart-&gt;order_subtotal_no_vat - $data-&gt;cart-&gt;order_discount_tax + $data-&gt;cart-&gt;order_shipping_tax + $data-&gt;cart-&gt;order_payment_tax; $price-&gt;price_value = max(0, $data-&gt;cart-&gt;order_full_price - $tax); $price-&gt;price_value_with_tax = $data-&gt;cart-&gt;order_full_price; $data-&gt;cart-&gt;full_total = new stdClass; $data-&gt;cart-&gt;full_total-&gt;prices = array($price); $data-&gt;cart-&gt;coupon-&gt;discount_value =&amp; $data-&gt;cart-&gt;order_discount_price; if(hikashop_isClient('administrator')) { $view = 'order'; } else { $view = 'address'; } $colspan = 4; $customer_name = @$customer-&gt;name; if(empty($customer_name)) $customer_name = @$data-&gt;cart-&gt;billing_address-&gt;address_firstname.' '.@$data-&gt;cart-&gt;billing_address-&gt;address_lastname; $vars = array( 'LIVE_SITE' =&gt; HIKASHOP_LIVE, 'URL' =&gt; $order_url, 'ORDER_PRODUCT_CODE' =&gt; (bool)$config-&gt;get('show_code', false), 'order' =&gt; $data-&gt;cart, 'user' =&gt; $customer, 'customer' =&gt; $customer, 'billing_address' =&gt; @$data-&gt;cart-&gt;billing_address, 'shipping_address' =&gt; @$data-&gt;cart-&gt;shipping_address, 'TPL_HEADER' =&gt; (bool)@$customer-&gt;user_cms_id, 'TPL_HEADER_URL' =&gt; $order_url, ); $texts = array( 'BILLING_ADDRESS' =&gt; JText::_('HIKASHOP_BILLING_ADDRESS'), 'SHIPPING_ADDRESS' =&gt; JText::_('HIKASHOP_SHIPPING_ADDRESS'), 'SUMMARY_OF_YOUR_ORDER' =&gt; JText::_('SUMMARY_OF_YOUR_ORDER'), 'MAIL_HEADER' =&gt; JText::_('HIKASHOP_MAIL_HEADER'), 'TPL_HEADER_TEXT' =&gt; JText::_('HIKASHOP_MAIL_HEADER'), 'USER_ACCOUNT' =&gt; (bool)@$customer-&gt;user_cms_id, 'PRODUCT_NAME' =&gt; JText::_('CART_PRODUCT_NAME'), 'PRODUCT_CODE' =&gt; JText::_('CART_PRODUCT_CODE'), 'PRODUCT_PRICE' =&gt; JText::_('CART_PRODUCT_UNIT_PRICE'), 'PRODUCT_QUANTITY' =&gt; JText::_('CART_PRODUCT_QUANTITY'), 'PRODUCT_TOTAL' =&gt; JText::_('HIKASHOP_TOTAL'), 'ADDITIONAL_INFORMATION' =&gt; JText::_('ADDITIONAL_INFORMATION'), 'ORDER_TITLE' =&gt; JText::_('YOUR_ORDER'), 'HI_CUSTOMER' =&gt; JText::sprintf('HI_CUSTOMER', $customer_name), 'ORDER_CHANGED' =&gt; JText::sprintf('ORDER_STATUS_CHANGED_TO', $url, $data-&gt;mail_status), 'ORDER_BEGIN_MESSAGE' =&gt; JText::sprintf('THANK_YOU_FOR_YOUR_ORDER_BEGIN', HIKASHOP_LIVE), 'ORDER_END_MESSAGE' =&gt; JText::sprintf('THANK_YOU_FOR_YOUR_ORDER', HIKASHOP_LIVE) . '&lt;br/&gt;' . JText::sprintf('BEST_REGARDS_CUSTOMER',$mail-&gt;from_name), ); $templates = array(); $products_ids = array(); foreach($data-&gt;cart-&gt;products as $item) { $products_ids[] = $item-&gt;product_id; } $productClass-&gt;getProducts($products_ids); $cartProducts = array(); $cartFooters = array(); if(!empty($data-&gt;cart-&gt;products)){ $null = null; $fields = null; $texts['CUSTOMFIELD_NAME'] = ''; $texts['FOOTER_COLSPAN'] = 3; if(hikashop_level(1)){ $fields = $fieldsClass-&gt;getFields('display:mail_order_notif=1',$null,'product'); if(!empty($fields)){ $product_customfields = array(); $usefulFields = array(); foreach($fields as $field){ $namekey = $field-&gt;field_namekey; foreach($productClass-&gt;all_products as $product){ if(!empty($product-&gt;$namekey)){ $usefulFields[] = $field; break; } } } $fields = $usefulFields; } if(!empty($fields)){ foreach($fields as $field){ $texts['FOOTER_COLSPAN']++; $texts['CUSTOMFIELD_NAME'].='&lt;td class="hika_template_color" style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:left;font-size:12px;font-weight:bold;"&gt;'.$fieldsClass-&gt;getFieldName($field).'&lt;/td&gt;'; } } } $group = $config-&gt;get('group_options',0); $subtotal = 0; foreach($data-&gt;cart-&gt;products as $item) { if($group &amp;&amp; $item-&gt;order_product_option_parent_id) continue; $product = @$productClass-&gt;all_products[$item-&gt;product_id]; $cartProduct = array( 'PRODUCT_CODE' =&gt; $item-&gt;order_product_code, 'PRODUCT_QUANTITY' =&gt; $item-&gt;order_product_quantity, 'PRODUCT_IMG' =&gt; '', 'item' =&gt; $item, 'product' =&gt; $product, ); if(!empty($item-&gt;images[0]-&gt;file_path) &amp;&amp; $config-&gt;get('thumbnail', 1) != 0) { $img = $imageHelper-&gt;getThumbnail($item-&gt;images[0]-&gt;file_path, array(50, 50), array('forcesize' =&gt; true, 'scale' =&gt; 'outside')); if($img-&gt;success) { if(substr($img-&gt;url, 0, 3) == '../') $image = str_replace('../', HIKASHOP_LIVE, $img-&gt;url); elseif(!$img-&gt;external) $image = substr(HIKASHOP_LIVE, 0, strpos(HIKASHOP_LIVE, '/', 9)) . $img-&gt;url; else $image = $img-&gt;url; $attributes = ''; if($img-&gt;external) $attributes = ' width="'.$img-&gt;req_width.'" height="'.$img-&gt;req_height.'"'; $cartProduct['PRODUCT_IMG'] = '&lt;img src="'.$image.'" alt="" style="float:left;margin-top:3px;margin-bottom:3px;margin-right:6px;"'.$attributes.'/&gt;'; } } $t = '&lt;p&gt;' . $item-&gt;order_product_name; if($group){ $display_item_price=false; foreach($data-&gt;cart-&gt;products as $j =&gt; $optionElement){ if($optionElement-&gt;order_product_option_parent_id != $item-&gt;order_product_id) continue; if($optionElement-&gt;order_product_price&gt;0){ $display_item_price = true; } } if($display_item_price){ if(false){ $t .= ' '.$currencyHelper-&gt;format($item-&gt;order_product_price+$item-&gt;order_product_tax,$data-&gt;cart-&gt;order_currency_id); }else{ $t .= ' '.$currencyHelper-&gt;format($item-&gt;order_product_price,$data-&gt;cart-&gt;order_currency_id); } } } $t .= '&lt;/p&gt;'; if(!empty($itemFields)){ foreach($itemFields as $field){ $namekey = $field-&gt;field_namekey; if(!isset($item-&gt;$namekey) &#124;&#124; (empty($item-&gt;$namekey) &amp;&amp; !strlen((string)$item-&gt;$namekey))) continue; $field-&gt;currentElement = $item; $t .= '&lt;p&gt;'.$fieldsClass-&gt;getFieldName($field).': '.$fieldsClass-&gt;show($field,$item-&gt;$namekey,'user_email',$data-&gt;cart-&gt;order_token).'&lt;/p&gt;'; } } $cartProduct['CUSTOMFIELD_VALUE'] = ''; if(!empty($fields) &amp;&amp; hikashop_level(1)){ foreach($fields as $field){ $namekey = $field-&gt;field_namekey; $productData = @$productClass-&gt;all_products[$item-&gt;product_id]; $field-&gt;currentElement = $productData; $cartProduct['CUSTOMFIELD_VALUE'] .= '&lt;td style="border-bottom:1px solid #ddd;padding-bottom:3px;text-align:right"&gt;'.(empty($productData-&gt;$namekey)?'':$fieldsClass-&gt;show($field,$productData-&gt;$namekey)).'&lt;/td&gt;'; } } if($group){ foreach($data-&gt;cart-&gt;products as $j =&gt; $optionElement){ if($optionElement-&gt;order_product_option_parent_id != $item-&gt;order_product_id) continue; $item-&gt;order_product_price +=$optionElement-&gt;order_product_price; $item-&gt;order_product_tax +=$optionElement-&gt;order_product_tax; $item-&gt;order_product_total_price+=$optionElement-&gt;order_product_total_price; $item-&gt;order_product_total_price_no_vat+=$optionElement-&gt;order_product_total_price_no_vat; $t .= '&lt;p class="hikashop_order_option_name"&gt;' . $optionElement-&gt;order_product_name; if($optionElement-&gt;order_product_price&gt;0){ if(false){ $t .= ' ( + '.$currencyHelper-&gt;format($optionElement-&gt;order_product_price+$optionElement-&gt;order_product_tax,$data-&gt;cart-&gt;order_currency_id).' )'; }else{ $t .= ' ( + '.$currencyHelper-&gt;format($optionElement-&gt;order_product_price,$data-&gt;cart-&gt;order_currency_id).' )'; } } $t .= '&lt;/p&gt;'; } } $cartProduct['PRODUCT_NAME'] = $t; $t = ''; $statusDownload = explode(',',$config-&gt;get('order_status_for_download','confirmed,shipped')); if($group) { foreach($data-&gt;cart-&gt;products as $j =&gt; $optionElement) { if($optionElement-&gt;order_product_option_parent_id != $item-&gt;order_product_id) continue; if(!empty($optionElement-&gt;files)) { if(empty($item-&gt;files)) { $item-&gt;files = array(); } foreach($optionElement-&gt;files as $file) { $item-&gt;files[] = $file; } } } } if(!empty($item-&gt;files) &amp;&amp; in_array($data-&gt;cart-&gt;order_status, $statusDownload)){ $class = 'class="cart_button hika_template_color"'; $t .= '&lt;p&gt;'; foreach($item-&gt;files as $file){ $fileName = empty($file-&gt;file_name) ? $file-&gt;file_path : $file-&gt;file_name; $file_pos = empty($file-&gt;file_pos) ? '' : ('&amp;file_pos=' . $file-&gt;file_pos); if(empty($customer-&gt;user_cms_id)) $file_pos .= '&amp;order_token=' . $data-&gt;cart-&gt;order_token; $t .= '&lt;a '.$class.'href="'.hikashop_frontendLink('index.php?option=com_hikashop&amp;ctrl=order&amp;task=download&amp;file_id='.$file-&gt;file_id.'&amp;order_id='.$data-&gt;order_id.$file_pos.$url_itemid).'"&gt;'.$fileName.'&lt;/a&gt;&lt;br/&gt;'; } $t .= '&lt;/p&gt;'; } $cartProduct['PRODUCT_DOWNLOAD'] = $t; $cartProduct['PRODUCT_PRICE_BEFORE_DISCOUNT'] = ''; if(false){ $unit_price = $currencyHelper-&gt;format($item-&gt;order_product_price+$item-&gt;order_product_tax,$data-&gt;cart-&gt;order_currency_id); if(!empty($item-&gt;order_product_price_before_discount) &amp;&amp; $item-&gt;order_product_price_before_discount &gt; 0.0) $cartProduct['PRODUCT_PRICE_BEFORE_DISCOUNT'] =  $currencyHelper-&gt;format($item-&gt;order_product_price_before_discount+$item-&gt;order_product_tax_before_discount,$data-&gt;cart-&gt;order_currency_id); $total_price = $currencyHelper-&gt;format($item-&gt;order_product_total_price,$data-&gt;cart-&gt;order_currency_id); $subtotal += $item-&gt;order_product_total_price; }else{ $unit_price = $currencyHelper-&gt;format($item-&gt;order_product_price,$data-&gt;cart-&gt;order_currency_id); if(!empty($item-&gt;order_product_price_before_discount) &amp;&amp; $item-&gt;order_product_price_before_discount &gt; 0.0) $cartProduct['PRODUCT_PRICE_BEFORE_DISCOUNT'] =  $currencyHelper-&gt;format($item-&gt;order_product_price_before_discount,$data-&gt;cart-&gt;order_currency_id); $total_price = $currencyHelper-&gt;format($item-&gt;order_product_total_price_no_vat,$data-&gt;cart-&gt;order_currency_id); $subtotal += $item-&gt;order_product_total_price_no_vat; } $cartProduct['PRODUCT_PRICE'] = $unit_price; $cartProduct['PRODUCT_TOTAL'] = $total_price; $cartProducts[] = $cartProduct; } $templates['PRODUCT_LINE'] = $cartProducts; if(bccomp(sprintf('%F',$data-&gt;cart-&gt;order_discount_price),0,5) != 0 &#124;&#124; bccomp(sprintf('%F',$data-&gt;cart-&gt;order_shipping_price),0,5) != 0 &#124;&#124; bccomp(sprintf('%F',$data-&gt;cart-&gt;order_payment_price),0,5) != 0 &#124;&#124; ($data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value!=$data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax) &#124;&#124; !empty($data-&gt;cart-&gt;additional)){ $cartFooters[] = array( 'CLASS' =&gt; 'subtotal', 'NAME' =&gt; JText::_('SUBTOTAL'), 'VALUE' =&gt; $currencyHelper-&gt;format($subtotal,$data-&gt;cart-&gt;order_currency_id) ); } if(bccomp(sprintf('%F',$data-&gt;cart-&gt;order_discount_price),0,5) != 0) { if(false) { $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); } $cartFooters[] = array( 'CLASS' =&gt; 'coupon', 'NAME' =&gt; JText::_('HIKASHOP_COUPON'), 'VALUE' =&gt; $t ); } if(bccomp(sprintf('%F',$data-&gt;cart-&gt;order_shipping_price),0,5) != 0){ if(false) { $t = $currencyHelper-&gt;format($data-&gt;cart-&gt;order_shipping_price,$data-&gt;cart-&gt;order_currency_id); }else{ $t = $currencyHelper-&gt;format($data-&gt;cart-&gt;order_shipping_price-@$data-&gt;cart-&gt;order_shipping_tax,$data-&gt;cart-&gt;order_currency_id); } $cartFooters[] = array( 'CLASS' =&gt; 'shipping', 'NAME' =&gt; JText::_('HIKASHOP_SHIPPING'), 'VALUE' =&gt; $t ); } if(bccomp(sprintf('%F',$data-&gt;cart-&gt;order_payment_price),0,5) != 0){ if(false) { $t = $currencyHelper-&gt;format($data-&gt;cart-&gt;order_payment_price, $data-&gt;cart-&gt;order_currency_id); } else { $t = $currencyHelper-&gt;format($data-&gt;cart-&gt;order_payment_price - @$data-&gt;cart-&gt;order_payment_tax, $data-&gt;cart-&gt;order_currency_id); } $cartFooters[] = array( 'CLASS' =&gt; 'payment', 'NAME' =&gt; JText::_('HIKASHOP_PAYMENT'), 'VALUE' =&gt; $t ); } if(!empty($data-&gt;cart-&gt;additional)) { $exclude_additionnal = explode(',', $config-&gt;get('order_additional_hide', '')); foreach($data-&gt;cart-&gt;additional as $additional) { if(in_array($additional-&gt;order_product_name, $exclude_additionnal)) continue; if(!empty($additional-&gt;order_product_price)) $additional-&gt;order_product_price = (float)hikashop_toFloat($additional-&gt;order_product_price); if((!empty($additional-&gt;order_product_price) &amp;&amp; ($additional-&gt;order_product_price &gt; 0) ) &#124;&#124; empty($additional-&gt;order_product_options)) { if(false){ $t = $currencyHelper-&gt;format($additional-&gt;order_product_price + @$additional-&gt;order_product_tax, $data-&gt;cart-&gt;order_currency_id); }else{ $t = $currencyHelper-&gt;format($additional-&gt;order_product_price, $data-&gt;cart-&gt;order_currency_id); } } else { $t = $additional-&gt;order_product_options; } $cartFooters[] = array( 'CLASS' =&gt; 'additional'.preg_replace('#[^a-z0-9_]#i','', strip_tags($additional-&gt;order_product_name)), 'NAME' =&gt; JText::_($additional-&gt;order_product_name), 'VALUE' =&gt; $t ); } } if($data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value!=$data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax) { if($config-&gt;get('detailed_tax_display') &amp;&amp; !empty($data-&gt;cart-&gt;order_tax_info)) { foreach($data-&gt;cart-&gt;order_tax_info as $k =&gt; $tax) { $cartFooters[] = array( 'CLASS' =&gt; 'tax_'.$k, 'NAME' =&gt; hikashop_translate($tax-&gt;tax_namekey), 'VALUE' =&gt; $currencyHelper-&gt;format($tax-&gt;tax_amount,$data-&gt;cart-&gt;order_currency_id) ); } } else { $cartFooters[] = array( 'CLASS' =&gt; 'total_without_tax', 'NAME' =&gt; JText::_('ORDER_TOTAL_WITHOUT_VAT'), 'VALUE' =&gt; $currencyHelper-&gt;format($data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value,$data-&gt;cart-&gt;order_currency_id) ); } $cartFooters[] = array( 'CLASS' =&gt; 'total_with_tax', 'NAME' =&gt; JText::_('ORDER_TOTAL_WITH_VAT'), 'VALUE' =&gt; $currencyHelper-&gt;format($data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax,$data-&gt;cart-&gt;order_currency_id) ); } else { $cartFooters[] = array( 'CLASS' =&gt; 'total_with_tax', 'NAME' =&gt; JText::_('HIKASHOP_TOTAL'), 'VALUE' =&gt; $currencyHelper-&gt;format($data-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax,$data-&gt;cart-&gt;order_currency_id) ); } $templates['ORDER_FOOTER'] = $cartFooters; } if(!empty($data-&gt;cart-&gt;order_payment_method)) { if(!is_numeric($data-&gt;cart-&gt;order_payment_id) &#124;&#124; empty($data-&gt;cart-&gt;order_payment_id)){ $vars['PAYMENT'] = $data-&gt;cart-&gt;order_payment_method.' '.$data-&gt;cart-&gt;order_payment_id; }else{ $paymentClass = hikashop_get('class.payment'); $payment = $paymentClass-&gt;get($data-&gt;cart-&gt;order_payment_id); if(!empty($payment)) $vars['PAYMENT'] = $payment-&gt;payment_name; else $vars['PAYMENT'] = $data-&gt;cart-&gt;order_payment_method; unset($paymentClass); } } if(!empty($data-&gt;cart-&gt;order_shipping_id)) { $shippingClass = hikashop_get('class.shipping'); if(!empty($data-&gt;cart-&gt;order_shipping_method)) { if(!is_numeric($data-&gt;cart-&gt;order_shipping_id)){ $shipping_name = $shippingClass-&gt;getShippingName($data-&gt;cart-&gt;order_shipping_method, $data-&gt;cart-&gt;order_shipping_id); $vars['SHIPPING'] = $shipping_name; $vars['SHIPPING_TXT'] = $vars['SHIPPING']; }else{ $shipping = $shippingClass-&gt;get($data-&gt;cart-&gt;order_shipping_id); $vars['SHIPPING'] = $shipping-&gt;shipping_name; $vars['SHIPPING_TXT'] = $vars['SHIPPING']; } } else { $shippings_data = array(); $shipping_ids = explode(';', $data-&gt;cart-&gt;order_shipping_id); foreach($shipping_ids as $key) { $shipping_data = ''; list($k, $w) = explode('@', $key); $shipping_id = $k; if(isset($data-&gt;cart-&gt;shippings[$shipping_id])) { $shipping = $data-&gt;cart-&gt;shippings[$shipping_id]; $shipping_data = $shipping-&gt;shipping_name; } else { foreach($data-&gt;cart-&gt;products as $order_product) { if($order_product-&gt;order_product_shipping_id == $key) { if(!is_numeric($order_product-&gt;order_product_shipping_id)){ $shipping_name = $shippingClass-&gt;getShippingName($order_product-&gt;order_product_shipping_method, $shipping_id); $shipping_data = $shipping_name; }else{ $shipping_method_data = $shippingClass-&gt;get($shipping_id); $shipping_data = $shipping_method_data-&gt;shipping_name; } break; } } if(empty($shipping_data)) $shipping_data = '[ ' . $key . ' ]'; } if(isset($data-&gt;cart-&gt;order_shipping_params-&gt;prices[$key])) { $price_params = $data-&gt;cart-&gt;order_shipping_params-&gt;prices[$key]; if(false){ $shipping_data .= ' (' . $currencyHelper-&gt;format($price_params-&gt;price_with_tax, $data-&gt;cart-&gt;order_currency_id) . ')'; }else{ $shipping_data .= ' (' . $currencyHelper-&gt;format($price_params-&gt;price_with_tax - @$price_params-&gt;tax, $data-&gt;cart-&gt;order_currency_id) . ')'; } } $shippings_data[] = $shipping_data; } if(!empty($shippings_data)) { $vars['SHIPPING'] = '&lt;ul&gt;&lt;li&gt;'.implode('&lt;/li&gt;&lt;li&gt;', $shippings_data).'&lt;/li&gt;&lt;/ul&gt;'; $vars['SHIPPING_TXT'] = ' - ' . implode("\r\n - ", $shippings_data); } } unset($shippingClass); } else { $vars['SHIPPING'] = ''; } ob_start(); $sep = ''; if(hikashop_level(2)) { $fields = $fieldsClass-&gt;getFields('display:mail_order_notif=1',$data-&gt;cart,'order',''); foreach($fields as $fieldName =&gt; $oneExtraField) { if(isset($data-&gt;$fieldName) &amp;&amp; !isset($data-&gt;cart-&gt;$fieldName)) $data-&gt;cart-&gt;$fieldName = $data-&gt;$fieldName; if($oneExtraField-&gt;field_type != 'customtext' &amp;&amp; empty($data-&gt;cart-&gt;$fieldName)) continue; $oneExtraField-&gt;currentElement = $data-&gt;cart; echo $sep . $fieldsClass-&gt;trans($oneExtraField-&gt;field_realname).' : '.$fieldsClass-&gt;show($oneExtraField, @$data-&gt;cart-&gt;$fieldName, 'user_email',$data-&gt;cart-&gt;order_token); $sep = '&lt;br /&gt;'; } } JPluginHelper::importPlugin('hikashop'); $app = JFactory::getApplication(); $app-&gt;triggerEvent('onAfterOrderProductsListingDisplay', array(&amp;$data-&gt;cart, 'email_notification_html')); $content = ob_get_clean(); $vars['ORDER_SUMMARY'] = trim($content); $unpaid_statuses = explode(',', $config-&gt;get('order_unpaid_statuses', 'created')); if(in_array($data-&gt;cart-&gt;order_status, $unpaid_statuses) &amp;&amp; !empty($data-&gt;cart-&gt;order_payment_method) &amp;&amp; $data-&gt;cart-&gt;order_full_price &gt; 0 &amp;&amp; hikashop_level(1) &amp;&amp; $config-&gt;get('allow_payment_button', 1)) { $content = '&lt;p&gt;' . JText::_('ORDER_VALID_AFTER_PAYMENT') . '&lt;/p&gt;'; $pay_url = 'index.php?option=com_hikashop&amp;ctrl=order&amp;task=pay&amp;order_id='.$data-&gt;order_id.$url_itemid; if(empty($customer-&gt;user_cms_id) &amp;&amp; !empty($data-&gt;cart-&gt;order_token)) { $pay_url .= '&amp;order_token='.urlencode($data-&gt;cart-&gt;order_token); } $pay_url = hikashop_frontendLink($pay_url); if($config-&gt;get('force_ssl',0) &amp;&amp; strpos('https://', $pay_url) === false) { $pay_url = str_replace('http://', 'https://', $pay_url); } $content .= '&lt;p&gt;&lt;a class="cart_button hika_template_color" href="'. $pay_url .'"&gt;' . JText::_('PAY_NOW') . '&lt;/a&gt;&lt;/p&gt;'; $vars['ORDER_SUMMARY'] .= $content; unset($content); } $vars['BILLING_ADDRESS'] = ''; $vars['SHIPPING_ADDRESS'] = ''; $addressClass = hikashop_get('class.address'); if(!empty($data-&gt;cart-&gt;billing_address) &amp;&amp; !empty($data-&gt;cart-&gt;fields)){ $vars['BILLING_ADDRESS'] = $addressClass-&gt;displayAddress($data-&gt;cart-&gt;fields,$data-&gt;cart-&gt;billing_address,$view); } if(!empty($data-&gt;cart-&gt;override_shipping_address)) { $vars['SHIPPING_ADDRESS'] =  $data-&gt;cart-&gt;override_shipping_address; } elseif(!empty($data-&gt;cart-&gt;order_shipping_id) &amp;&amp; !empty($data-&gt;cart-&gt;shipping_address) &amp;&amp; !empty($data-&gt;cart-&gt;fields)) { $vars['SHIPPING_ADDRESS'] = $addressClass-&gt;displayAddress($data-&gt;cart-&gt;fields,$data-&gt;cart-&gt;shipping_address,$view); } else { $vars['SHIPPING_ADDRESS'] = $vars['BILLING_ADDRESS']; }

Thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQwLXRheGVzLzEwMDAwMDA2My1zaG93LW9yZGVycy1zdWJ0b3RhbC1wcmljZS13aXRob3V0LXRheC1pbi1vcmRlci1ub3RpZmljYXRpb24tZW1haWw/dG1wbD1tYXJrZG93bg==) 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: 86363
- Thank you received: 14296
-
-

2 weeks 6 days ago [\#100000338](#100000338) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Show order's Subtotal price without tax in Order notification email](/forum/40-taxes/100000063-show-orders-subtotal-price-without-tax-in-order-notification-email#100000338 "-- HikaShop version -- : 6.5.0 -- Joomla version -- : 5.4.6 -- Browser(s) name and version -- : Chrome 155.0  Hi!  In Order notification email and in Order administrator notification email, the subtotal price is the same as the total, with tax. In checkout tab, i selected NO to &quot;Price with tax&quot; so it displays the subtotal correctly there. How can i fix that also in the above emails?  Thank you")*

Your edit is correct: the 8 replacements in your code are exactly what was needed. The problem is that you made them in the wrong email, and our previous message pointed you to it, sorry about that. The "Order notification" email is only sent when you send the customer an email from an order in the backend. The emails sent when an order is placed at checkout are two others:

- "Order creation notification": the email the customer receives when the order is created.

- "Order administrator notification": the email you receive about the new order.

Please make the same change in these two: in System &gt; Emails, open "Order creation notification", go to its "Preload" tab ([ www.hikashop.com/support/documentation/2...shop-email-form.html](https://www.hikashop.com/support/documentation/25-hikashop-email-form.html)), replace each of the 8 occurrences of $config-&gt;get('price_with_tax') with false exactly as you did, and save. Then do the same in "Order administrator notification".

After that, the next orders' emails show the unit prices, the line totals, the subtotal and the shipping without tax, followed by the VAT line and the total with VAT.

When the order status changes later (for example when you confirm a bank transfer payment), the customer receives the "Order status notification" email, which works the same way: make the same change in its Preload too if you want it to match. The change you already made in "Order notification" can stay, it will be used for the emails you send from the backend.

The following user(s) said Thank You: [verzevoul](/forum/user/8351-verzevoul "View verzevoul's Profile")

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

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