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

#   Apply coupon to variants? Possible?

##

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

Less More

- Posts: 55
- Thank you received: 2
-
-

13 years 6 months ago [\#103372](#103372) by [dlarge](/forum/user/7977-dlarge "View dlarge's Profile")  *[Apply coupon to variants? Possible?](/forum/2-general-talk-about-hikashop/81686-apply-coupon-to-variants-possible#103372 "Can you tell me if its possible to apply a coupon to Variants as I cannot seem to get it to work. On test I just get the message The coupon you entered cannot be used for the products in your cart....")* was created by *[dlarge](/forum/user/7977-dlarge "View dlarge's Profile")*

Can you tell me if its possible to apply a coupon to Variants as I cannot seem to get it to work. On test I just get the message The coupon you entered cannot be used for the products in your cart. As it is for a bookshop nearly all the products have variants "paperback" and "hardback" and the client wants to offer discounts at a flate rate for both.

Thanks

Dave

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 6 months ago [\#103404](#103404) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Apply coupon to variants? Possible?](/forum/2-general-talk-about-hikashop/81686-apply-coupon-to-variants-possible#103404 "Can you tell me if its possible to apply a coupon to Variants as I cannot seem to get it to work. On test I just get the message The coupon you entered cannot be used for the products in your cart....")*

Hi,

It is possible to select a product for a coupon/discount. You can only select "main" products but you can not select a specific variant.
By selecting the main product, the coupon/discount will work for all variants of the product.
[ www.hikashop.com/en/support/documentatio...rm.html#restrictions](http://www.hikashop.com/en/support/documentation/integrated-documentation/27-hikashop-discount-form.html#restrictions)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 55
- Thank you received: 2
-
-

13 years 6 months ago [\#103934](#103934) by [dlarge](/forum/user/7977-dlarge "View dlarge's Profile")  Replied by *[dlarge](/forum/user/7977-dlarge "View dlarge's Profile")* on topic *[Apply coupon to variants? Possible?](/forum/2-general-talk-about-hikashop/81686-apply-coupon-to-variants-possible#103934 "Can you tell me if its possible to apply a coupon to Variants as I cannot seem to get it to work. On test I just get the message The coupon you entered cannot be used for the products in your cart....")*

So just to confirm all my books that have the variants paperback and hardback I cannot apply a flat rate discount to? Is there anyway round this other to seperate them into two different main products?

Thanks

Dave

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

13 years 6 months ago [\#103975](#103975) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Apply coupon to variants? Possible?](/forum/2-general-talk-about-hikashop/81686-apply-coupon-to-variants-possible#103975 "Can you tell me if its possible to apply a coupon to Variants as I cannot seem to get it to work. On test I just get the message The coupon you entered cannot be used for the products in your cart....")*

Hi,

No.
When you create a coupon for a specific product. All of his variants are targeted too.

What is your HikaShop version ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 55
- Thank you received: 2
-
-

13 years 6 months ago -  13 years 6 months ago [\#103990](#103990) by [dlarge](/forum/user/7977-dlarge "View dlarge's Profile")  Replied by *[dlarge](/forum/user/7977-dlarge "View dlarge's Profile")* on topic *[Apply coupon to variants? Possible?](/forum/2-general-talk-about-hikashop/81686-apply-coupon-to-variants-possible#103990 "Can you tell me if its possible to apply a coupon to Variants as I cannot seem to get it to work. On test I just get the message The coupon you entered cannot be used for the products in your cart....")*

At the moment it is only a couple of products so I can seperat them out but if they want to do more of a global discount then I can't imagine having to set up all the products again

I have the business version

Thanks for your replies

Dave

Last edit: 13 years 6 months ago by [dlarge](/forum/user/7977-dlarge "View dlarge's Profile"). Reason: predictiv text got my name wrong!

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

13 years 6 months ago [\#104063](#104063) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Apply coupon to variants? Possible?](/forum/2-general-talk-about-hikashop/81686-apply-coupon-to-variants-possible#104063 "Can you tell me if its possible to apply a coupon to Variants as I cannot seem to get it to work. On test I just get the message The coupon you entered cannot be used for the products in your cart....")*

Then the best would be to not set the restriction in the coupon and instead create a small HikaShop plugin and implement in it the onAfterCouponCheck
[ www.hikashop.com/en/support/documentatio...l#onAfterCouponCheck](http://www.hikashop.com/en/support/documentation/62-hikashop-developer-documentation.html#onAfterCouponCheck) to add a check no the product_type of the products in the cart via custom code. That will require the help of a developer if you don't know programming but it should be way cheaper than setting up again all the products...

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

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

Less More

- Posts: 35
- Thank you received: 1
-
-

13 years 4 months ago [\#110392](#110392) by [beanman1](/forum/user/22694-beanman1 "View beanman1's Profile")  Replied by *[beanman1](/forum/user/22694-beanman1 "View beanman1's Profile")* on topic *[Apply coupon to variants? Possible?](/forum/2-general-talk-about-hikashop/81686-apply-coupon-to-variants-possible#110392 "Can you tell me if its possible to apply a coupon to Variants as I cannot seem to get it to work. On test I just get the message The coupon you entered cannot be used for the products in your cart....")*

I know this topic is a little old, but I'm trying to do the same thing as the original poster except I'm selling CDs &amp; DVDs.

I'm running HikaShop Essentials btw.

I'm wanting to generate coupon codes for digital items which are currently listed as variants of their physical parent product. I don't want to leave it open for the customer to buy a cheaper version of the product and then download the more expensive variant. At the same time, I don't want to clutter my store with 20 individual entries for 1 product line.

Any ideas on how to get this done by someone with no programming experience?

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

13 years 4 months ago [\#110394](#110394) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Apply coupon to variants? Possible?](/forum/2-general-talk-about-hikashop/81686-apply-coupon-to-variants-possible#110394 "Can you tell me if its possible to apply a coupon to Variants as I cannot seem to get it to work. On test I just get the message The coupon you entered cannot be used for the products in your cart....")*

This has nothing to do with this thread.
This thread is about restricting coupons/discounts to variants of products.

What you want to do is generate coupons after the purchase of variants.
What you want to do can be done with the coupon generator system of HikaSerial:
[ www.hikashop.com/en/hikashop/139-hikaser...-coupongen-form.html](http://www.hikashop.com/en/hikashop/139-hikaserial-plugins-coupongen-form.html)
You don't need programming skills for that.

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

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