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

#   Calculation gives 21€ of tax on 90€ but rate = 21%

##

- **[Marjoline](/forum/user/32405-marjoline "View Marjoline's Profile")**
- [![Marjoline's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/time_eye.jpg)](/forum/user/32405-marjoline "View Marjoline's Profile") Topic Author
- [ Offline](/forum/user/32405-marjoline)

Less More

- Posts: 52
- Thank you received: 0
-
-

11 years 4 months ago [\#208955](#208955) by [Marjoline](/forum/user/32405-marjoline "View Marjoline's Profile")  *[Calculation gives 21€ of tax on 90€ but rate = 21%](/forum/40-taxes/878285-calculation-gives-21eur-of-tax-on-90eur-but-rate-21#208955 "-- url of the page with the problem -- :   www.valkyrie-guitars.com  -- HikaShop version -- : latest -- Joomla version -- : latest -- PHP version -- : 5.5.24 -- Browser(s) name and version -- : All browsers -- Error-message(debug-mod must be tuned on) -- : No error message, just wrong tax calculation  Hi there.  We are very pleased with Hikashop in general, our webshop is looking better and better. The Help through the forum is also always quick and good, which is excellent as that helps us to quickly continue the development.  Right now we have discovered however a problem with the tax calculations. Our is set to 21% for the default. This works well without coupons. When someone uses a coupon, the calculation is strange. It presents as a calculation of 21€ of tax on a base of 90€ where the tax percentage is 21%. This happens regardless of whether the tax for the coupon is set to &quot;None&quot; or &quot;Default tax category&quot;. See the images attached.  Perhaps somewhere we do not have the right settings, I did see that there had been other questions about this on the forum. And I followed up the advice I found there. It did not resolve the issue.  But whatever the reason, the tax calculation as presented on the front-end to the customers should never be so obviously wrong.  Can you help?  Cheers, Marjoline")* was created by *[Marjoline](/forum/user/32405-marjoline "View Marjoline's Profile")*

-- url of the page with the problem -- : [ www.valkyrie-guitars.com](http://www.valkyrie-guitars.com)
-- HikaShop version -- : latest
-- Joomla version -- : latest
-- PHP version -- : 5.5.24
-- Browser(s) name and version -- : All browsers
-- Error-message(debug-mod must be tuned on) -- : No error message, just wrong tax calculation

Hi there.

We are very pleased with Hikashop in general, our webshop is looking better and better. The Help through the forum is also always quick and good, which is excellent as that helps us to quickly continue the development.

Right now we have discovered however a problem with the tax calculations. Our is set to 21% for the default. This works well without coupons. When someone uses a coupon, the calculation is strange. It presents as a calculation of 21€ of tax on a base of 90€ where the tax percentage is 21%.
This happens regardless of whether the tax for the coupon is set to "None" or "Default tax category".
See the images attached.

Perhaps somewhere we do not have the right settings, I did see that there had been other questions about this on the forum. And I followed up the advice I found there. It did not resolve the issue.

But whatever the reason, the tax calculation as presented on the front-end to the customers should never be so obviously wrong.

Can you help?

Cheers,
Marjoline

- [ ![Tax-and-coupon-problem-01.png](/forum/attachment/25591) ](/forum/attachment/25591 "...problem-01.png") [ ](/forum/attachment/25591?download=1 "...problem-01.png")
- [ ![Tax-and-coupon-problem-01b.png](/forum/attachment/25592) ](/forum/attachment/25592 "...roblem-01b.png") [ ](/forum/attachment/25592?download=1 "...roblem-01b.png")
- [ ![Tax-and-coupon-problem-02.png](/forum/attachment/25593) ](/forum/attachment/25593 "...problem-02.png") [ ](/forum/attachment/25593?download=1 "...problem-02.png")
- [ ![Tax-and-coupon-problem-03.png](/forum/attachment/25594) ](/forum/attachment/25594 "...problem-03.png") [ ](/forum/attachment/25594?download=1 "...problem-03.png")

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

11 years 4 months ago [\#208994](#208994) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Calculation gives 21€ of tax on 90€ but rate = 21%](/forum/40-taxes/878285-calculation-gives-21eur-of-tax-on-90eur-but-rate-21#208994 "-- url of the page with the problem -- :   www.valkyrie-guitars.com  -- HikaShop version -- : latest -- Joomla version -- : latest -- PHP version -- : 5.5.24 -- Browser(s) name and version -- : All browsers -- Error-message(debug-mod must be tuned on) -- : No error message, just wrong tax calculation  Hi there.  We are very pleased with Hikashop in general, our webshop is looking better and better. The Help through the forum is also always quick and good, which is excellent as that helps us to quickly continue the development.  Right now we have discovered however a problem with the tax calculations. Our is set to 21% for the default. This works well without coupons. When someone uses a coupon, the calculation is strange. It presents as a calculation of 21€ of tax on a base of 90€ where the tax percentage is 21%. This happens regardless of whether the tax for the coupon is set to &quot;None&quot; or &quot;Default tax category&quot;. See the images attached.  Perhaps somewhere we do not have the right settings, I did see that there had been other questions about this on the forum. And I followed up the advice I found there. It did not resolve the issue.  But whatever the reason, the tax calculation as presented on the front-end to the customers should never be so obviously wrong.  Can you help?  Cheers, Marjoline")*

Hi,

You want to select the tax category of your coupon, and you also want to change the "apply discount" setting of the HikaShop configuration.

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

- **[Marjoline](/forum/user/32405-marjoline "View Marjoline's Profile")**
- [![Marjoline's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/time_eye.jpg)](/forum/user/32405-marjoline "View Marjoline's Profile") Topic Author
- [ Offline](/forum/user/32405-marjoline)

Less More

- Posts: 52
- Thank you received: 0
-
-

11 years 4 months ago [\#209015](#209015) by [Marjoline](/forum/user/32405-marjoline "View Marjoline's Profile")  Replied by *[Marjoline](/forum/user/32405-marjoline "View Marjoline's Profile")* on topic *[Calculation gives 21€ of tax on 90€ but rate = 21%](/forum/40-taxes/878285-calculation-gives-21eur-of-tax-on-90eur-but-rate-21#209015 "-- url of the page with the problem -- :   www.valkyrie-guitars.com  -- HikaShop version -- : latest -- Joomla version -- : latest -- PHP version -- : 5.5.24 -- Browser(s) name and version -- : All browsers -- Error-message(debug-mod must be tuned on) -- : No error message, just wrong tax calculation  Hi there.  We are very pleased with Hikashop in general, our webshop is looking better and better. The Help through the forum is also always quick and good, which is excellent as that helps us to quickly continue the development.  Right now we have discovered however a problem with the tax calculations. Our is set to 21% for the default. This works well without coupons. When someone uses a coupon, the calculation is strange. It presents as a calculation of 21€ of tax on a base of 90€ where the tax percentage is 21%. This happens regardless of whether the tax for the coupon is set to &quot;None&quot; or &quot;Default tax category&quot;. See the images attached.  Perhaps somewhere we do not have the right settings, I did see that there had been other questions about this on the forum. And I followed up the advice I found there. It did not resolve the issue.  But whatever the reason, the tax calculation as presented on the front-end to the customers should never be so obviously wrong.  Can you help?  Cheers, Marjoline")*

Sorry, but this is a response I have seen given before on this forum. I had already checked this out. But as mentioned above, I found that this happens regardless of whether the tax for the coupon is set to "None" or "Default tax category".

And the calculation should still not be wrong on the front end, this is inexplicable to the customer. 21€ tax on 90€ when the tax rate is 21% is silly, any customer can see that.

It is a 10% discount but regardless whether the discount is before tax or after tax, Hikashop always turns it into a 10€ discount. So 10% of 121€ = 10€ and 10% of 100€ = 10€.

So we need more help on this one.
You have access to our backend, should you wish to have a look.

Cheers,
Marjoline

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

11 years 4 months ago [\#209030](#209030) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Calculation gives 21€ of tax on 90€ but rate = 21%](/forum/40-taxes/878285-calculation-gives-21eur-of-tax-on-90eur-but-rate-21#209030 "-- url of the page with the problem -- :   www.valkyrie-guitars.com  -- HikaShop version -- : latest -- Joomla version -- : latest -- PHP version -- : 5.5.24 -- Browser(s) name and version -- : All browsers -- Error-message(debug-mod must be tuned on) -- : No error message, just wrong tax calculation  Hi there.  We are very pleased with Hikashop in general, our webshop is looking better and better. The Help through the forum is also always quick and good, which is excellent as that helps us to quickly continue the development.  Right now we have discovered however a problem with the tax calculations. Our is set to 21% for the default. This works well without coupons. When someone uses a coupon, the calculation is strange. It presents as a calculation of 21€ of tax on a base of 90€ where the tax percentage is 21%. This happens regardless of whether the tax for the coupon is set to &quot;None&quot; or &quot;Default tax category&quot;. See the images attached.  Perhaps somewhere we do not have the right settings, I did see that there had been other questions about this on the forum. And I followed up the advice I found there. It did not resolve the issue.  But whatever the reason, the tax calculation as presented on the front-end to the customers should never be so obviously wrong.  Can you help?  Cheers, Marjoline")*

Hi,

Well, you didn't mention the "apply discount" option in your first message so it's normal that I gave the same answer than before as that's what usually solves the issue.

For further investigation, I'll have to check your website settings.
We don't keep track of user accesses. Please provide the access again via our contact form along with a link to this thread so that we can do that.

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

11 years 4 months ago [\#209709](#209709) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Calculation gives 21€ of tax on 90€ but rate = 21%](/forum/40-taxes/878285-calculation-gives-21eur-of-tax-on-90eur-but-rate-21#209709 "-- url of the page with the problem -- :   www.valkyrie-guitars.com  -- HikaShop version -- : latest -- Joomla version -- : latest -- PHP version -- : 5.5.24 -- Browser(s) name and version -- : All browsers -- Error-message(debug-mod must be tuned on) -- : No error message, just wrong tax calculation  Hi there.  We are very pleased with Hikashop in general, our webshop is looking better and better. The Help through the forum is also always quick and good, which is excellent as that helps us to quickly continue the development.  Right now we have discovered however a problem with the tax calculations. Our is set to 21% for the default. This works well without coupons. When someone uses a coupon, the calculation is strange. It presents as a calculation of 21€ of tax on a base of 90€ where the tax percentage is 21%. This happens regardless of whether the tax for the coupon is set to &quot;None&quot; or &quot;Default tax category&quot;. See the images attached.  Perhaps somewhere we do not have the right settings, I did see that there had been other questions about this on the forum. And I followed up the advice I found there. It did not resolve the issue.  But whatever the reason, the tax calculation as presented on the front-end to the customers should never be so obviously wrong.  Can you help?  Cheers, Marjoline")*

Hi,

I change the coupon code to use the "default tax category".

And I made a simple test :
[ pasteboard.co/2gHA9Z6m.png](http://pasteboard.co/2gHA9Z6m.png) (with default view)
[ pasteboard.co/2gHMAsNf.png](http://pasteboard.co/2gHMAsNf.png) (with your view override)

Prices without tax :
* Product - 100 €
* Coupon (10 %) - 10 €
* Shipping - 7€

Prices with tax :
* Product : 121 €
* Coupon (10 %) - 12.1 €
* Shipping - 8.47 € (7 * 1.21)

Total : 121 - 12.1 + 8.47 = 117.37 €
Taxes : ( 100 - 10 + 7 ) * 21% = 20.37 €

Thus ; about the " over 97 € " which is displayed in your cart. As you probably noticed, that information is not displayed by the original HikaShop view ; it is something that your view override add.
And that information that you display does not include the shipping (97 € = 100 € - 10 €)
Which explained why you think that the VAT is incorrect because you do not include all elements in your processing.

More than that, if your coupon does not have tax ; the taxes will be 21 % of the original price ( 100 € ) because the coupon will remove 10 € but it will not remove taxes.

To conclude, I didn't see any problem with the HikaShop processing but your view override does not display the most appropriate value for the "over ..." because it does not include the shipping and it also include the discount provided by coupon without vat.
So, if you really want to display that information, I suggest you to not look for a value in the HikaShop variables, but to process it or to deduce it from the VAT value.

Regards,

---

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

The following user(s) said Thank You: [Marjoline](/forum/user/32405-marjoline "View Marjoline's Profile")

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

- **[Marjoline](/forum/user/32405-marjoline "View Marjoline's Profile")**
- [![Marjoline's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/time_eye.jpg)](/forum/user/32405-marjoline "View Marjoline's Profile") Topic Author
- [ Offline](/forum/user/32405-marjoline)

Less More

- Posts: 52
- Thank you received: 0
-
-

11 years 3 months ago [\#210507](#210507) by [Marjoline](/forum/user/32405-marjoline "View Marjoline's Profile")  Replied by *[Marjoline](/forum/user/32405-marjoline "View Marjoline's Profile")* on topic *[Calculation gives 21€ of tax on 90€ but rate = 21%](/forum/40-taxes/878285-calculation-gives-21eur-of-tax-on-90eur-but-rate-21#210507 "-- url of the page with the problem -- :   www.valkyrie-guitars.com  -- HikaShop version -- : latest -- Joomla version -- : latest -- PHP version -- : 5.5.24 -- Browser(s) name and version -- : All browsers -- Error-message(debug-mod must be tuned on) -- : No error message, just wrong tax calculation  Hi there.  We are very pleased with Hikashop in general, our webshop is looking better and better. The Help through the forum is also always quick and good, which is excellent as that helps us to quickly continue the development.  Right now we have discovered however a problem with the tax calculations. Our is set to 21% for the default. This works well without coupons. When someone uses a coupon, the calculation is strange. It presents as a calculation of 21€ of tax on a base of 90€ where the tax percentage is 21%. This happens regardless of whether the tax for the coupon is set to &quot;None&quot; or &quot;Default tax category&quot;. See the images attached.  Perhaps somewhere we do not have the right settings, I did see that there had been other questions about this on the forum. And I followed up the advice I found there. It did not resolve the issue.  But whatever the reason, the tax calculation as presented on the front-end to the customers should never be so obviously wrong.  Can you help?  Cheers, Marjoline")*

Hi Jerome,

That is a wonderfully complete answer, thank you so much! My partner was going to look into this, but he has had no time, which is the reason for my delay in answering here. Just now I was looking at it again with my son/webmaster, and everything seems to be working well! I cannot explain it, I previously thought I myself had tried all possible combinations of settings in products and coupons, but obviously not. My apologies.

You have as always been a tremendous help for us.

Kind regards,
Marjoline

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

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