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

#   Total Calculation Incorrect When Using Coupons

##

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

Less More

- Posts: 3
- Thank you received: 0
-
-

11 years 4 months ago [\#205924](#205924) by [dexity812](/forum/user/36026-dexity812 "View dexity812's Profile")  *[Total Calculation Incorrect When Using Coupons](/forum/46-discount-coupon/877732-total-calculation-incorrect-when-using-coupons#205924 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4.41 -- Browser(s) name and version -- : Chrome Version 43.0.2357.124 (64-bit)  Hi there,  I am testing the Hikashop shopping cart before making our website live, and I noticed that the total calculation seems to be incorrect when we use a Hikashop coupon. Please see the attached screenshot for examples of receipts.  In one example, it seems the total should be $149.73 (when manually adding the subtotal, coupon, GST, and PST), but the total displays as $150.93 ($1.20 difference).  In another example, it seems the total should be $77.51 (when manually adding the subtotal, coupon, GST, and PST), but the total displays as $78.71 ($1.20 difference).  In the third example, it seems the total should be $121.84 (when manually adding the subtotal, coupon, GST, and PST), but the total displays as $122.89 ($1.05 difference).  I've also attached screenshots of my relevant configuration pages.  I can't figure out why the calculation is incorrect.  Please let me know how I can fix this and/or if you need more information from me.  Thank you!")* was created by *[dexity812](/forum/user/36026-dexity812 "View dexity812's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.3.3
-- PHP version -- : 5.4.41
-- Browser(s) name and version -- : Chrome Version 43.0.2357.124 (64-bit)

Hi there,

I am testing the Hikashop shopping cart before making our website live, and I noticed that the total calculation seems to be incorrect when we use a Hikashop coupon. Please see the attached screenshot for examples of receipts.

In one example, it seems the total should be $149.73 (when manually adding the subtotal, coupon, GST, and PST), but the total displays as $150.93 ($1.20 difference).

In another example, it seems the total should be $77.51 (when manually adding the subtotal, coupon, GST, and PST), but the total displays as $78.71 ($1.20 difference).

In the third example, it seems the total should be $121.84 (when manually adding the subtotal, coupon, GST, and PST), but the total displays as $122.89 ($1.05 difference).

I've also attached screenshots of my relevant configuration pages.

I can't figure out why the calculation is incorrect.

Please let me know how I can fix this and/or if you need more information from me.

Thank you!

- [ ![Screen&#95;Shot&#95;2015-06-23&#95;at&#95;1&#95;25&#95;06&#95;PM.png](/forum/attachment/25109) ](/forum/attachment/25109 "...1&#95;25&#95;06&#95;PM.png") [ ](/forum/attachment/25109?download=1 "...1&#95;25&#95;06&#95;PM.png")
- [ ![Screen&#95;Shot&#95;2015-06-23&#95;at&#95;1&#95;27&#95;42&#95;PM.png](/forum/attachment/25110) ](/forum/attachment/25110 "...1&#95;27&#95;42&#95;PM.png") [ ](/forum/attachment/25110?download=1 "...1&#95;27&#95;42&#95;PM.png")
- [ ![Screen&#95;Shot&#95;2015-06-23&#95;at&#95;1&#95;29&#95;30&#95;PM.png](/forum/attachment/25111) ](/forum/attachment/25111 "...1&#95;29&#95;30&#95;PM.png") [ ](/forum/attachment/25111?download=1 "...1&#95;29&#95;30&#95;PM.png")
- [ ![Screen&#95;Shot&#95;2015-06-23&#95;at&#95;1&#95;30&#95;52&#95;PM.png](/forum/attachment/25112) ](/forum/attachment/25112 "...1&#95;30&#95;52&#95;PM.png") [ ](/forum/attachment/25112?download=1 "...1&#95;30&#95;52&#95;PM.png")
- [ ![Screen&#95;Shot&#95;2015-06-23&#95;at&#95;1&#95;31&#95;42&#95;PM.png](/forum/attachment/25113) ](/forum/attachment/25113 "...1&#95;31&#95;42&#95;PM.png") [ ](/forum/attachment/25113?download=1 "...1&#95;31&#95;42&#95;PM.png")
- [ ![Screen&#95;Shot&#95;2015-06-23&#95;at&#95;1&#95;31&#95;50&#95;PM.png](/forum/attachment/25114) ](/forum/attachment/25114 "...1&#95;31&#95;50&#95;PM.png") [ ](/forum/attachment/25114?download=1 "...1&#95;31&#95;50&#95;PM.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84Nzc3MzItdG90YWwtY2FsY3VsYXRpb24taW5jb3JyZWN0LXdoZW4tdXNpbmctY291cG9ucz90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 3 months ago [\#206654](#206654) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Total Calculation Incorrect When Using Coupons](/forum/46-discount-coupon/877732-total-calculation-incorrect-when-using-coupons#206654 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : 3.3.3 -- PHP version -- : 5.4.41 -- Browser(s) name and version -- : Chrome Version 43.0.2357.124 (64-bit)  Hi there,  I am testing the Hikashop shopping cart before making our website live, and I noticed that the total calculation seems to be incorrect when we use a Hikashop coupon. Please see the attached screenshot for examples of receipts.  In one example, it seems the total should be $149.73 (when manually adding the subtotal, coupon, GST, and PST), but the total displays as $150.93 ($1.20 difference).  In another example, it seems the total should be $77.51 (when manually adding the subtotal, coupon, GST, and PST), but the total displays as $78.71 ($1.20 difference).  In the third example, it seems the total should be $121.84 (when manually adding the subtotal, coupon, GST, and PST), but the total displays as $122.89 ($1.05 difference).  I've also attached screenshots of my relevant configuration pages.  I can't figure out why the calculation is incorrect.  Please let me know how I can fix this and/or if you need more information from me.  Thank you!")*

Hi,

You have two ways to configure the way taxes should be applied with coupons:
- The "apply discount" setting of the HikaShop configuration
- The "tax category" setting of the coupon itself
This is necessary as different countries have different laws on how this should be handled.
By modifying these, you can modify the behavior of the calculations and thus get the result that you expect.
Right now, without the tax category selected in the coupon, it's normal that the calculations are not like you want as taxes are not taken into account for the calculations of the coupon.

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

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

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

[](#top)
