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

#   Discount and coupon conflicting together?

##

- **[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")**
- [![oloccina's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23273.jpg)](/forum/user/23273-oloccina "View oloccina's Profile") Topic Author
- [ Offline](/forum/user/23273-oloccina)

Less More

- Posts: 224
- Thank you received: 8
-
-

7 years 3 weeks ago -  7 years 3 weeks ago [\#312251](#312251) by [oloccina](/forum/user/23273-oloccina "View oloccina's Profile")  *[Discount and coupon conflicting together?](/forum/46-discount-coupon/898526-discount-and-coupon-conflicting-together#312251 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12  Hello,  I have a default discount of 20% set in place for a certain user group  Now I have set a coupon code with 30% discount for a product  When I set the coupon code to &quot;override discounted products&quot; this is what I see in the cart when I apply it  29,60 € -20% Coupon code -1,48 € Total 28,12 €  Not sure what's happening, I am testing with a user which has the 20% fixed discount I was talking about  ===== When I set the coupon with &quot;standard behavior&quot; this is what I see instead  29,60 € -20% Coupon code -8,88 € Total 20,72 €  basically now the product is being discounted of 20% and then another 30% discount is being applied because of the coupon code used  =====  Instead this is what I was expecting to happen  The product normal cost is 37 € The user default discount of 20% is being overwritten whne using the coupon code  Product cost 37 € 29,60 € -20% (this is being overwritten by the coupon code setting) Coupon code -11,1 € Total 25,90 €  Any idea how to achieve the above example?  thank you")* was created by *[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")*

-- HikaShop version -- : 4.2.1
-- Joomla version -- : 3.9.12

Hello,

I have a default discount of 20% set in place for a certain user group

Now I have set a coupon code with 30% discount for a product

When I set the coupon code to "override discounted products" this is what I see in the cart when I apply it

29,60 € -20%
Coupon code -1,48 €
Total 28,12 €

Not sure what's happening,
I am testing with a user which has the 20% fixed discount I was talking about

=====
When I set the coupon with "standard behavior" this is what I see instead

29,60 € -20%
Coupon code -8,88 €
Total 20,72 €

basically now the product is being discounted of 20% and then another 30% discount is being applied because of the coupon code used

=====

Instead this is what I was expecting to happen

The product normal cost is 37 €
The user default discount of 20% is being overwritten whne using the coupon code

Product cost 37 €
29,60 € -20% (this is being overwritten by the coupon code setting)
Coupon code -11,1 €
Total 25,90 €

Any idea how to achieve the above example?

thank you

Last edit: 7 years 3 weeks ago by [oloccina](/forum/user/23273-oloccina "View oloccina's Profile").

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

7 years 3 weeks ago [\#312257](#312257) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Discount and coupon conflicting together?](/forum/46-discount-coupon/898526-discount-and-coupon-conflicting-together#312257 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12  Hello,  I have a default discount of 20% set in place for a certain user group  Now I have set a coupon code with 30% discount for a product  When I set the coupon code to &quot;override discounted products&quot; this is what I see in the cart when I apply it  29,60 € -20% Coupon code -1,48 € Total 28,12 €  Not sure what's happening, I am testing with a user which has the 20% fixed discount I was talking about  ===== When I set the coupon with &quot;standard behavior&quot; this is what I see instead  29,60 € -20% Coupon code -8,88 € Total 20,72 €  basically now the product is being discounted of 20% and then another 30% discount is being applied because of the coupon code used  =====  Instead this is what I was expecting to happen  The product normal cost is 37 € The user default discount of 20% is being overwritten whne using the coupon code  Product cost 37 € 29,60 € -20% (this is being overwritten by the coupon code setting) Coupon code -11,1 € Total 25,90 €  Any idea how to achieve the above example?  thank you")*

Hi,

When you set the behavior to "override discounted products", the coupon value will be what's left of the value of the coupon after taking into account the discount.
So your discount value is: 37 - 29.6 = 7.4€
The normal behavior coupon value is: 8.88 €
So the "override discounted products" value of the coupon will be: 8.88 - 7.4 = 1.48 €
The "ignore discounted products" won't help either since that will give you a value of 0 as the product already has a discount.
I'm afraid that the rule you want to enforce cannot be setup with the options available. You would have to develop a hikashop plugin implementing the coupon/discount API in order to change the behavior of the system to match your needs.

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

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

- **[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")**
- [![oloccina's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23273.jpg)](/forum/user/23273-oloccina "View oloccina's Profile") Topic Author
- [ Offline](/forum/user/23273-oloccina)

Less More

- Posts: 224
- Thank you received: 8
-
-

7 years 3 weeks ago [\#312311](#312311) by [oloccina](/forum/user/23273-oloccina "View oloccina's Profile")  Replied by *[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")* on topic *[Discount and coupon conflicting together?](/forum/46-discount-coupon/898526-discount-and-coupon-conflicting-together#312311 "-- HikaShop version -- : 4.2.1 -- Joomla version -- : 3.9.12  Hello,  I have a default discount of 20% set in place for a certain user group  Now I have set a coupon code with 30% discount for a product  When I set the coupon code to &quot;override discounted products&quot; this is what I see in the cart when I apply it  29,60 € -20% Coupon code -1,48 € Total 28,12 €  Not sure what's happening, I am testing with a user which has the 20% fixed discount I was talking about  ===== When I set the coupon with &quot;standard behavior&quot; this is what I see instead  29,60 € -20% Coupon code -8,88 € Total 20,72 €  basically now the product is being discounted of 20% and then another 30% discount is being applied because of the coupon code used  =====  Instead this is what I was expecting to happen  The product normal cost is 37 € The user default discount of 20% is being overwritten whne using the coupon code  Product cost 37 € 29,60 € -20% (this is being overwritten by the coupon code setting) Coupon code -11,1 € Total 25,90 €  Any idea how to achieve the above example?  thank you")*

Thank you, I understand

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

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