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

#   I need the coupon to be applied to some items only

##

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

Less More

- Posts: 139
- Thank you received: 1
-
-

13 years 1 month ago -  13 years 1 month ago [\#129665](#129665) by [abasel](/forum/user/6302-abasel "View abasel's Profile")  *[I need the coupon to be applied to some items only](/forum/27-checkout/863146-i-need-the-coupon-to-be-applied-to-some-items-only#129665 "I have created a non-publish category called discounts.  I then have created a coupon that applies a 10$ discount if 2 or more items from this category have been selected. The coupon has the following set to yes &quot;Auto load in cart if possible&quot; and &quot;Coupon percentage applies to product only&quot;.  However when I get to checkout, the discount has been applied to everything.")* was created by *[abasel](/forum/user/6302-abasel "View abasel's Profile")*

I have created a non-publish category called discounts.

I then have created a coupon that applies a 10$ discount if 2 or more items from this category have been selected. The coupon has the following set to **yes** "**Auto load in cart if possible**" and "**Coupon percentage applies to product only**".

However when I get to checkout, the discount has been applied to everything.

Last edit: 13 years 1 month ago by [abasel](/forum/user/6302-abasel "View abasel's Profile").

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

13 years 1 month ago [\#129678](#129678) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[I need the coupon to be applied to some items only](/forum/27-checkout/863146-i-need-the-coupon-to-be-applied-to-some-items-only#129678 "I have created a non-publish category called discounts.  I then have created a coupon that applies a 10$ discount if 2 or more items from this category have been selected. The coupon has the following set to yes &quot;Auto load in cart if possible&quot; and &quot;Coupon percentage applies to product only&quot;.  However when I get to checkout, the discount has been applied to everything.")*

Can you please do a screenshot of all the options of your coupon ?

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

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

Less More

- Posts: 139
- Thank you received: 1
-
-

13 years 1 month ago -  13 years 1 month ago [\#129801](#129801) by [abasel](/forum/user/6302-abasel "View abasel's Profile")  Replied by *[abasel](/forum/user/6302-abasel "View abasel's Profile")* on topic *[I need the coupon to be applied to some items only](/forum/27-checkout/863146-i-need-the-coupon-to-be-applied-to-some-items-only#129801 "I have created a non-publish category called discounts.  I then have created a coupon that applies a 10$ discount if 2 or more items from this category have been selected. The coupon has the following set to yes &quot;Auto load in cart if possible&quot; and &quot;Coupon percentage applies to product only&quot;.  However when I get to checkout, the discount has been applied to everything.")*

If the buyer has 2 products in the "1 Day" category" then they get a 10% discount on these products.

[ ![hbd7e57f.png](/forum/attachment/13226) ](/forum/attachment/13226 "hbd7e57f.png")

But from the above you will see that the wrong coupons are being applied.

[ ![hfc44365.png](/forum/attachment/13225) ](/forum/attachment/13225 "hfc44365.png")

[ ![h9093365.png](/forum/attachment/13227) ](/forum/attachment/13227 "h9093365.png")

Also when I add other products not in the 1 Day category, these are also discounted.

- [ ![hed0ebd2.png](/forum/attachment/13220) ](/forum/attachment/13220 "hed0ebd2.png") [ ](/forum/attachment/13220?download=1 "hed0ebd2.png")
- [ ![hfc44365.png](/forum/attachment/13225) ](/forum/attachment/13225 "hfc44365.png") [ ](/forum/attachment/13225?download=1 "hfc44365.png")
- [ ![hbd7e57f.png](/forum/attachment/13226) ](/forum/attachment/13226 "hbd7e57f.png") [ ](/forum/attachment/13226?download=1 "hbd7e57f.png")
- [ ![h9093365.png](/forum/attachment/13227) ](/forum/attachment/13227 "h9093365.png") [ ](/forum/attachment/13227?download=1 "h9093365.png")

Last edit: 13 years 1 month ago by [abasel](/forum/user/6302-abasel "View abasel's Profile").

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 1 month ago -  13 years 1 month ago [\#129820](#129820) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[I need the coupon to be applied to some items only](/forum/27-checkout/863146-i-need-the-coupon-to-be-applied-to-some-items-only#129820 "I have created a non-publish category called discounts.  I then have created a coupon that applies a 10$ discount if 2 or more items from this category have been selected. The coupon has the following set to yes &quot;Auto load in cart if possible&quot; and &quot;Coupon percentage applies to product only&quot;.  However when I get to checkout, the discount has been applied to everything.")*

And can you try it again with your cache cleared and/or with a different browser ?

Last edit: 13 years 1 month ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

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

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

Less More

- Posts: 139
- Thank you received: 1
-
-

13 years 1 month ago [\#129921](#129921) by [abasel](/forum/user/6302-abasel "View abasel's Profile")  Replied by *[abasel](/forum/user/6302-abasel "View abasel's Profile")* on topic *[I need the coupon to be applied to some items only](/forum/27-checkout/863146-i-need-the-coupon-to-be-applied-to-some-items-only#129921 "I have created a non-publish category called discounts.  I then have created a coupon that applies a 10$ discount if 2 or more items from this category have been selected. The coupon has the following set to yes &quot;Auto load in cart if possible&quot; and &quot;Coupon percentage applies to product only&quot;.  However when I get to checkout, the discount has been applied to everything.")*

Seems to make no difference ![:unsure:](/media/kunena/emoticons/18.png ":unsure:")

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

13 years 4 weeks ago [\#129983](#129983) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[I need the coupon to be applied to some items only](/forum/27-checkout/863146-i-need-the-coupon-to-be-applied-to-some-items-only#129983 "I have created a non-publish category called discounts.  I then have created a coupon that applies a 10$ discount if 2 or more items from this category have been selected. The coupon has the following set to yes &quot;Auto load in cart if possible&quot; and &quot;Coupon percentage applies to product only&quot;.  However when I get to checkout, the discount has been applied to everything.")*

We'll need a backend access in order to check your settings. Please use our contact form with a link to this thread in order to provide that.

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

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

Less More

- Posts: 139
- Thank you received: 1
-
-

13 years 4 weeks ago [\#129989](#129989) by [abasel](/forum/user/6302-abasel "View abasel's Profile")  Replied by *[abasel](/forum/user/6302-abasel "View abasel's Profile")* on topic *[I need the coupon to be applied to some items only](/forum/27-checkout/863146-i-need-the-coupon-to-be-applied-to-some-items-only#129989 "I have created a non-publish category called discounts.  I then have created a coupon that applies a 10$ discount if 2 or more items from this category have been selected. The coupon has the following set to yes &quot;Auto load in cart if possible&quot; and &quot;Coupon percentage applies to product only&quot;.  However when I get to checkout, the discount has been applied to everything.")*

I have just done what you asked ![:-)](/media/kunena/emoticons/3.png ":-)")

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 4 weeks ago -  13 years 4 weeks ago [\#130048](#130048) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[I need the coupon to be applied to some items only](/forum/27-checkout/863146-i-need-the-coupon-to-be-applied-to-some-items-only#130048 "I have created a non-publish category called discounts.  I then have created a coupon that applies a 10$ discount if 2 or more items from this category have been selected. The coupon has the following set to yes &quot;Auto load in cart if possible&quot; and &quot;Coupon percentage applies to product only&quot;.  However when I get to checkout, the discount has been applied to everything.")*

Hi,
The problem was coming from the fact that your 2 product were both part of the 1-Day category, I tried it by putting one of your 2 products out of this category, and it worked fine ![:)](/media/kunena/emoticons/3.png ":)") :

[ ![h668c3ad.png](/forum/attachment/13271) ](/forum/attachment/13271 "h668c3ad.png")

- [ ![h668c3ad.png](/forum/attachment/13271) ](/forum/attachment/13271 "h668c3ad.png") [ ](/forum/attachment/13271?download=1 "h668c3ad.png")

Last edit: 13 years 4 weeks ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

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

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

Less More

- Posts: 139
- Thank you received: 1
-
-

13 years 4 weeks ago -  13 years 4 weeks ago [\#130109](#130109) by [abasel](/forum/user/6302-abasel "View abasel's Profile")  Replied by *[abasel](/forum/user/6302-abasel "View abasel's Profile")* on topic *[I need the coupon to be applied to some items only](/forum/27-checkout/863146-i-need-the-coupon-to-be-applied-to-some-items-only#130109 "I have created a non-publish category called discounts.  I then have created a coupon that applies a 10$ discount if 2 or more items from this category have been selected. The coupon has the following set to yes &quot;Auto load in cart if possible&quot; and &quot;Coupon percentage applies to product only&quot;.  However when I get to checkout, the discount has been applied to everything.")*

Hi that for that but the problem still exits.

Here is a list of the products in the discount:

[ ![hbf7a301.png](/forum/attachment/13284) ](/forum/attachment/13284 "hbf7a301.png")

Here is the coupon that should apply when two of the above products are purchased

[ ![h0f82026.png](/forum/attachment/13285) ](/forum/attachment/13285 "h0f82026.png")

Here is what the checkout looks like

[ ![hc80fb1f.png](/forum/attachment/13286) ](/forum/attachment/13286 "hc80fb1f.png")

The result should be $180 (no discounted product) + $200 - $20 (10% discount on the discounted products because two of them were ordered)

This however is the coupon being applied and it's been applied to all products

[ ![hf96f0a2.png](/forum/attachment/13287) ](/forum/attachment/13287 "hf96f0a2.png")

- [ ![hbf7a301.png](/forum/attachment/13284) ](/forum/attachment/13284 "hbf7a301.png") [ ](/forum/attachment/13284?download=1 "hbf7a301.png")
- [ ![h0f82026.png](/forum/attachment/13285) ](/forum/attachment/13285 "h0f82026.png") [ ](/forum/attachment/13285?download=1 "h0f82026.png")
- [ ![hc80fb1f.png](/forum/attachment/13286) ](/forum/attachment/13286 "hc80fb1f.png") [ ](/forum/attachment/13286?download=1 "hc80fb1f.png")
- [ ![hf96f0a2.png](/forum/attachment/13287) ](/forum/attachment/13287 "hf96f0a2.png") [ ](/forum/attachment/13287?download=1 "hf96f0a2.png")

Last edit: 13 years 4 weeks ago by [abasel](/forum/user/6302-abasel "View abasel's Profile"). Reason: Forgot an attachement

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 4 weeks ago [\#130222](#130222) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[I need the coupon to be applied to some items only](/forum/27-checkout/863146-i-need-the-coupon-to-be-applied-to-some-items-only#130222 "I have created a non-publish category called discounts.  I then have created a coupon that applies a 10$ discount if 2 or more items from this category have been selected. The coupon has the following set to yes &quot;Auto load in cart if possible&quot; and &quot;Coupon percentage applies to product only&quot;.  However when I get to checkout, the discount has been applied to everything.")*

Your problem is coming from the fact that the **Minimum number of products** is applied for ALL the product in your cart, so if you have 2 products in the discounted category, and 3 other products from another category, the coupon that will be auto loaded will be the **8xXEQg28172185f** one.

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

13 years 4 weeks ago [\#130303](#130303) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[I need the coupon to be applied to some items only](/forum/27-checkout/863146-i-need-the-coupon-to-be-applied-to-some-items-only#130303 "I have created a non-publish category called discounts.  I then have created a coupon that applies a 10$ discount if 2 or more items from this category have been selected. The coupon has the following set to yes &quot;Auto load in cart if possible&quot; and &quot;Coupon percentage applies to product only&quot;.  However when I get to checkout, the discount has been applied to everything.")*

My bad, when you use the **Category** and the **Minimum number of products** options, you should set the **Coupon percentage applies to product only** option to **YES** to apply the **Minimum number of products** option only on your category.
I didn't worked even if I have set this option to **YES** so I've made a fix that will be in the net hikashop release.

You'll just have to edit the file : "*\\administrator\\components\\com\_hikashop\\classes\\**discount.php***" and change this line : Code:

if($product-&gt;product_id !== $productid[0] &amp;&amp; empty($coupon-&gt;discount_coupon_product_only)){

By : Code:

if($product-&gt;product_id !== $productid[0]){

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

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

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

Less More

- Posts: 139
- Thank you received: 1
-
-

13 years 4 weeks ago -  13 years 4 weeks ago [\#130313](#130313) by [abasel](/forum/user/6302-abasel "View abasel's Profile")  Replied by *[abasel](/forum/user/6302-abasel "View abasel's Profile")* on topic *[I need the coupon to be applied to some items only](/forum/27-checkout/863146-i-need-the-coupon-to-be-applied-to-some-items-only#130313 "I have created a non-publish category called discounts.  I then have created a coupon that applies a 10$ discount if 2 or more items from this category have been selected. The coupon has the following set to yes &quot;Auto load in cart if possible&quot; and &quot;Coupon percentage applies to product only&quot;.  However when I get to checkout, the discount has been applied to everything.")*

Awesome that worked... sort of ![:-)](/media/kunena/emoticons/3.png ":-)")

From the screen below you will see that I have two items, one of which is a discount item. The problem I have (and I am not sure if there is a way around this is that this should be seen as three items as they have purchased three). Hika however only applies the 10% discount as it sees it as a single item.

Is there a way around this as I need it to be seen as three items?

If I added another single day item I would then need the 4 day discount applied etc. Basically an order of 3 items (even if the same item) needs to been seen as 3 products for discount purposes.

Thanks for your patience and great support in this matter.

[ ![h5002a69.jpg](/forum/attachment/13323) ](/forum/attachment/13323 "h5002a69.jpg")

- [ ![h5002a69.jpg](/forum/attachment/13323) ](/forum/attachment/13323 "h5002a69.jpg") [ ](/forum/attachment/13323?download=1 "h5002a69.jpg")

Last edit: 13 years 4 weeks ago by [abasel](/forum/user/6302-abasel "View abasel's Profile").

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

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

Less More

- Posts: 139
- Thank you received: 1
-
-

13 years 4 weeks ago [\#130341](#130341) by [abasel](/forum/user/6302-abasel "View abasel's Profile")  Replied by *[abasel](/forum/user/6302-abasel "View abasel's Profile")* on topic *[I need the coupon to be applied to some items only](/forum/27-checkout/863146-i-need-the-coupon-to-be-applied-to-some-items-only#130341 "I have created a non-publish category called discounts.  I then have created a coupon that applies a 10$ discount if 2 or more items from this category have been selected. The coupon has the following set to yes &quot;Auto load in cart if possible&quot; and &quot;Coupon percentage applies to product only&quot;.  However when I get to checkout, the discount has been applied to everything.")*

I think I have worked it out. As a single discount product always costs $100, I can use value of order instead of product quantity. There I test for the value of the order instead the number of products... this seems to do it.

Thanks for all your help... truly a GREAT product with excellent support.

The following user(s) said Thank You: [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")

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

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

Less More

- Posts: 139
- Thank you received: 1
-
-

13 years 4 weeks ago -  13 years 4 weeks ago [\#130381](#130381) by [abasel](/forum/user/6302-abasel "View abasel's Profile")  Replied by *[abasel](/forum/user/6302-abasel "View abasel's Profile")* on topic *[I need the coupon to be applied to some items only](/forum/27-checkout/863146-i-need-the-coupon-to-be-applied-to-some-items-only#130381 "I have created a non-publish category called discounts.  I then have created a coupon that applies a 10$ discount if 2 or more items from this category have been selected. The coupon has the following set to yes &quot;Auto load in cart if possible&quot; and &quot;Coupon percentage applies to product only&quot;.  However when I get to checkout, the discount has been applied to everything.")*

Alas this is still not working, see image attached.

The value of discountable products is $100, yet Hika is taking the non-discountable product into account too.. there should be not discounts (I have renamed coupons to discount in the language file) in this scenario.

The issue seems to be of a similar nature to what was happening when I was testing by product quantity.

**(Just so there is no confusion, I have renamed coupon in the checkout to discount (using the language file), so wherever you see discount in the front end it is actually a coupon)**
[ ![ha34260d.jpg](/forum/attachment/13326) ](/forum/attachment/13326 "ha34260d.jpg")

Coupon - renamed to discount in frontend
[ ![h716d2bc.jpg](/forum/attachment/13327) ](/forum/attachment/13327 "h716d2bc.jpg")

- [ ![ha34260d.jpg](/forum/attachment/13326) ](/forum/attachment/13326 "ha34260d.jpg") [ ](/forum/attachment/13326?download=1 "ha34260d.jpg")
- [ ![h716d2bc.jpg](/forum/attachment/13327) ](/forum/attachment/13327 "h716d2bc.jpg") [ ](/forum/attachment/13327?download=1 "h716d2bc.jpg")

Last edit: 13 years 4 weeks ago by [abasel](/forum/user/6302-abasel "View abasel's Profile").

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 4 weeks ago [\#130475](#130475) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[I need the coupon to be applied to some items only](/forum/27-checkout/863146-i-need-the-coupon-to-be-applied-to-some-items-only#130475 "I have created a non-publish category called discounts.  I then have created a coupon that applies a 10$ discount if 2 or more items from this category have been selected. The coupon has the following set to yes &quot;Auto load in cart if possible&quot; and &quot;Coupon percentage applies to product only&quot;.  However when I get to checkout, the discount has been applied to everything.")*

Hi,

Your configuration seems to be good.
The coupon should be applied only on the products of the category "1 Day" if the order is upper than NZD200 and it's applying to product only.

Are you sure that the half days product is not in the 1 Day category ?

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

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

Less More

- Posts: 139
- Thank you received: 1
-
-

13 years 4 weeks ago [\#130509](#130509) by [abasel](/forum/user/6302-abasel "View abasel's Profile")  Replied by *[abasel](/forum/user/6302-abasel "View abasel's Profile")* on topic *[I need the coupon to be applied to some items only](/forum/27-checkout/863146-i-need-the-coupon-to-be-applied-to-some-items-only#130509 "I have created a non-publish category called discounts.  I then have created a coupon that applies a 10$ discount if 2 or more items from this category have been selected. The coupon has the following set to yes &quot;Auto load in cart if possible&quot; and &quot;Coupon percentage applies to product only&quot;.  However when I get to checkout, the discount has been applied to everything.")*

> Are you sure that the half days product is not in the 1 Day category ?

Yes, see screenshot

[ ![hb6c8d11.jpg](/forum/attachment/13356) ](/forum/attachment/13356 "hb6c8d11.jpg")

- [ ![hb6c8d11.jpg](/forum/attachment/13356) ](/forum/attachment/13356 "hb6c8d11.jpg") [ ](/forum/attachment/13356?download=1 "hb6c8d11.jpg")

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

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

Less More

- Posts: 139
- Thank you received: 1
-
-

13 years 3 weeks ago [\#130639](#130639) by [abasel](/forum/user/6302-abasel "View abasel's Profile")  Replied by *[abasel](/forum/user/6302-abasel "View abasel's Profile")* on topic *[I need the coupon to be applied to some items only](/forum/27-checkout/863146-i-need-the-coupon-to-be-applied-to-some-items-only#130639 "I have created a non-publish category called discounts.  I then have created a coupon that applies a 10$ discount if 2 or more items from this category have been selected. The coupon has the following set to yes &quot;Auto load in cart if possible&quot; and &quot;Coupon percentage applies to product only&quot;.  However when I get to checkout, the discount has been applied to everything.")*

Hi, I am really needing to know if I am doing something wrong here or if there is a bug. I purchased HikaShop based on this feature and I really need it to work by Monday NZ time, Everything else works great but this issue is a show-stopper for me. I've tried the contact form and now have nowhere else to go for help. ![:unsure:](/media/kunena/emoticons/18.png ":unsure:")

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 3 weeks ago [\#130896](#130896) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[I need the coupon to be applied to some items only](/forum/27-checkout/863146-i-need-the-coupon-to-be-applied-to-some-items-only#130896 "I have created a non-publish category called discounts.  I then have created a coupon that applies a 10$ discount if 2 or more items from this category have been selected. The coupon has the following set to yes &quot;Auto load in cart if possible&quot; and &quot;Coupon percentage applies to product only&quot;.  However when I get to checkout, the discount has been applied to everything.")*

Hi,

I can't reach the frontend page, there is an error on load.

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

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

Less More

- Posts: 139
- Thank you received: 1
-
-

13 years 3 weeks ago -  13 years 3 weeks ago [\#130975](#130975) by [abasel](/forum/user/6302-abasel "View abasel's Profile")  Replied by *[abasel](/forum/user/6302-abasel "View abasel's Profile")* on topic *[I need the coupon to be applied to some items only](/forum/27-checkout/863146-i-need-the-coupon-to-be-applied-to-some-items-only#130975 "I have created a non-publish category called discounts.  I then have created a coupon that applies a 10$ discount if 2 or more items from this category have been selected. The coupon has the following set to yes &quot;Auto load in cart if possible&quot; and &quot;Coupon percentage applies to product only&quot;.  However when I get to checkout, the discount has been applied to everything.")*

Hi, sorry about that you have have tried at a time that I was working on it. The link is still only for registered users but you can access it via [ www.discoverylabs.co.nz/index.php/contact-us/login](http://www.discoverylabs.co.nz/index.php/contact-us/login) using the credentials that I messaged you with.

I have taken the pressure off by using a form for now but would like to get it working for the following holidays ![:-)](/media/kunena/emoticons/3.png ":-)")

Thanks for looking at it for me.

Last edit: 13 years 3 weeks ago by [abasel](/forum/user/6302-abasel "View abasel's Profile").

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

13 years 3 weeks ago [\#131018](#131018) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[I need the coupon to be applied to some items only](/forum/27-checkout/863146-i-need-the-coupon-to-be-applied-to-some-items-only#131018 "I have created a non-publish category called discounts.  I then have created a coupon that applies a 10$ discount if 2 or more items from this category have been selected. The coupon has the following set to yes &quot;Auto load in cart if possible&quot; and &quot;Coupon percentage applies to product only&quot;.  However when I get to checkout, the discount has been applied to everything.")*

Hi,

Still errors...
404 on the given link, and connexion error on the base url.

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

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