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

#   Wrong behaviour of Hikashop coupons

##

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

5 years 5 months ago [\#333358](#333358) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  *[Wrong behaviour of Hikashop coupons](/forum/3-bug-report/902748-wrong-behaviour-of-hikashop-coupons#333358 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.4.16  Hi,  During the development of our website, we have included a &quot;coupon&quot;, and we have discovered this strange behaviour:  The information in the JSON is related to the property &quot;$cart-&gt;full&#95;total&quot; on the checkout page.  The final value &quot;price&#95;value&#95;with&#95;tax&quot;, &quot;price&#95;value&#95;without&#95;discount&quot; and &quot;price&#95;value&#95;without&#95;discunt&#95;with&#95;tax&quot; and &quot;taxes&#95;without&#95;discount&quot; seems to be correct, but all other calculated values are wrong.  The are using a raw Hikashop at the last version without any custom code (no hacks and no custom plugins).  Can you check it?  Thanks in advance.  -- Victor")* was created by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")*

-- HikaShop version -- : 4.4.3
-- Joomla version -- : 3.9.23
-- PHP version -- : 7.4.16

Hi,

During the development of our website, we have included a "coupon", and we have discovered this strange behaviour:

[ ![strange&#95;behaviour&#95;coupon.png](/forum/attachment/52923) ](/forum/attachment/52923 "...our&#95;coupon.png")

The information in the JSON is related to the property "$cart-&gt;full_total" on the checkout page.

The final value "price_value_with_tax", "price_value_without_discount" and "price_value_without_discunt_with_tax" and "taxes_without_discount" seems to be correct, but all other calculated values are wrong.

The are using a raw Hikashop at the last version without any custom code (no hacks and no custom plugins).

Can you check it?

Thanks in advance.

--
Victor

- [ ![strange&#95;behaviour&#95;coupon.png](/forum/attachment/52923) ](/forum/attachment/52923 "...our&#95;coupon.png") [ ](/forum/attachment/52923?download=1 "...our&#95;coupon.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC85MDI3NDgtd3JvbmctYmVoYXZpb3VyLW9mLWhpa2FzaG9wLWNvdXBvbnM/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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86564
- Thank you received: 14311
-
-

5 years 5 months ago [\#333359](#333359) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Wrong behaviour of Hikashop coupons](/forum/3-bug-report/902748-wrong-behaviour-of-hikashop-coupons#333359 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.4.16  Hi,  During the development of our website, we have included a &quot;coupon&quot;, and we have discovered this strange behaviour:  The information in the JSON is related to the property &quot;$cart-&gt;full&#95;total&quot; on the checkout page.  The final value &quot;price&#95;value&#95;with&#95;tax&quot;, &quot;price&#95;value&#95;without&#95;discount&quot; and &quot;price&#95;value&#95;without&#95;discunt&#95;with&#95;tax&quot; and &quot;taxes&#95;without&#95;discount&quot; seems to be correct, but all other calculated values are wrong.  The are using a raw Hikashop at the last version without any custom code (no hacks and no custom plugins).  Can you check it?  Thanks in advance.  -- Victor")*

Hi,

Please note that there is a "apply coupon" setting under the taxes area of the HikaShop configuration where you can select "before taxes" or "after taxes".
So you might need to change that setting.
Also, coupons have a setting "Coupon handling of discounted products" that you can configure to handle discounted products differently. And they also have a setting "automatic taxes" which can change the behavior of how everything is calculated.
As you can understand, there are many combinations of settings possible to get many different results in order to cope with the different laws, and ways of using coupons, taxes and discounts.

In order to check in details the issue, we would first need that you provide more precise information on the situation:
- a screenshot of the settings of the coupon
- a screenshot of all the settings under the "taxes" area of the Hikashop configuration
- a screenshot of the settings of each product in the cart
- a screenshot of the tax rules in the System&gt;Taxes menu
- a screenshoft of the resulting cart view on the checkout
- that you say which value is wrong to you in that last screenshot and what you expect instead
That way, we'll be able to reproduce the exact same situation on our end and check if it's a setting issue, or a bug, and if it's a bug, we'll be able to debug the exact same situation and modify the code to get the expected result.

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

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

5 years 5 months ago [\#333375](#333375) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  Replied by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")* on topic *[Wrong behaviour of Hikashop coupons](/forum/3-bug-report/902748-wrong-behaviour-of-hikashop-coupons#333375 "-- HikaShop version -- : 4.4.3 -- Joomla version -- : 3.9.23 -- PHP version -- : 7.4.16  Hi,  During the development of our website, we have included a &quot;coupon&quot;, and we have discovered this strange behaviour:  The information in the JSON is related to the property &quot;$cart-&gt;full&#95;total&quot; on the checkout page.  The final value &quot;price&#95;value&#95;with&#95;tax&quot;, &quot;price&#95;value&#95;without&#95;discount&quot; and &quot;price&#95;value&#95;without&#95;discunt&#95;with&#95;tax&quot; and &quot;taxes&#95;without&#95;discount&quot; seems to be correct, but all other calculated values are wrong.  The are using a raw Hikashop at the last version without any custom code (no hacks and no custom plugins).  Can you check it?  Thanks in advance.  -- Victor")*

Hi Nicolas,

thanks for your extensive and clear explanation of the whole set of possible scenarios and potential missinterpretation of the situation.

We will look forward for a detailed extra testing and report tomorrow morning.

Best regards,

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

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