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

#   Discount being applied to individual products

##

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

Less More

- Posts: 122
- Thank you received: 0
-
-

12 years 5 months ago [\#160823](#160823) by [optimized](/forum/user/31311-optimized "View optimized's Profile")  Replied by *[optimized](/forum/user/31311-optimized "View optimized's Profile")* on topic *[Discount being applied to individual products](/forum/27-checkout/868264-discount-being-applied-to-individual-products?start=20#160823 "-- url of the page with the problem -- : starsupplyalliance.com -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.2 -- PHP version -- : 5.4 -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I need the discount to be applied to the total purchase amount not the individual products purchased. I have used the Orders / Discounts /Coupons set up as advised and I attach a screen shot of one of the coupons.  How do I get the coupon to reflect the total amount in the cart?  Many thanks,  Mike")*

Hi guys,

Is there any update on the pre/post tax discount issue?

Thanks,

Mike

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2ODI2NC1kaXNjb3VudC1iZWluZy1hcHBsaWVkLXRvLWluZGl2aWR1YWwtcHJvZHVjdHM/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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: 14326
-
-

12 years 5 months ago [\#160865](#160865) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Discount being applied to individual products](/forum/27-checkout/868264-discount-being-applied-to-individual-products?start=20#160865 "-- url of the page with the problem -- : starsupplyalliance.com -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.2 -- PHP version -- : 5.4 -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I need the discount to be applied to the total purchase amount not the individual products purchased. I have used the Orders / Discounts /Coupons set up as advised and I attach a screen shot of one of the coupons.  How do I get the coupon to reflect the total amount in the cart?  Many thanks,  Mike")*

Hi,

You said that the option was already setup like I told you, but I didn't told you how it should be set, I only told you to change it (so to set it the the other value that you already had selected).
So if you didn't toggle the field, it's normal that you still have the problem.
Please follow my directions and it should help.

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

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

Less More

- Posts: 122
- Thank you received: 0
-
-

12 years 4 months ago [\#162517](#162517) by [optimized](/forum/user/31311-optimized "View optimized's Profile")  Replied by *[optimized](/forum/user/31311-optimized "View optimized's Profile")* on topic *[Discount being applied to individual products](/forum/27-checkout/868264-discount-being-applied-to-individual-products?start=20#162517 "-- url of the page with the problem -- : starsupplyalliance.com -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.2 -- PHP version -- : 5.4 -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I need the discount to be applied to the total purchase amount not the individual products purchased. I have used the Orders / Discounts /Coupons set up as advised and I attach a screen shot of one of the coupons.  How do I get the coupon to reflect the total amount in the cart?  Many thanks,  Mike")*

Hi Nicolas,

Your suggestion has fixed the issue with the incorrect discount calculations.

We now only have one remaining problem with the total calculation.

The system is calculating the tax on the pre-discount total not the post discount total.

I have attached a screen shot to show the issue.

How do we modify the config to get the desired result?

Regards,

Mike

- [ ![hdcd0e10&#95;2014-07-01.png](/forum/attachment/18223) ](/forum/attachment/18223 "...2014-07-01.png") [ ](/forum/attachment/18223?download=1 "...2014-07-01.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2ODI2NC1kaXNjb3VudC1iZWluZy1hcHBsaWVkLXRvLWluZGl2aWR1YWwtcHJvZHVjdHM/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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: 14326
-
-

12 years 4 months ago [\#162535](#162535) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Discount being applied to individual products](/forum/27-checkout/868264-discount-being-applied-to-individual-products?start=20#162535 "-- url of the page with the problem -- : starsupplyalliance.com -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.2 -- PHP version -- : 5.4 -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I need the discount to be applied to the total purchase amount not the individual products purchased. I have used the Orders / Discounts /Coupons set up as advised and I attach a screen shot of one of the coupons.  How do I get the coupon to reflect the total amount in the cart?  Many thanks,  Mike")*

So regarding the taxes and discounts there are two options which control that:
- The "Apply discount" option of the configuration
- The "Tax category" option of the discount itself
So you have four possible combinations in order to cover the different cases necessary for everyone.
If you don't get the result you want, it means that you don't have the correct combination for your need.
So try changing the tax category of your discount and see if that helps.

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

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

Less More

- Posts: 122
- Thank you received: 0
-
-

12 years 4 months ago [\#162700](#162700) by [optimized](/forum/user/31311-optimized "View optimized's Profile")  Replied by *[optimized](/forum/user/31311-optimized "View optimized's Profile")* on topic *[Discount being applied to individual products](/forum/27-checkout/868264-discount-being-applied-to-individual-products?start=20#162700 "-- url of the page with the problem -- : starsupplyalliance.com -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.2 -- PHP version -- : 5.4 -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I need the discount to be applied to the total purchase amount not the individual products purchased. I have used the Orders / Discounts /Coupons set up as advised and I attach a screen shot of one of the coupons.  How do I get the coupon to reflect the total amount in the cart?  Many thanks,  Mike")*

Hi Nicolas,

In the Product tax category we have three options None, ITBMS, or Panama Default Tax Category (shown in screen shot). If I choose either ITBMS, or Panama Default Tax Category I get the tax worked out on the pre-discount amount.

All the products have a tax category of Panama Default Tax Category - so I think that using Panama Default Tax Category in the coupon is correct.

However the problem lays with the Apply discounts in the Configuration.

1. If I set Apply discounts to be before taxes (before taxes screen shot) the overall total is correct but the discount is wrong

2. If I set Apply discounts to be after taxes (after taxes screen shot the overall total is incorrect but the discount is correct

I would be more than happy for one of your team to log into my admin account and check why this mystery occurs in the set up

Regards,

Mike

- [ ![h1014d04.png](/forum/attachment/18241) ](/forum/attachment/18241 "h1014d04.png") [ ](/forum/attachment/18241?download=1 "h1014d04.png")
- [ ![h4a63501.png](/forum/attachment/18242) ](/forum/attachment/18242 "h4a63501.png") [ ](/forum/attachment/18242?download=1 "h4a63501.png")

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

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

Less More

- Posts: 122
- Thank you received: 0
-
-

12 years 4 months ago [\#163205](#163205) by [optimized](/forum/user/31311-optimized "View optimized's Profile")  Replied by *[optimized](/forum/user/31311-optimized "View optimized's Profile")* on topic *[Discount being applied to individual products](/forum/27-checkout/868264-discount-being-applied-to-individual-products?start=20#163205 "-- url of the page with the problem -- : starsupplyalliance.com -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.2 -- PHP version -- : 5.4 -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I need the discount to be applied to the total purchase amount not the individual products purchased. I have used the Orders / Discounts /Coupons set up as advised and I attach a screen shot of one of the coupons.  How do I get the coupon to reflect the total amount in the cart?  Many thanks,  Mike")*

Hello Nicolas,

This ticket has now been open 6 weeks and is causing me major embarrassment.

I have explained that the calculations are wrong and cannot for the life of me find a configuration where the discount and the taxed amount is correct.

All I am asking is that one of your team log onto my admin and verify if it is a set up or coding error so taht we can put this issue to bed.

Thanks,

Mike

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg2ODI2NC1kaXNjb3VudC1iZWluZy1hcHBsaWVkLXRvLWluZGl2aWR1YWwtcHJvZHVjdHM/c3RhcnQ9MjAmdG1wbD1tYXJrZG93bg==) 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")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

12 years 4 months ago [\#163980](#163980) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Discount being applied to individual products](/forum/27-checkout/868264-discount-being-applied-to-individual-products?start=20#163980 "-- url of the page with the problem -- : starsupplyalliance.com -- HikaShop version -- : 2.3.1 -- Joomla version -- : 3.2 -- PHP version -- : 5.4 -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  I need the discount to be applied to the total purchase amount not the individual products purchased. I have used the Orders / Discounts /Coupons set up as advised and I attach a screen shot of one of the coupons.  How do I get the coupon to reflect the total amount in the cart?  Many thanks,  Mike")*

[ Continue on : [ www.hikashop.com/forum/checkout/869644-i...ect-calculation.html](http://www.hikashop.com/forum/checkout/869644-incorrect-calculation.html) ]

---

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

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

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