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

#   Subtotal is wrong

##

- **[Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")**
- [![Lodeke87's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar46984.jpg)](/forum/user/46984-lodeke87 "View Lodeke87's Profile") Topic Author
- [ Offline](/forum/user/46984-lodeke87)

Less More

- Posts: 21
- Thank you received: 0
-
-

9 years 8 months ago [\#264126](#264126) by [Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")  *[Subtotal is wrong](/forum/27-checkout/889192-subtotal-is-wrong#264126 "-- url of the page with the problem -- :   verswarenrapallo.be/bestellen  -- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5  I would like to show the subtotal (without tax), tax and Total (with VAT). Now, subtotal shows price with tax?  I red here (  www.hikashop.com/forum/4-how-to/78956-i-...gistration-form.html ) that I have to change the view checkout / Cart. But when I go to that file (from my template), I don't find the code you describe. (See attachments for the code that I see)  Can you help me?  I also would like to remove the coupon code?  Thanks!  Regards")* was created by *[Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")*

-- url of the page with the problem -- : [ verswarenrapallo.be/bestellen](http://verswarenrapallo.be/bestellen)
-- HikaShop version -- : 3.0.0
-- Joomla version -- : 3.6.5

I would like to show the subtotal (without tax), tax and Total (with VAT). Now, subtotal shows price with tax?

I red here ([ www.hikashop.com/forum/4-how-to/78956-i-...gistration-form.html](https://www.hikashop.com/forum/4-how-to/78956-i-want-to-change-some-fields-in-registration-form.html)) that I have to change the view checkout / Cart. But when I go to that file (from my template), I don't find the code you describe. (See attachments for the code that I see)

Can you help me?

I also would like to remove the coupon code?

Thanks!

Regards

- [ ![Checkout.png](/forum/attachment/36805) ](/forum/attachment/36805 "Checkout.png") [ ](/forum/attachment/36805?download=1 "Checkout.png")
- [ ![Coupon.png](/forum/attachment/36806) ](/forum/attachment/36806 "Coupon.png") [ ](/forum/attachment/36806?download=1 "Coupon.png")

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

9 years 8 months ago [\#264127](#264127) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Subtotal is wrong](/forum/27-checkout/889192-subtotal-is-wrong#264127 "-- url of the page with the problem -- :   verswarenrapallo.be/bestellen  -- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5  I would like to show the subtotal (without tax), tax and Total (with VAT). Now, subtotal shows price with tax?  I red here (  www.hikashop.com/forum/4-how-to/78956-i-...gistration-form.html ) that I have to change the view checkout / Cart. But when I go to that file (from my template), I don't find the code you describe. (See attachments for the code that I see)  Can you help me?  I also would like to remove the coupon code?  Thanks!  Regards")*

Hi,

1. This thread is 4 years old. A lot changed since then.
With HikaShop 3, we introduced a new checkout.
So if you have the "checkout legacy" deactivated in your configuration, you need to edit the file "show_block_cart". Otherwise, it's the "cart" view file you need to edit.
No I don't see what code you're talking about since the thread on your link doesn't contain any code.

2. Just remove the "coupon" view from the "checkout workflow" setting of the HikaShop configuration.

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

- **[Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")**
- [![Lodeke87's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar46984.jpg)](/forum/user/46984-lodeke87 "View Lodeke87's Profile") Topic Author
- [ Offline](/forum/user/46984-lodeke87)

Less More

- Posts: 21
- Thank you received: 0
-
-

9 years 8 months ago -  9 years 8 months ago [\#264179](#264179) by [Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")  Replied by *[Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")* on topic *[Subtotal is wrong](/forum/27-checkout/889192-subtotal-is-wrong#264179 "-- url of the page with the problem -- :   verswarenrapallo.be/bestellen  -- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5  I would like to show the subtotal (without tax), tax and Total (with VAT). Now, subtotal shows price with tax?  I red here (  www.hikashop.com/forum/4-how-to/78956-i-...gistration-form.html ) that I have to change the view checkout / Cart. But when I go to that file (from my template), I don't find the code you describe. (See attachments for the code that I see)  Can you help me?  I also would like to remove the coupon code?  Thanks!  Regards")*

Checkout legacy is activated, so I took a quick look @ the cart view. This is the code:
Code:

Code removed by a moderator. If it is the official view content, there is no need to past it in our forum, the support team already have it.

Thanks!

Last edit: 9 years 8 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

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

9 years 8 months ago [\#264184](#264184) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Subtotal is wrong](/forum/27-checkout/889192-subtotal-is-wrong#264184 "-- url of the page with the problem -- :   verswarenrapallo.be/bestellen  -- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5  I would like to show the subtotal (without tax), tax and Total (with VAT). Now, subtotal shows price with tax?  I red here (  www.hikashop.com/forum/4-how-to/78956-i-...gistration-form.html ) that I have to change the view checkout / Cart. But when I go to that file (from my template), I don't find the code you describe. (See attachments for the code that I see)  Can you help me?  I also would like to remove the coupon code?  Thanks!  Regards")*

Hi,

We already know the code in the cart view. What we don't know is what code you're looking for in there ?

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

- **[Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")**
- [![Lodeke87's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar46984.jpg)](/forum/user/46984-lodeke87 "View Lodeke87's Profile") Topic Author
- [ Offline](/forum/user/46984-lodeke87)

Less More

- Posts: 21
- Thank you received: 0
-
-

9 years 8 months ago [\#264213](#264213) by [Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")  Replied by *[Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")* on topic *[Subtotal is wrong](/forum/27-checkout/889192-subtotal-is-wrong#264213 "-- url of the page with the problem -- :   verswarenrapallo.be/bestellen  -- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5  I would like to show the subtotal (without tax), tax and Total (with VAT). Now, subtotal shows price with tax?  I red here (  www.hikashop.com/forum/4-how-to/78956-i-...gistration-form.html ) that I have to change the view checkout / Cart. But when I go to that file (from my template), I don't find the code you describe. (See attachments for the code that I see)  Can you help me?  I also would like to remove the coupon code?  Thanks!  Regards")*

I'm looking for the part where I can fix the wrong subtotal. VAT is also included in it ... How can I fix that?

Thanks

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

9 years 8 months ago [\#264231](#264231) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Subtotal is wrong](/forum/27-checkout/889192-subtotal-is-wrong#264231 "-- url of the page with the problem -- :   verswarenrapallo.be/bestellen  -- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5  I would like to show the subtotal (without tax), tax and Total (with VAT). Now, subtotal shows price with tax?  I red here (  www.hikashop.com/forum/4-how-to/78956-i-...gistration-form.html ) that I have to change the view checkout / Cart. But when I go to that file (from my template), I don't find the code you describe. (See attachments for the code that I see)  Can you help me?  I also would like to remove the coupon code?  Thanks!  Regards")*

It's that code: Code:

&lt;span class="hikashop_checkout_cart_subtotal"&gt; &lt;?php if($this-&gt;params-&gt;get('price_with_tax')){ echo $this-&gt;currencyHelper-&gt;format(@$this-&gt;total-&gt;prices[0]-&gt;price_value_with_tax,@$this-&gt;total-&gt;prices[0]-&gt;price_currency_id); }else{ echo $this-&gt;currencyHelper-&gt;format(@$this-&gt;total-&gt;prices[0]-&gt;price_value,@$this-&gt;total-&gt;prices[0]-&gt;price_currency_id); } ?&gt; &lt;/span&gt;

Simply change price_value_with_tax by price_value.

The following user(s) said Thank You: [Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")

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

- **[Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")**
- [![Lodeke87's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar46984.jpg)](/forum/user/46984-lodeke87 "View Lodeke87's Profile") Topic Author
- [ Offline](/forum/user/46984-lodeke87)

Less More

- Posts: 21
- Thank you received: 0
-
-

9 years 8 months ago [\#264459](#264459) by [Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")  Replied by *[Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")* on topic *[Subtotal is wrong](/forum/27-checkout/889192-subtotal-is-wrong#264459 "-- url of the page with the problem -- :   verswarenrapallo.be/bestellen  -- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5  I would like to show the subtotal (without tax), tax and Total (with VAT). Now, subtotal shows price with tax?  I red here (  www.hikashop.com/forum/4-how-to/78956-i-...gistration-form.html ) that I have to change the view checkout / Cart. But when I go to that file (from my template), I don't find the code you describe. (See attachments for the code that I see)  Can you help me?  I also would like to remove the coupon code?  Thanks!  Regards")*

Thank you very much! Problem solved! But now i have the same problem with the e-mail i receive when an orden has been placed. (See attachments)

Can you help me chance that and maybe also tell me where i can chance the fields I see in the e-mail. Now its onlu klant, bestelnummer and betaalmethode.

- [ ![Problem.jpg](/forum/attachment/36895) ](/forum/attachment/36895 "Problem.jpg") [ ](/forum/attachment/36895?download=1 "Problem.jpg")

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

9 years 8 months ago [\#264464](#264464) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Subtotal is wrong](/forum/27-checkout/889192-subtotal-is-wrong#264464 "-- url of the page with the problem -- :   verswarenrapallo.be/bestellen  -- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5  I would like to show the subtotal (without tax), tax and Total (with VAT). Now, subtotal shows price with tax?  I red here (  www.hikashop.com/forum/4-how-to/78956-i-...gistration-form.html ) that I have to change the view checkout / Cart. But when I go to that file (from my template), I don't find the code you describe. (See attachments for the code that I see)  Can you help me?  I also would like to remove the coupon code?  Thanks!  Regards")*

Hi,

You can edit the emails in the menu System&gt;Emails.
There, look in the "preload" section.
There you will find that code which calculates the subtotal: Code:

if($config-&gt;get('price_with_tax')){ $unit_price = $currencyHelper-&gt;format($item-&gt;order_product_price+$item-&gt;order_product_tax,$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); $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; }

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

- **[Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")**
- [![Lodeke87's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar46984.jpg)](/forum/user/46984-lodeke87 "View Lodeke87's Profile") Topic Author
- [ Offline](/forum/user/46984-lodeke87)

Less More

- Posts: 21
- Thank you received: 0
-
-

9 years 8 months ago [\#264580](#264580) by [Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")  Replied by *[Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")* on topic *[Subtotal is wrong](/forum/27-checkout/889192-subtotal-is-wrong#264580 "-- url of the page with the problem -- :   verswarenrapallo.be/bestellen  -- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5  I would like to show the subtotal (without tax), tax and Total (with VAT). Now, subtotal shows price with tax?  I red here (  www.hikashop.com/forum/4-how-to/78956-i-...gistration-form.html ) that I have to change the view checkout / Cart. But when I go to that file (from my template), I don't find the code you describe. (See attachments for the code that I see)  Can you help me?  I also would like to remove the coupon code?  Thanks!  Regards")*

Ok thank you, but can you help me chance it to the wayIi want it?
Because I really don't know how to achieve that ...

Thank you very much!

Regrads

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

9 years 8 months ago [\#264584](#264584) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Subtotal is wrong](/forum/27-checkout/889192-subtotal-is-wrong#264584 "-- url of the page with the problem -- :   verswarenrapallo.be/bestellen  -- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5  I would like to show the subtotal (without tax), tax and Total (with VAT). Now, subtotal shows price with tax?  I red here (  www.hikashop.com/forum/4-how-to/78956-i-...gistration-form.html ) that I have to change the view checkout / Cart. But when I go to that file (from my template), I don't find the code you describe. (See attachments for the code that I see)  Can you help me?  I also would like to remove the coupon code?  Thanks!  Regards")*

Hi,

It's almost the same as before. Swap :
$subtotal += $item-&gt;order_product_total_price;
and:
$subtotal += $item-&gt;order_product_total_price_no_vat;

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

- **[Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")**
- [![Lodeke87's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar46984.jpg)](/forum/user/46984-lodeke87 "View Lodeke87's Profile") Topic Author
- [ Offline](/forum/user/46984-lodeke87)

Less More

- Posts: 21
- Thank you received: 0
-
-

9 years 8 months ago [\#264652](#264652) by [Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")  Replied by *[Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")* on topic *[Subtotal is wrong](/forum/27-checkout/889192-subtotal-is-wrong#264652 "-- url of the page with the problem -- :   verswarenrapallo.be/bestellen  -- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5  I would like to show the subtotal (without tax), tax and Total (with VAT). Now, subtotal shows price with tax?  I red here (  www.hikashop.com/forum/4-how-to/78956-i-...gistration-form.html ) that I have to change the view checkout / Cart. But when I go to that file (from my template), I don't find the code you describe. (See attachments for the code that I see)  Can you help me?  I also would like to remove the coupon code?  Thanks!  Regards")*

Ok, I will take a look at it. Can you help me with something else please? I added an advanced date picker to the registration form and i would like to display it in both mails (to customer and to me)

How can i display that to the form please, because i'm not very strong with the code ...

Thank you very much!!!

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

9 years 8 months ago [\#264657](#264657) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Subtotal is wrong](/forum/27-checkout/889192-subtotal-is-wrong#264657 "-- url of the page with the problem -- :   verswarenrapallo.be/bestellen  -- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5  I would like to show the subtotal (without tax), tax and Total (with VAT). Now, subtotal shows price with tax?  I red here (  www.hikashop.com/forum/4-how-to/78956-i-...gistration-form.html ) that I have to change the view checkout / Cart. But when I go to that file (from my template), I don't find the code you describe. (See attachments for the code that I see)  Can you help me?  I also would like to remove the coupon code?  Thanks!  Regards")*

Hi,

I'm not sure what you mean. How did you configure the custom field ? Could you do a screenshot of its settings ?

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

- **[Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")**
- [![Lodeke87's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar46984.jpg)](/forum/user/46984-lodeke87 "View Lodeke87's Profile") Topic Author
- [ Offline](/forum/user/46984-lodeke87)

Less More

- Posts: 21
- Thank you received: 0
-
-

9 years 8 months ago [\#264698](#264698) by [Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")  Replied by *[Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")* on topic *[Subtotal is wrong](/forum/27-checkout/889192-subtotal-is-wrong#264698 "-- url of the page with the problem -- :   verswarenrapallo.be/bestellen  -- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5  I would like to show the subtotal (without tax), tax and Total (with VAT). Now, subtotal shows price with tax?  I red here (  www.hikashop.com/forum/4-how-to/78956-i-...gistration-form.html ) that I have to change the view checkout / Cart. But when I go to that file (from my template), I don't find the code you describe. (See attachments for the code that I see)  Can you help me?  I also would like to remove the coupon code?  Thanks!  Regards")*

I created a new field (type: advanced date picker) and now i would like to show in the email to the administrator ... But how can i do that? (See attachments)

Also there is a second : sign that i not able to remove? how can i do that?

Thank you very much

- [ ![Field1.png](/forum/attachment/36973) ](/forum/attachment/36973 "Field1.png") [ ](/forum/attachment/36973?download=1 "Field1.png")
- [ ![Fields.png](/forum/attachment/36974) ](/forum/attachment/36974 "Fields.png") [ ](/forum/attachment/36974?download=1 "Fields.png")

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

9 years 8 months ago [\#264734](#264734) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Subtotal is wrong](/forum/27-checkout/889192-subtotal-is-wrong#264734 "-- url of the page with the problem -- :   verswarenrapallo.be/bestellen  -- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5  I would like to show the subtotal (without tax), tax and Total (with VAT). Now, subtotal shows price with tax?  I red here (  www.hikashop.com/forum/4-how-to/78956-i-...gistration-form.html ) that I have to change the view checkout / Cart. But when I go to that file (from my template), I don't find the code you describe. (See attachments for the code that I see)  Can you help me?  I also would like to remove the coupon code?  Thanks!  Regards")*

Hi,

1. In the HikaShop configuration, in the checkout tab, you can configure the address format. You need to add the tag for your custom field there and it will be added in the email address area, like the other custom address fields.

2. Edit your order admin notification email via the menu System&gt;Emails and in the preload area, remove it on the line :
'CUSTOMER_DETAILS' =&gt; JText::_('HIKA_CUSTOMER_EMAIL').': '.$userInfos-&gt;user_email,

PS: when you do screenshots next time, please try to do them while being logged in in English so that we can easily understand them or not have to translated them.

The following user(s) said Thank You: [Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")

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

- **[Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")**
- [![Lodeke87's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar46984.jpg)](/forum/user/46984-lodeke87 "View Lodeke87's Profile") Topic Author
- [ Offline](/forum/user/46984-lodeke87)

Less More

- Posts: 21
- Thank you received: 0
-
-

9 years 7 months ago [\#264801](#264801) by [Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")  Replied by *[Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")* on topic *[Subtotal is wrong](/forum/27-checkout/889192-subtotal-is-wrong#264801 "-- url of the page with the problem -- :   verswarenrapallo.be/bestellen  -- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5  I would like to show the subtotal (without tax), tax and Total (with VAT). Now, subtotal shows price with tax?  I red here (  www.hikashop.com/forum/4-how-to/78956-i-...gistration-form.html ) that I have to change the view checkout / Cart. But when I go to that file (from my template), I don't find the code you describe. (See attachments for the code that I see)  Can you help me?  I also would like to remove the coupon code?  Thanks!  Regards")*

Thank you! That worked!

But I still have a problem with the subtotal, so I will just delete it from my email, because it's the same as 'price with vat'. Do you know how I can remove the line subtotal? Thank you

- [ ![remove.png](/forum/attachment/36988) ](/forum/attachment/36988 "remove.png") [ ](/forum/attachment/36988?download=1 "remove.png")

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Away](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26396
- Thank you received: 4078
-
- [](http://obsi.dev)
-

9 years 7 months ago [\#264802](#264802) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Subtotal is wrong](/forum/27-checkout/889192-subtotal-is-wrong#264802 "-- url of the page with the problem -- :   verswarenrapallo.be/bestellen  -- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5  I would like to show the subtotal (without tax), tax and Total (with VAT). Now, subtotal shows price with tax?  I red here (  www.hikashop.com/forum/4-how-to/78956-i-...gistration-form.html ) that I have to change the view checkout / Cart. But when I go to that file (from my template), I don't find the code you describe. (See attachments for the code that I see)  Can you help me?  I also would like to remove the coupon code?  Thanks!  Regards")*

Hi,

Nicolas indicated you how to modify the email preload
[ www.hikashop.com/forum/checkout/889192-s...is-wrong.html#264464](https://www.hikashop.com/forum/checkout/889192-subtotal-is-wrong.html#264464)

There you can modify the way that the subtotal is process but you will also find the line which add the subtotal in the cart "footer".
By commenting the line, you won't add the subtotal in the footer which won't be display in the email afterwards.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")**
- [![Lodeke87's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar46984.jpg)](/forum/user/46984-lodeke87 "View Lodeke87's Profile") Topic Author
- [ Offline](/forum/user/46984-lodeke87)

Less More

- Posts: 21
- Thank you received: 0
-
-

9 years 7 months ago [\#265001](#265001) by [Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")  Replied by *[Lodeke87](/forum/user/46984-lodeke87 "View Lodeke87's Profile")* on topic *[Subtotal is wrong](/forum/27-checkout/889192-subtotal-is-wrong#265001 "-- url of the page with the problem -- :   verswarenrapallo.be/bestellen  -- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5  I would like to show the subtotal (without tax), tax and Total (with VAT). Now, subtotal shows price with tax?  I red here (  www.hikashop.com/forum/4-how-to/78956-i-...gistration-form.html ) that I have to change the view checkout / Cart. But when I go to that file (from my template), I don't find the code you describe. (See attachments for the code that I see)  Can you help me?  I also would like to remove the coupon code?  Thanks!  Regards")*

Yes thanks for that. But it's the first time I use Hikashop, so I'm not very confident. So before I do something that ruins the whole thing, I rather ask twice. So I apologize for my many questions ...

I think this is the part where I have to look? But exactly what part do I have to comment out?
Code:

if($config-&gt;get('price_with_tax')){ $unit_price = $currencyHelper-&gt;format($item-&gt;order_product_price+$item-&gt;order_product_tax,$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); $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($data-&gt;cart-&gt;order_discount_price,0,5) &#124;&#124; bccomp($data-&gt;cart-&gt;order_shipping_price,0,5) &#124;&#124; bccomp($data-&gt;cart-&gt;order_payment_price,0,5) &#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( '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)) { 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); } $cartFooters[] = array( 'NAME' =&gt; JText::_('HIKASHOP_COUPON'), 'VALUE' =&gt; $t );

Thank you very much!

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

9 years 7 months ago [\#265014](#265014) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Subtotal is wrong](/forum/27-checkout/889192-subtotal-is-wrong#265014 "-- url of the page with the problem -- :   verswarenrapallo.be/bestellen  -- HikaShop version -- : 3.0.0 -- Joomla version -- : 3.6.5  I would like to show the subtotal (without tax), tax and Total (with VAT). Now, subtotal shows price with tax?  I red here (  www.hikashop.com/forum/4-how-to/78956-i-...gistration-form.html ) that I have to change the view checkout / Cart. But when I go to that file (from my template), I don't find the code you describe. (See attachments for the code that I see)  Can you help me?  I also would like to remove the coupon code?  Thanks!  Regards")*

Hi,

You can always click on the "remove customization" bin icons of the email on the emails listing if you mess up the email. So don't worry.

Please understand that we provide user support, not custom development services. We already went beyond what we're supposed to do and gave you hints and code modifications. If you're not a developer and need such customization help by a professional, please contact someone to help you with it. For example, some of our partners can do such custom development:
[ www.hikashop.com/home/our-partners.html](https://www.hikashop.com/home/our-partners.html)

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

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