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

#   Flat coupon amount not displaying correctly

##

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

Less More

- Posts: 44
- Thank you received: 0
-
-

6 years 4 months ago -  6 years 4 months ago [\#321301](#321301) by [Harrier](/forum/user/59673-harrier "View Harrier's Profile")  *[Flat coupon amount not displaying correctly](/forum/46-discount-coupon/900280-flat-coupon-amount-not-displaying-correctly#321301 "Hi,  We have set the coupon amount as flat INR 1,000 but after applying it is showing Rs 847. How and why?.  Please find attached wrong coupon amount seen in cart after applying coupon and coupon settings.")* was created by *[Harrier](/forum/user/59673-harrier "View Harrier's Profile")*

Hi,

We have set the coupon amount as flat INR 1,000 but after applying it is showing Rs 847. How and why?.

Please find attached wrong coupon amount seen in cart after applying coupon and coupon settings.

[ ![flatcoupanwrngcal.jpg](/forum/attachment/49885) ](/forum/attachment/49885 "...panwrngcal.jpg")

[ ![couponsettings.jpg](/forum/attachment/49886) ](/forum/attachment/49886 "...onsettings.jpg")

- [ ![flatcoupanwrngcal.jpg](/forum/attachment/49885) ](/forum/attachment/49885 "...panwrngcal.jpg") [ ](/forum/attachment/49885?download=1 "...panwrngcal.jpg")
- [ ![couponsettings.jpg](/forum/attachment/49886) ](/forum/attachment/49886 "...onsettings.jpg") [ ](/forum/attachment/49886?download=1 "...onsettings.jpg")

Last edit: 6 years 4 months ago by [Harrier](/forum/user/59673-harrier "View Harrier's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2Rpc2NvdW50LWNvdXBvbi85MDAyODAtZmxhdC1jb3Vwb24tYW1vdW50LW5vdC1kaXNwbGF5aW5nLWNvcnJlY3RseT90bXBsPW1hcmtkb3du) 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: 86541
- Thank you received: 14304
-
-

6 years 4 months ago [\#321306](#321306) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Flat coupon amount not displaying correctly](/forum/46-discount-coupon/900280-flat-coupon-amount-not-displaying-correctly#321306 "Hi,  We have set the coupon amount as flat INR 1,000 but after applying it is showing Rs 847. How and why?.  Please find attached wrong coupon amount seen in cart after applying coupon and coupon settings.")*

Hi,

I suppose that it's because the value you see there i the coupon without the taxes since the amount of the taxes you see on the line below is also affected by the coupon and it seems that you've configured the cart to display the prices without tax.
If we were to display 1000 there, then if you would add the subtotal - your coupon + the taxes, then the value you be different than the total.

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

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

Less More

- Posts: 44
- Thank you received: 0
-
-

6 years 4 months ago [\#321355](#321355) by [Harrier](/forum/user/59673-harrier "View Harrier's Profile")  Replied by *[Harrier](/forum/user/59673-harrier "View Harrier's Profile")* on topic *[Flat coupon amount not displaying correctly](/forum/46-discount-coupon/900280-flat-coupon-amount-not-displaying-correctly#321355 "Hi,  We have set the coupon amount as flat INR 1,000 but after applying it is showing Rs 847. How and why?.  Please find attached wrong coupon amount seen in cart after applying coupon and coupon settings.")*

Sorry. But I didn't understand what you said.

Our prices in product page are including taxes. In cart we show it excluding tax in Unit price column. Then we deduct coupon and on the net amount tax is applicable and total will be net amount(after coupon deduction) plus tax on net amount. That's it. And this logic should be displayed everywhere, emails, invoices, orders, vendor page orders, etc.

Please guide as this looks more tricky now.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2Rpc2NvdW50LWNvdXBvbi85MDAyODAtZmxhdC1jb3Vwb24tYW1vdW50LW5vdC1kaXNwbGF5aW5nLWNvcnJlY3RseT90bXBsPW1hcmtkb3du) 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: 86541
- Thank you received: 14304
-
-

6 years 4 months ago [\#321447](#321447) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Flat coupon amount not displaying correctly](/forum/46-discount-coupon/900280-flat-coupon-amount-not-displaying-correctly#321447 "Hi,  We have set the coupon amount as flat INR 1,000 but after applying it is showing Rs 847. How and why?.  Please find attached wrong coupon amount seen in cart after applying coupon and coupon settings.")*

Hi,

On your screenshot of the checkout, the subtotal is 9,497. That's the sum of the price without taxes of the products in the cart.
Then the coupon is added to it, and then the taxes is taxes for the total amount (subtotal-coupon). and then you have the final total which is: (subtotal - coupon + taxes).
So the coupon value you see there is the coupon value before the taxes are added in.
So 847 is the value removed from the sutotal without taxes so that the value removed from the total with taxes is 1000.
That's why it displays 847 there because otherwise, if the customer sums (subtotal - coupon + taxes) and the coupon value is 1000, the total he would found would be different than what is displayed.
The alternative would be to move the taxes row before the coupon row there and display the taxes without taking into account the coupon so that we could display the total coupon value and the sum of the different elements would still match.

Basically, what I'm saying is that the calculations and the display are correct there.
You can of course change the value displayed for the coupon with a bit of code modification in the view displaying that area. To do that, edit the file show_block_cart.php and change the line: Code:

echo $this-&gt;currencyClass-&gt;format(@$cart-&gt;coupon-&gt;discount_value_without_tax * -1, @$cart-&gt;coupon-&gt;discount_currency_id);

to: Code:

echo $this-&gt;currencyClass-&gt;format(@$cart-&gt;coupon-&gt;discount_value * -1, @$cart-&gt;coupon-&gt;discount_currency_id);

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

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

Less More

- Posts: 13
- Thank you received: 0
-
-

6 years 4 months ago [\#321454](#321454) by [chetan-harrier](/forum/user/59682-chetan-harrier "View chetan-harrier's Profile")  Replied by *[chetan-harrier](/forum/user/59682-chetan-harrier "View chetan-harrier's Profile")* on topic *[Flat coupon amount not displaying correctly](/forum/46-discount-coupon/900280-flat-coupon-amount-not-displaying-correctly#321454 "Hi,  We have set the coupon amount as flat INR 1,000 but after applying it is showing Rs 847. How and why?.  Please find attached wrong coupon amount seen in cart after applying coupon and coupon settings.")*

Hi,

We have added the code suggested by you after that also it is not calculating GST properly.
please find attached screenshot for more clarity.
According to requirement, we have to show rows in below order.
Now the system is calculating like this:

Subtotal ₹9,497
Coupon -₹1,000 (Maybe instead of this amount it is subtracting 847 internally that's why it is showing 1557 GST which is 18% of the calculation )
GST ₹1,557 (Correct value should be 1529 GST)
Total ₹10,207

Please check and let us know the solution on this.

Thanks in advance!

- [ ![checkout-GST.png](/forum/attachment/49910) ](/forum/attachment/49910 "checkout-GST.png") [ ](/forum/attachment/49910?download=1 "checkout-GST.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2Rpc2NvdW50LWNvdXBvbi85MDAyODAtZmxhdC1jb3Vwb24tYW1vdW50LW5vdC1kaXNwbGF5aW5nLWNvcnJlY3RseT90bXBsPW1hcmtkb3du) 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: 86541
- Thank you received: 14304
-
-

6 years 4 months ago [\#321461](#321461) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Flat coupon amount not displaying correctly](/forum/46-discount-coupon/900280-flat-coupon-amount-not-displaying-correctly#321461 "Hi,  We have set the coupon amount as flat INR 1,000 but after applying it is showing Rs 847. How and why?.  Please find attached wrong coupon amount seen in cart after applying coupon and coupon settings.")*

Hi,

I don't know how much is the GST rate you configured. So I can't do calculations on the prices I see there and thus can't say if it's correct, incorrect or if something has to be changed and what.
What rate did you configure for your GST tax rate ?

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

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

Less More

- Posts: 44
- Thank you received: 0
-
-

6 years 4 months ago [\#321476](#321476) by [Harrier](/forum/user/59673-harrier "View Harrier's Profile")  Replied by *[Harrier](/forum/user/59673-harrier "View Harrier's Profile")* on topic *[Flat coupon amount not displaying correctly](/forum/46-discount-coupon/900280-flat-coupon-amount-not-displaying-correctly#321476 "Hi,  We have set the coupon amount as flat INR 1,000 but after applying it is showing Rs 847. How and why?.  Please find attached wrong coupon amount seen in cart after applying coupon and coupon settings.")*

Our GST rate is 18% non cumulative. Look forward to hearing from you ASAP.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL2Rpc2NvdW50LWNvdXBvbi85MDAyODAtZmxhdC1jb3Vwb24tYW1vdW50LW5vdC1kaXNwbGF5aW5nLWNvcnJlY3RseT90bXBsPW1hcmtkb3du) 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: 86541
- Thank you received: 14304
-
-

6 years 4 months ago [\#321487](#321487) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Flat coupon amount not displaying correctly](/forum/46-discount-coupon/900280-flat-coupon-amount-not-displaying-correctly#321487 "Hi,  We have set the coupon amount as flat INR 1,000 but after applying it is showing Rs 847. How and why?.  Please find attached wrong coupon amount seen in cart after applying coupon and coupon settings.")*

Hi,

Thanks. So here is what I found:

> taxes on the subtotal 9497 \* 18% = 1709
> subttoal with taxes 9497 + 1709 = 11206
> total with taxes with coupon added : 11206 - 1000 = 10206
> taxes to be displayed with coupon added : 10206\*18/100 = 1837

As you get 1557 instead, I suppose there is an issue with the application of the coupon value on the taxes.
Please try changing the "Apply coupons" setting in the HikaShop configuration, that should help.

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

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