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

#   New subtotal after coupon used

##

- **[geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")**
- [![geenidee3's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/dog.png)](/forum/user/49382-geenidee3 "View geenidee3's Profile") Topic Author
- [ Offline](/forum/user/49382-geenidee3)

Less More

- Posts: 22
- Thank you received: 2
-
-

7 years 10 months ago [\#302659](#302659) by [geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")  *[New subtotal after coupon used](/forum/27-checkout/896684-new-subtotal-after-coupon-used#302659 "-- url of the page with the problem -- :   scopeslipstop.com/nl/winkel  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome  Hiiii Hikashop,  I have a question...  Would it be possible to add a new subtotal after a coupon code is used? Now the situation is like:  Subtotal Coupon Shipment tax Total  But I would like to have it like:  Subtotal Coupon (new subtotal where the coupon is taken off) Shipment tax total  Would that be possible?  Thanks!  Martijn")* was created by *[geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")*

-- url of the page with the problem -- : [ scopeslipstop.com/nl/winkel](https://scopeslipstop.com/nl/winkel)
-- HikaShop version -- : 4.0.1
-- Joomla version -- : 3.9.2
-- PHP version -- : 7.2
-- Browser(s) name and version -- : Chrome

Hiiii Hikashop,

I have a question...

Would it be possible to add a new subtotal after a coupon code is used? Now the situation is like:

Subtotal
Coupon
Shipment
tax
Total

But I would like to have it like:

Subtotal
Coupon
(new subtotal where the coupon is taken off)
Shipment
tax
total

[ ![coupon.jpg](/forum/attachment/45821) ](/forum/attachment/45821 "coupon.jpg")

Would that be possible?

Thanks!

Martijn

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

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

7 years 10 months ago [\#302662](#302662) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[New subtotal after coupon used](/forum/27-checkout/896684-new-subtotal-after-coupon-used#302662 "-- url of the page with the problem -- :   scopeslipstop.com/nl/winkel  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome  Hiiii Hikashop,  I have a question...  Would it be possible to add a new subtotal after a coupon code is used? Now the situation is like:  Subtotal Coupon Shipment tax Total  But I would like to have it like:  Subtotal Coupon (new subtotal where the coupon is taken off) Shipment tax total  Would that be possible?  Thanks!  Martijn")*

Hi,

It's possible yes. You can edit the file "show_block_cart" via the menu Display&gt;Views and add the corresponding code to the view file to add that line.

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

- **[geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")**
- [![geenidee3's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/dog.png)](/forum/user/49382-geenidee3 "View geenidee3's Profile") Topic Author
- [ Offline](/forum/user/49382-geenidee3)

Less More

- Posts: 22
- Thank you received: 2
-
-

7 years 10 months ago -  7 years 10 months ago [\#302751](#302751) by [geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")  Replied by *[geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")* on topic *[New subtotal after coupon used](/forum/27-checkout/896684-new-subtotal-after-coupon-used#302751 "-- url of the page with the problem -- :   scopeslipstop.com/nl/winkel  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome  Hiiii Hikashop,  I have a question...  Would it be possible to add a new subtotal after a coupon code is used? Now the situation is like:  Subtotal Coupon Shipment tax Total  But I would like to have it like:  Subtotal Coupon (new subtotal where the coupon is taken off) Shipment tax total  Would that be possible?  Thanks!  Martijn")*

Thank you soooo much ![:-)](/media/kunena/emoticons/3.png ":-)").

Would it be possible (I think because you guys eat code for breakfast) to point me with code I should put where? ![:-)](/media/kunena/emoticons/3.png ":-)")

Code: Code:

remove full code of the view ; please understand that we also have it

Thanks !

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

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

7 years 10 months ago -  7 years 10 months ago [\#302755](#302755) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[New subtotal after coupon used](/forum/27-checkout/896684-new-subtotal-after-coupon-used#302755 "-- url of the page with the problem -- :   scopeslipstop.com/nl/winkel  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome  Hiiii Hikashop,  I have a question...  Would it be possible to add a new subtotal after a coupon code is used? Now the situation is like:  Subtotal Coupon Shipment tax Total  But I would like to have it like:  Subtotal Coupon (new subtotal where the coupon is taken off) Shipment tax total  Would that be possible?  Thanks!  Martijn")*

Hi,

You would need to add: Code:

&lt;tr class="margin"&gt;&lt;td colspan="&lt;?php echo $row_count; ?&gt;" class="hikashop_cart_empty_footer"&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $row_count - 2; ?&gt;" class="hikashop_cart_empty_footer"&gt;&lt;/td&gt; &lt;td id="hikashop_checkout_cart_total2_title" class="hikashop_cart_subtotal_title hikashop_cart_title"&gt;&lt;?php echo 'Subtotal after coupon'; ?&gt;&lt;/td&gt; &lt;td class="hikashop_cart_subtotal_value" data-title="&lt;?php echo JText::_('SUBTOTAL'); ?&gt;"&gt; &lt;span class="hikashop_checkout_cart_subtotal"&gt;&lt;?php if(!empty($this-&gt;options['price_with_tax'])) echo $this-&gt;currencyClass-&gt;format(@$cart-&gt;total-&gt;prices[0]-&gt;price_value_with_tax+ (@$cart-&gt;coupon-&gt;discount_value_without_tax * -1),@$cart-&gt;total-&gt;prices[0]-&gt;price_currency_id); else echo $this-&gt;currencyClass-&gt;format(@$cart-&gt;total-&gt;prices[0]-&gt;price_value+(@$cart-&gt;coupon-&gt;discount_value * -1),@$cart-&gt;total-&gt;prices[0]-&gt;price_currency_id); ?&gt;&lt;/span&gt; &lt;/td&gt; &lt;/tr&gt;

after the code: Code:

&lt;tr&gt; &lt;td colspan="&lt;?php echo $row_count - 2; ?&gt;" class="hikashop_cart_empty_footer"&gt;&lt;/td&gt; &lt;td id="hikashop_checkout_cart_coupon_title" class="hikashop_cart_coupon_title hikashop_cart_title"&gt;&lt;?php echo JText::_('HIKASHOP_COUPON'); ?&gt;&lt;/td&gt; &lt;td class="hikashop_cart_coupon_value" data-title="&lt;?php echo JText::_('HIKASHOP_COUPON'); ?&gt;"&gt; &lt;span class="hikashop_checkout_cart_coupon"&gt;&lt;?php if(empty($this-&gt;options['price_with_tax'])) echo $this-&gt;currencyClass-&gt;format(@$cart-&gt;coupon-&gt;discount_value_without_tax * -1, @$cart-&gt;coupon-&gt;discount_currency_id); else echo $this-&gt;currencyClass-&gt;format(@$cart-&gt;coupon-&gt;discount_value * -1, @$cart-&gt;coupon-&gt;discount_currency_id); ?&gt;&lt;/span&gt; &lt;/td&gt; &lt;/tr&gt;

Please understand that our support is for questions regarding the use of Hikashop or bug reports. For custom development needs like that, you can contact our partners ( [ www.hikashop.com/home/our-partners.html](https://www.hikashop.com/home/our-partners.html) ) or us ( [ www.hikashop.com/support/contact-us.html](https://www.hikashop.com/support/contact-us.html) ).
I did it this time as it was just a smal thing but beware that it's an exception to the rule.

Last edit: 7 years 10 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

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

- **[geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")**
- [![geenidee3's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/dog.png)](/forum/user/49382-geenidee3 "View geenidee3's Profile") Topic Author
- [ Offline](/forum/user/49382-geenidee3)

Less More

- Posts: 22
- Thank you received: 2
-
-

7 years 10 months ago [\#302824](#302824) by [geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")  Replied by *[geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")* on topic *[New subtotal after coupon used](/forum/27-checkout/896684-new-subtotal-after-coupon-used#302824 "-- url of the page with the problem -- :   scopeslipstop.com/nl/winkel  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome  Hiiii Hikashop,  I have a question...  Would it be possible to add a new subtotal after a coupon code is used? Now the situation is like:  Subtotal Coupon Shipment tax Total  But I would like to have it like:  Subtotal Coupon (new subtotal where the coupon is taken off) Shipment tax total  Would that be possible?  Thanks!  Martijn")*

Thanks !

Ok I understand, and therefore I'm even more thankfull !

You guys are the best...

Martijn

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

7 years 10 months ago [\#302827](#302827) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[New subtotal after coupon used](/forum/27-checkout/896684-new-subtotal-after-coupon-used#302827 "-- url of the page with the problem -- :   scopeslipstop.com/nl/winkel  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome  Hiiii Hikashop,  I have a question...  Would it be possible to add a new subtotal after a coupon code is used? Now the situation is like:  Subtotal Coupon Shipment tax Total  But I would like to have it like:  Subtotal Coupon (new subtotal where the coupon is taken off) Shipment tax total  Would that be possible?  Thanks!  Martijn")*

Thanks !

If you want to help us, you can post a comment on the JED and spread the love ![:)](/media/kunena/emoticons/3.png ":)") :
[ extensions.joomla.org/extensions/extensi...pping-cart/hikashop/](https://extensions.joomla.org/extensions/extension/e-commerce/shopping-cart/hikashop/)

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

- **[geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")**
- [![geenidee3's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/dog.png)](/forum/user/49382-geenidee3 "View geenidee3's Profile") Topic Author
- [ Offline](/forum/user/49382-geenidee3)

Less More

- Posts: 22
- Thank you received: 2
-
-

7 years 10 months ago [\#302881](#302881) by [geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")  Replied by *[geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")* on topic *[New subtotal after coupon used](/forum/27-checkout/896684-new-subtotal-after-coupon-used#302881 "-- url of the page with the problem -- :   scopeslipstop.com/nl/winkel  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome  Hiiii Hikashop,  I have a question...  Would it be possible to add a new subtotal after a coupon code is used? Now the situation is like:  Subtotal Coupon Shipment tax Total  But I would like to have it like:  Subtotal Coupon (new subtotal where the coupon is taken off) Shipment tax total  Would that be possible?  Thanks!  Martijn")*

I will write a great review for you guys !

One question...

[ ![tax.jpg](/forum/attachment/45877) ](/forum/attachment/45877 "tax.jpg")

The tax calculation isnt going well. It should calculate the tax (btw) from the price after the coupon, but it takes the tax from the original subtotal.

I cannot find the solution in your forum.

Do you have a suggestion for me?

Thanks, Martijn

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

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

7 years 10 months ago [\#302887](#302887) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[New subtotal after coupon used](/forum/27-checkout/896684-new-subtotal-after-coupon-used#302887 "-- url of the page with the problem -- :   scopeslipstop.com/nl/winkel  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome  Hiiii Hikashop,  I have a question...  Would it be possible to add a new subtotal after a coupon code is used? Now the situation is like:  Subtotal Coupon Shipment tax Total  But I would like to have it like:  Subtotal Coupon (new subtotal where the coupon is taken off) Shipment tax total  Would that be possible?  Thanks!  Martijn")*

Hi,

This depends on how you configured the "apply coupon" setting of the HikaShop configuration and how you setup the tax settings in your coupon. So you'll want to switch these and see how it goes.

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

- **[geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")**
- [![geenidee3's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/dog.png)](/forum/user/49382-geenidee3 "View geenidee3's Profile") Topic Author
- [ Offline](/forum/user/49382-geenidee3)

Less More

- Posts: 22
- Thank you received: 2
-
-

7 years 10 months ago [\#302981](#302981) by [geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")  Replied by *[geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")* on topic *[New subtotal after coupon used](/forum/27-checkout/896684-new-subtotal-after-coupon-used#302981 "-- url of the page with the problem -- :   scopeslipstop.com/nl/winkel  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome  Hiiii Hikashop,  I have a question...  Would it be possible to add a new subtotal after a coupon code is used? Now the situation is like:  Subtotal Coupon Shipment tax Total  But I would like to have it like:  Subtotal Coupon (new subtotal where the coupon is taken off) Shipment tax total  Would that be possible?  Thanks!  Martijn")*

Not so good yet ![:-)](/media/kunena/emoticons/3.png ":-)").

I spend a lot of time in testing all the settings.

The weird thing is that everything is correct now, but in the end at "total" it suddenly does a double tax on the coupon.

[ ![wrong-tax-coupon.jpg](/forum/attachment/45908) ](/forum/attachment/45908 "...tax-coupon.jpg")

How can I change that? Then I'm finished ![:-)](/media/kunena/emoticons/3.png ":-)").

Thanks... Martijn

- [ ![wrong-tax-coupon.jpg](/forum/attachment/45908) ](/forum/attachment/45908 "...tax-coupon.jpg") [ ](/forum/attachment/45908?download=1 "...tax-coupon.jpg")

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

7 years 10 months ago [\#303008](#303008) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[New subtotal after coupon used](/forum/27-checkout/896684-new-subtotal-after-coupon-used#303008 "-- url of the page with the problem -- :   scopeslipstop.com/nl/winkel  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome  Hiiii Hikashop,  I have a question...  Would it be possible to add a new subtotal after a coupon code is used? Now the situation is like:  Subtotal Coupon Shipment tax Total  But I would like to have it like:  Subtotal Coupon (new subtotal where the coupon is taken off) Shipment tax total  Would that be possible?  Thanks!  Martijn")*

Hi,

Hard to say without knowing exactly how everything in play there is configured.
Please provide:
- a screenshot of the settings of each of the products in that cart
- a screenshot of the settings of the coupon
- a screenshot of the settings of the taxes area of your HikaShop configuration
- a screenshot of the settings of your tax rule

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

- **[geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")**
- [![geenidee3's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/dog.png)](/forum/user/49382-geenidee3 "View geenidee3's Profile") Topic Author
- [ Offline](/forum/user/49382-geenidee3)

Less More

- Posts: 22
- Thank you received: 2
-
-

7 years 10 months ago [\#303052](#303052) by [geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")  Replied by *[geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")* on topic *[New subtotal after coupon used](/forum/27-checkout/896684-new-subtotal-after-coupon-used#303052 "-- url of the page with the problem -- :   scopeslipstop.com/nl/winkel  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome  Hiiii Hikashop,  I have a question...  Would it be possible to add a new subtotal after a coupon code is used? Now the situation is like:  Subtotal Coupon Shipment tax Total  But I would like to have it like:  Subtotal Coupon (new subtotal where the coupon is taken off) Shipment tax total  Would that be possible?  Thanks!  Martijn")*

Hi Nicolas,

Hereby the settings:

[ ![product.jpg](/forum/attachment/45928) ](/forum/attachment/45928 "product.jpg")

[ ![coupon-test.jpg](/forum/attachment/45929) ](/forum/attachment/45929 "coupon-test.jpg")

[ ![btw-config.jpg](/forum/attachment/45930) ](/forum/attachment/45930 "btw-config.jpg")

[ ![tax-rule.jpg](/forum/attachment/45927) ](/forum/attachment/45927 "tax-rule.jpg")

Hope you see the solution...

Martijn

- [ ![tax-rule.jpg](/forum/attachment/45927) ](/forum/attachment/45927 "tax-rule.jpg") [ ](/forum/attachment/45927?download=1 "tax-rule.jpg")
- [ ![product.jpg](/forum/attachment/45928) ](/forum/attachment/45928 "product.jpg") [ ](/forum/attachment/45928?download=1 "product.jpg")
- [ ![coupon-test.jpg](/forum/attachment/45929) ](/forum/attachment/45929 "coupon-test.jpg") [ ](/forum/attachment/45929?download=1 "coupon-test.jpg")
- [ ![btw-config.jpg](/forum/attachment/45930) ](/forum/attachment/45930 "btw-config.jpg") [ ](/forum/attachment/45930?download=1 "btw-config.jpg")

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

7 years 9 months ago [\#303097](#303097) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[New subtotal after coupon used](/forum/27-checkout/896684-new-subtotal-after-coupon-used#303097 "-- url of the page with the problem -- :   scopeslipstop.com/nl/winkel  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome  Hiiii Hikashop,  I have a question...  Would it be possible to add a new subtotal after a coupon code is used? Now the situation is like:  Subtotal Coupon Shipment tax Total  But I would like to have it like:  Subtotal Coupon (new subtotal where the coupon is taken off) Shipment tax total  Would that be possible?  Thanks!  Martijn")*

Hi,

I'm trying to reproduce the issue on your website but I see that you have several variants for the products and none of them have a price of 720€.
So either you have several times the product in the cart, or I'm missing some information.
Also, could you tell me which variant you used for your test here [ www.hikashop.com/forum/checkout/896684-n...pon-used.html#302981](https://www.hikashop.com/forum/checkout/896684-new-subtotal-after-coupon-used.html#302981) and what quantity you used ?
Could you also provide screenshots of all the options of the product and of the variant ?

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

- **[geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")**
- [![geenidee3's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/dog.png)](/forum/user/49382-geenidee3 "View geenidee3's Profile") Topic Author
- [ Offline](/forum/user/49382-geenidee3)

Less More

- Posts: 22
- Thank you received: 2
-
-

7 years 9 months ago [\#303107](#303107) by [geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")  Replied by *[geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")* on topic *[New subtotal after coupon used](/forum/27-checkout/896684-new-subtotal-after-coupon-used#303107 "-- url of the page with the problem -- :   scopeslipstop.com/nl/winkel  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome  Hiiii Hikashop,  I have a question...  Would it be possible to add a new subtotal after a coupon code is used? Now the situation is like:  Subtotal Coupon Shipment tax Total  But I would like to have it like:  Subtotal Coupon (new subtotal where the coupon is taken off) Shipment tax total  Would that be possible?  Thanks!  Martijn")*

Hi Nicolas,

The problem occurs with every item you would like to buy. As soon as you use a coupon (in this case you can try the "test" coupon, you will see that in the end the calculation isn't going as how it should. (does again tax on the coupon, while the tax already has been calculated).

For the example I used: [ www.scopeslipstop.com/nl/winkel-2/product/antislip-strip](https://www.scopeslipstop.com/nl/winkel-2/product/antislip-strip) and then the 2400mm x 50mm version, fijn, black and 20 pieces.

Now I'm asking ![:P](/media/kunena/emoticons/14.png ":P")... I also have always that when I add 20 items in the item box and add it to the shopping cart, it only adds 1 item instead of 20. Do you have any idea why is that?

If you want I can also give you the login of the page if that would be easier?

Martijn

p.s. thanks

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

7 years 9 months ago [\#303127](#303127) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[New subtotal after coupon used](/forum/27-checkout/896684-new-subtotal-after-coupon-used#303127 "-- url of the page with the problem -- :   scopeslipstop.com/nl/winkel  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome  Hiiii Hikashop,  I have a question...  Would it be possible to add a new subtotal after a coupon code is used? Now the situation is like:  Subtotal Coupon Shipment tax Total  But I would like to have it like:  Subtotal Coupon (new subtotal where the coupon is taken off) Shipment tax total  Would that be possible?  Thanks!  Martijn")*

Hi,

I would think that you want to activate the "automatic tax" setting of the coupon.
Now I'm not sure why you would get the tax correct but the total incorrect.
Could you provide a backend accesss and a FTP access along with a link to this thread so that we could check on the issue ?
[ www.hikashop.com/support/contact-us.html](https://www.hikashop.com/support/contact-us.html)

Regarding the add to cart quantity issue, that's because of the customization of the layout of the product page. The elements of the product page are no longer inside the main form of the product page:
[ monosnap.com/file/vz5WCzjJVIJPyxBts8WKuQW9xrKmDX](https://monosnap.com/file/vz5WCzjJVIJPyxBts8WKuQW9xrKmDX)
Because of that, the system doesn't find the quantity input and submits the add to cart without it. So it will require fixing the layout customization for it to work properly.

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

- **[geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")**
- [![geenidee3's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/dog.png)](/forum/user/49382-geenidee3 "View geenidee3's Profile") Topic Author
- [ Offline](/forum/user/49382-geenidee3)

Less More

- Posts: 22
- Thank you received: 2
-
-

7 years 9 months ago [\#303550](#303550) by [geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")  Replied by *[geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")* on topic *[New subtotal after coupon used](/forum/27-checkout/896684-new-subtotal-after-coupon-used#303550 "-- url of the page with the problem -- :   scopeslipstop.com/nl/winkel  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome  Hiiii Hikashop,  I have a question...  Would it be possible to add a new subtotal after a coupon code is used? Now the situation is like:  Subtotal Coupon Shipment tax Total  But I would like to have it like:  Subtotal Coupon (new subtotal where the coupon is taken off) Shipment tax total  Would that be possible?  Thanks!  Martijn")*

Hi all,

Like a week a go I provided you with all the info, but I believe nothing happened yet ![:-)](/media/kunena/emoticons/3.png ":-)"). Will you still take a look? (kind reminder).

Thank you

Martijn

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

- **[geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")**
- [![geenidee3's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/dog.png)](/forum/user/49382-geenidee3 "View geenidee3's Profile") Topic Author
- [ Offline](/forum/user/49382-geenidee3)

Less More

- Posts: 22
- Thank you received: 2
-
-

7 years 9 months ago [\#303706](#303706) by [geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")  Replied by *[geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")* on topic *[New subtotal after coupon used](/forum/27-checkout/896684-new-subtotal-after-coupon-used#303706 "-- url of the page with the problem -- :   scopeslipstop.com/nl/winkel  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome  Hiiii Hikashop,  I have a question...  Would it be possible to add a new subtotal after a coupon code is used? Now the situation is like:  Subtotal Coupon Shipment tax Total  But I would like to have it like:  Subtotal Coupon (new subtotal where the coupon is taken off) Shipment tax total  Would that be possible?  Thanks!  Martijn")*

Hi Nicolas,

I'm a bit worried as it looks like you guys are ignoring me ![:-)](/media/kunena/emoticons/3.png ":-)").

Can you please come back to this topic?

Thanks Martijn

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

7 years 9 months ago [\#303749](#303749) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[New subtotal after coupon used](/forum/27-checkout/896684-new-subtotal-after-coupon-used#303749 "-- url of the page with the problem -- :   scopeslipstop.com/nl/winkel  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome  Hiiii Hikashop,  I have a question...  Would it be possible to add a new subtotal after a coupon code is used? Now the situation is like:  Subtotal Coupon Shipment tax Total  But I would like to have it like:  Subtotal Coupon (new subtotal where the coupon is taken off) Shipment tax total  Would that be possible?  Thanks!  Martijn")*

Hi,

Sorry, we didn't had to time to look into it. Looking into taxes issues takes a while as we need to do all the calculations by hand to check each line to try to understand what is wrong so I had to get myself a few hours open to be able to investigate.

And actually, all the calculations done are correct as far as I could see. So no problem with the calculations. The only issue is with the "Subtotaal na coupon", but that's added with custom code I gave you rapidely previously:
[ www.hikashop.com/forum/checkout/896684-n...pon-used.html#302755](https://www.hikashop.com/forum/checkout/896684-new-subtotal-after-coupon-used.html#302755)
I had actually made a typo there and reverted the without_tax for the coupon value.
So the code should actually be: Code:

&lt;tr class="margin"&gt;&lt;td colspan="&lt;?php echo $row_count; ?&gt;" class="hikashop_cart_empty_footer"&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt; &lt;td colspan="&lt;?php echo $row_count - 2; ?&gt;" class="hikashop_cart_empty_footer"&gt;&lt;/td&gt; &lt;td id="hikashop_checkout_cart_total2_title" class="hikashop_cart_subtotal_title hikashop_cart_title"&gt;&lt;?php echo 'Subtotal after coupon'; ?&gt;&lt;/td&gt; &lt;td class="hikashop_cart_subtotal_value" data-title="&lt;?php echo JText::_('SUBTOTAL'); ?&gt;"&gt; &lt;span class="hikashop_checkout_cart_subtotal"&gt;&lt;?php if(!empty($this-&gt;options['price_with_tax'])) echo $this-&gt;currencyClass-&gt;format(@$cart-&gt;total-&gt;prices[0]-&gt;price_value_with_tax+ (@$cart-&gt;coupon-&gt;discount_value * -1),@$cart-&gt;total-&gt;prices[0]-&gt;price_currency_id); else echo $this-&gt;currencyClass-&gt;format(@$cart-&gt;total-&gt;prices[0]-&gt;price_value+(@$cart-&gt;coupon-&gt;discount_value_without_tax * -1),@$cart-&gt;total-&gt;prices[0]-&gt;price_currency_id); ?&gt;&lt;/span&gt; &lt;/td&gt; &lt;/tr&gt;

Please note that such customization is outside the user support we're supposed to provide with HikaShop commercial editions. I gave it this time, but that's something you're supposed to hire a developer for.

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

- **[geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")**
- [![geenidee3's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/dog.png)](/forum/user/49382-geenidee3 "View geenidee3's Profile") Topic Author
- [ Offline](/forum/user/49382-geenidee3)

Less More

- Posts: 22
- Thank you received: 2
-
-

7 years 9 months ago -  7 years 9 months ago [\#303863](#303863) by [geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")  Replied by *[geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile")* on topic *[New subtotal after coupon used](/forum/27-checkout/896684-new-subtotal-after-coupon-used#303863 "-- url of the page with the problem -- :   scopeslipstop.com/nl/winkel  -- HikaShop version -- : 4.0.1 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.2 -- Browser(s) name and version -- : Chrome  Hiiii Hikashop,  I have a question...  Would it be possible to add a new subtotal after a coupon code is used? Now the situation is like:  Subtotal Coupon Shipment tax Total  But I would like to have it like:  Subtotal Coupon (new subtotal where the coupon is taken off) Shipment tax total  Would that be possible?  Thanks!  Martijn")*

It helped a lot...! Thank you for the help !

I know you don't give code support, but to be honest I believe that there should be a difference in between how thinks look and how things work. But that's only a suggestion ![:-)](/media/kunena/emoticons/3.png ":-)"). I'm thankful that you guys always helped me so far and I will write a great review for you guys.

Martijn

Last edit: 7 years 9 months ago by [geenidee3](/forum/user/49382-geenidee3 "View geenidee3's Profile").

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

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

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