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

#   nasty problems with taxes and coupons

##

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

Less More

- Posts: 76
- Thank you received: 3
-
-

10 years 9 months ago -  10 years 9 months ago [\#230414](#230414) by [NADEJDE](/forum/user/12495-nadejde "View NADEJDE's Profile")  *[nasty problems with taxes and coupons](/forum/27-checkout/882394-nasty-problems-with-taxes-and-coupons#230414 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.3 -- Browser(s) name and version -- : all  There is a problem with tax calculation when applying coupons. In fact they are many problems.  1. First, I noticed that the coupon value was the same, even if it was checked &quot;before taxes&quot; or &quot;after taxes&quot;. Also, the taxes were calculated wrong, being the same after the coupon was applied. Also, during checkout, the taxes were displayed wrong, not only wrong calculated, even if in the invoices they were only wrong calculated, but displayed right.  Then I noticed that you have a new version, 2.6.1 (it was 2.6.0), so I updated, maybe...  2. But that &quot;maybe&quot; ... it wasn't. Because I noticed that during the checkout, the behaviour is the same: taxes are displayed wrong when the coupon is applied.  Now, I know the coupon may be applied to any tax category. I let them to None, because I needed to be applied to all of them. I can't use 3 or 4 coupons, one for each tax category, so ... I don't know how the calculations are done in this case, but believe me, you need to see this.  For now, the coupon system is not published, because the invoices are a mess. I kept some from tests for you to see, but it may be necesary for you to make an order, and to check/uncheck the coupon, to understand. Eventually I can provide you with some creen captures, but when taxes became negative during the checkout, something is bad, and this happens. In the final invoice, they are correct (being positive), but not affected by the coupon applied to the invoice, even if this is done before taxes.  You have attached the files screen captures, 1 without coupon, 2 with coupon, and 3 being the product list. Please note that that coupon is a 10% coupon.  That specific order was not finalised, because the order it is already flawed. For now, the coupon system is unpublished , but it may be published for you to test. Waiting for your oppinion.  Paul")* was created by *[NADEJDE](/forum/user/12495-nadejde "View NADEJDE's Profile")*

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.3
-- Browser(s) name and version -- : all

There is a problem with tax calculation when applying coupons. In fact they are many problems.

1. First, I noticed that the coupon value was the same, even if it was checked "before taxes" or "after taxes". Also, the taxes were calculated wrong, being the same after the coupon was applied. Also, during checkout, the taxes were displayed wrong, not only wrong calculated, even if in the invoices they were only wrong calculated, but displayed right.

Then I noticed that you have a new version, 2.6.1 (it was 2.6.0), so I updated, maybe...

2. But that "maybe" ... it wasn't. Because I noticed that during the checkout, the behaviour is the same: taxes are displayed wrong when the coupon is applied.

Now, I know the coupon may be applied to any tax category. I let them to None, because I needed to be applied to all of them. I can't use 3 or 4 coupons, one for each tax category, so ... I don't know how the calculations are done in this case, but **believe me, you need to see this.**

For now, the coupon system is not published, because the invoices are a mess. I kept some from tests for you to see, but it may be necesary for you to make an order, and to check/uncheck the coupon, to understand. Eventually I can provide you with some creen captures, but when taxes became negative during the checkout, something is bad, and this happens. In the final invoice, they are correct (being positive), but not affected by the coupon applied to the invoice, even if this is done before taxes.

You have attached the files screen captures, 1 without coupon, 2 with coupon, and 3 being the product list. Please note that that coupon is a 10% coupon.

That specific order was not finalised, because the order it is already flawed. For now, the coupon system is unpublished , but it may be published for you to test. Waiting for your oppinion.

Paul
[ ![1.png](/forum/attachment/29587) ](/forum/attachment/29587 "1.png")

[ ![2.png](/forum/attachment/29588) ](/forum/attachment/29588 "2.png")

[ ![3.png](/forum/attachment/29589) ](/forum/attachment/29589 "3.png")

- [ ![1.png](/forum/attachment/29587) ](/forum/attachment/29587 "1.png") [ ](/forum/attachment/29587?download=1 "1.png")
- [ ![2.png](/forum/attachment/29588) ](/forum/attachment/29588 "2.png") [ ](/forum/attachment/29588?download=1 "2.png")
- [ ![3.png](/forum/attachment/29589) ](/forum/attachment/29589 "3.png") [ ](/forum/attachment/29589?download=1 "3.png")

Last edit: 10 years 9 months ago by [NADEJDE](/forum/user/12495-nadejde "View NADEJDE's Profile").

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

10 years 9 months ago [\#230533](#230533) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[nasty problems with taxes and coupons](/forum/27-checkout/882394-nasty-problems-with-taxes-and-coupons#230533 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.3 -- Browser(s) name and version -- : all  There is a problem with tax calculation when applying coupons. In fact they are many problems.  1. First, I noticed that the coupon value was the same, even if it was checked &quot;before taxes&quot; or &quot;after taxes&quot;. Also, the taxes were calculated wrong, being the same after the coupon was applied. Also, during checkout, the taxes were displayed wrong, not only wrong calculated, even if in the invoices they were only wrong calculated, but displayed right.  Then I noticed that you have a new version, 2.6.1 (it was 2.6.0), so I updated, maybe...  2. But that &quot;maybe&quot; ... it wasn't. Because I noticed that during the checkout, the behaviour is the same: taxes are displayed wrong when the coupon is applied.  Now, I know the coupon may be applied to any tax category. I let them to None, because I needed to be applied to all of them. I can't use 3 or 4 coupons, one for each tax category, so ... I don't know how the calculations are done in this case, but believe me, you need to see this.  For now, the coupon system is not published, because the invoices are a mess. I kept some from tests for you to see, but it may be necesary for you to make an order, and to check/uncheck the coupon, to understand. Eventually I can provide you with some creen captures, but when taxes became negative during the checkout, something is bad, and this happens. In the final invoice, they are correct (being positive), but not affected by the coupon applied to the invoice, even if this is done before taxes.  You have attached the files screen captures, 1 without coupon, 2 with coupon, and 3 being the product list. Please note that that coupon is a 10% coupon.  That specific order was not finalised, because the order it is already flawed. For now, the coupon system is unpublished , but it may be published for you to test. Waiting for your oppinion.  Paul")*

Hi,

The issue is that you set the "product tax category" to "none" in the coupon. This means that the coupon value shouldn't have any tax rule applied to it and thus no tax is calculated regardless of how you set the "apply discount" setting.
If you want taxes to apply to the coupon value, a tax category has to be selected in the "product tax category" setting of the coupon.
Coupons can apply to different products in the cart (not necessarily all) and thus it's not possible to know automatically what tax category should be used for how much of the coupon value. That's why there is this setting so that you can tell the system what tax category should be used for the coupon.
The system has always worked like that.

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

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

Less More

- Posts: 76
- Thank you received: 3
-
-

10 years 9 months ago [\#230538](#230538) by [NADEJDE](/forum/user/12495-nadejde "View NADEJDE's Profile")  Replied by *[NADEJDE](/forum/user/12495-nadejde "View NADEJDE's Profile")* on topic *[nasty problems with taxes and coupons](/forum/27-checkout/882394-nasty-problems-with-taxes-and-coupons#230538 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.3 -- Browser(s) name and version -- : all  There is a problem with tax calculation when applying coupons. In fact they are many problems.  1. First, I noticed that the coupon value was the same, even if it was checked &quot;before taxes&quot; or &quot;after taxes&quot;. Also, the taxes were calculated wrong, being the same after the coupon was applied. Also, during checkout, the taxes were displayed wrong, not only wrong calculated, even if in the invoices they were only wrong calculated, but displayed right.  Then I noticed that you have a new version, 2.6.1 (it was 2.6.0), so I updated, maybe...  2. But that &quot;maybe&quot; ... it wasn't. Because I noticed that during the checkout, the behaviour is the same: taxes are displayed wrong when the coupon is applied.  Now, I know the coupon may be applied to any tax category. I let them to None, because I needed to be applied to all of them. I can't use 3 or 4 coupons, one for each tax category, so ... I don't know how the calculations are done in this case, but believe me, you need to see this.  For now, the coupon system is not published, because the invoices are a mess. I kept some from tests for you to see, but it may be necesary for you to make an order, and to check/uncheck the coupon, to understand. Eventually I can provide you with some creen captures, but when taxes became negative during the checkout, something is bad, and this happens. In the final invoice, they are correct (being positive), but not affected by the coupon applied to the invoice, even if this is done before taxes.  You have attached the files screen captures, 1 without coupon, 2 with coupon, and 3 being the product list. Please note that that coupon is a 10% coupon.  That specific order was not finalised, because the order it is already flawed. For now, the coupon system is unpublished , but it may be published for you to test. Waiting for your oppinion.  Paul")*

Well, this is understandable, but yet:

If one have 3 tax categories for an order, that means that the coupon system is not working, when you have to use a coupon wich should be applied across multiple tax categories. In fact I disabled it, as it was obvious.

Normally, a coupon wich would be meant to work in a multiple tax system, should not be tied by a tax category, but it should work that way:

At least when you have a percent coupon, one can calculate the same percent from each item value and it's corresponding tax. I really don't understand why you say it is not possible, because it is simple enough for a 10% coupon to substract the needed value, from each value, and each tax, for items for wich is intended.

How I said, I can't understand how else this would be, and why is not implemented this way. Because otherwise, one need to use 3 coupons for a order (if having 3 tax categories), wich, as I know, HS does not allow.

For me, this is a bug. Sorry. I pay taxes for what I sell, so they should be calculated correctly, regardless what my clients are buying, and regardless how many tax categories I have where I sell.

Otherwise, please let me know an alternative way to use the coupon system in a situation like this.

Thank you.

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

10 years 9 months ago [\#230542](#230542) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[nasty problems with taxes and coupons](/forum/27-checkout/882394-nasty-problems-with-taxes-and-coupons#230542 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.3 -- Browser(s) name and version -- : all  There is a problem with tax calculation when applying coupons. In fact they are many problems.  1. First, I noticed that the coupon value was the same, even if it was checked &quot;before taxes&quot; or &quot;after taxes&quot;. Also, the taxes were calculated wrong, being the same after the coupon was applied. Also, during checkout, the taxes were displayed wrong, not only wrong calculated, even if in the invoices they were only wrong calculated, but displayed right.  Then I noticed that you have a new version, 2.6.1 (it was 2.6.0), so I updated, maybe...  2. But that &quot;maybe&quot; ... it wasn't. Because I noticed that during the checkout, the behaviour is the same: taxes are displayed wrong when the coupon is applied.  Now, I know the coupon may be applied to any tax category. I let them to None, because I needed to be applied to all of them. I can't use 3 or 4 coupons, one for each tax category, so ... I don't know how the calculations are done in this case, but believe me, you need to see this.  For now, the coupon system is not published, because the invoices are a mess. I kept some from tests for you to see, but it may be necesary for you to make an order, and to check/uncheck the coupon, to understand. Eventually I can provide you with some creen captures, but when taxes became negative during the checkout, something is bad, and this happens. In the final invoice, they are correct (being positive), but not affected by the coupon applied to the invoice, even if this is done before taxes.  You have attached the files screen captures, 1 without coupon, 2 with coupon, and 3 being the product list. Please note that that coupon is a 10% coupon.  That specific order was not finalised, because the order it is already flawed. For now, the coupon system is unpublished , but it may be published for you to test. Waiting for your oppinion.  Paul")*

Hi,

I understand your point of view and I agree that ideally, it would be great to support multiple tax categories for coupons. But that's not the case, at least not for now.
The thing is that it's really not easy to do and is only useful for a really small percentage or our user base since 99% of the merchants only have one tax category, and for the last percent, most of them have coupons that only apply to products from one tax category at a time.
As an alternative, you can have a look at AWOCoupons. Maybe their coupon system, which is more advanced than the default one of HikaShop, supports multiple tax categories.

The following user(s) said Thank You: [NADEJDE](/forum/user/12495-nadejde "View NADEJDE's Profile")

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

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

Less More

- Posts: 76
- Thank you received: 3
-
-

10 years 9 months ago -  10 years 9 months ago [\#230586](#230586) by [NADEJDE](/forum/user/12495-nadejde "View NADEJDE's Profile")  Replied by *[NADEJDE](/forum/user/12495-nadejde "View NADEJDE's Profile")* on topic *[nasty problems with taxes and coupons](/forum/27-checkout/882394-nasty-problems-with-taxes-and-coupons#230586 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.3 -- Browser(s) name and version -- : all  There is a problem with tax calculation when applying coupons. In fact they are many problems.  1. First, I noticed that the coupon value was the same, even if it was checked &quot;before taxes&quot; or &quot;after taxes&quot;. Also, the taxes were calculated wrong, being the same after the coupon was applied. Also, during checkout, the taxes were displayed wrong, not only wrong calculated, even if in the invoices they were only wrong calculated, but displayed right.  Then I noticed that you have a new version, 2.6.1 (it was 2.6.0), so I updated, maybe...  2. But that &quot;maybe&quot; ... it wasn't. Because I noticed that during the checkout, the behaviour is the same: taxes are displayed wrong when the coupon is applied.  Now, I know the coupon may be applied to any tax category. I let them to None, because I needed to be applied to all of them. I can't use 3 or 4 coupons, one for each tax category, so ... I don't know how the calculations are done in this case, but believe me, you need to see this.  For now, the coupon system is not published, because the invoices are a mess. I kept some from tests for you to see, but it may be necesary for you to make an order, and to check/uncheck the coupon, to understand. Eventually I can provide you with some creen captures, but when taxes became negative during the checkout, something is bad, and this happens. In the final invoice, they are correct (being positive), but not affected by the coupon applied to the invoice, even if this is done before taxes.  You have attached the files screen captures, 1 without coupon, 2 with coupon, and 3 being the product list. Please note that that coupon is a 10% coupon.  That specific order was not finalised, because the order it is already flawed. For now, the coupon system is unpublished , but it may be published for you to test. Waiting for your oppinion.  Paul")*

I think you are a little wromg here and it is not so complicated: in fact, the needed thing in this case is an entity wich should work like a discount, I mean being the same for all tax categories, and to be inputed at the checkout, like a coupon (and to have the coupon conditions like product no, etc).

In fact this is what I needed, I discount system, and I tried to use it, but when I saw that it is applied from start, I mean not checked on the checkout, I gave up.

I will check the recommended extension, maybe it will do the job. If not, well... thank you anyway.

L.E. One more thing to think about: the discount system would need an another feature too: the possibility for a discount to be assigned to a customer or another, if not aplied on the checkout. The second way would solve first one too, but...

Last edit: 10 years 9 months ago by [NADEJDE](/forum/user/12495-nadejde "View NADEJDE's Profile").

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

10 years 9 months ago [\#230628](#230628) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[nasty problems with taxes and coupons](/forum/27-checkout/882394-nasty-problems-with-taxes-and-coupons#230628 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.3 -- Browser(s) name and version -- : all  There is a problem with tax calculation when applying coupons. In fact they are many problems.  1. First, I noticed that the coupon value was the same, even if it was checked &quot;before taxes&quot; or &quot;after taxes&quot;. Also, the taxes were calculated wrong, being the same after the coupon was applied. Also, during checkout, the taxes were displayed wrong, not only wrong calculated, even if in the invoices they were only wrong calculated, but displayed right.  Then I noticed that you have a new version, 2.6.1 (it was 2.6.0), so I updated, maybe...  2. But that &quot;maybe&quot; ... it wasn't. Because I noticed that during the checkout, the behaviour is the same: taxes are displayed wrong when the coupon is applied.  Now, I know the coupon may be applied to any tax category. I let them to None, because I needed to be applied to all of them. I can't use 3 or 4 coupons, one for each tax category, so ... I don't know how the calculations are done in this case, but believe me, you need to see this.  For now, the coupon system is not published, because the invoices are a mess. I kept some from tests for you to see, but it may be necesary for you to make an order, and to check/uncheck the coupon, to understand. Eventually I can provide you with some creen captures, but when taxes became negative during the checkout, something is bad, and this happens. In the final invoice, they are correct (being positive), but not affected by the coupon applied to the invoice, even if this is done before taxes.  You have attached the files screen captures, 1 without coupon, 2 with coupon, and 3 being the product list. Please note that that coupon is a 10% coupon.  That specific order was not finalised, because the order it is already flawed. For now, the coupon system is unpublished , but it may be published for you to test. Waiting for your oppinion.  Paul")*

Having discounts applied to a customer is high on our todo list.

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

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