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

#   Coupon not working with minimum number of products

##

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

Less More

- Posts: 1
- Thank you received: 0
-
-

12 years 9 months ago [\#139611](#139611) by [ahmedhabib](/forum/user/13439-ahmedhabib "View ahmedhabib's Profile")  *[Coupon not working with minimum number of products](/forum/46-discount-coupon/864966-coupon-not-working-with-minimum-number-of-products#139611 "-- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1 -- Error-message(debug-mod must be tuned on) -- : The coupon you entered cannot be used for less than 2 products in your cart  Hi,  1: My client wants discounts like below. 10 or more products get a 10% discount, 50 or more get a 20%  ----- 2: I set a cupon and put the minimum value as 2 in &quot;Minimum number of products&quot;. But while checkout with 2 and more products it shows &quot;The coupon you entered cannot be used for less than 2 products in your cart&quot;.")* was created by *[ahmedhabib](/forum/user/13439-ahmedhabib "View ahmedhabib's Profile")*

-- HikaShop version -- : 2.2.3
-- Joomla version -- : 3.2.1
-- Error-message(debug-mod must be tuned on) -- : The coupon you entered cannot be used for less than 2 products in your cart

Hi,

1:
My client wants discounts like below.
**10 or more products get a 10% discount, 50 or more get a 20%**

---

2:
I set a cupon and put the minimum value as 2 in **"Minimum number of products"**.
But while checkout with 2 and more products it shows "The coupon you entered cannot be used for less than 2 products in your cart".

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84NjQ5NjYtY291cG9uLW5vdC13b3JraW5nLXdpdGgtbWluaW11bS1udW1iZXItb2YtcHJvZHVjdHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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
-
-
-

12 years 9 months ago [\#139626](#139626) 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 *[Coupon not working with minimum number of products](/forum/46-discount-coupon/864966-coupon-not-working-with-minimum-number-of-products#139626 "-- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1 -- Error-message(debug-mod must be tuned on) -- : The coupon you entered cannot be used for less than 2 products in your cart  Hi,  1: My client wants discounts like below. 10 or more products get a 10% discount, 50 or more get a 20%  ----- 2: I set a cupon and put the minimum value as 2 in &quot;Minimum number of products&quot;. But while checkout with 2 and more products it shows &quot;The coupon you entered cannot be used for less than 2 products in your cart&quot;.")*

Hi,
The solution will just be to create a 10% coupon with a "Minimum number of products" option set to 10, and a 20% coupon with a "Minimum number of products" option set to 50

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84NjQ5NjYtY291cG9uLW5vdC13b3JraW5nLXdpdGgtbWluaW11bS1udW1iZXItb2YtcHJvZHVjdHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")**
- [![huwhuw's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35272.jpg)](/forum/user/35272-huwhuw "View huwhuw's Profile")
- [ Offline](/forum/user/35272-huwhuw)

Less More

- Posts: 84
- Thank you received: 9
-
-

11 years 10 months ago -  11 years 10 months ago [\#182402](#182402) by [huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")  Replied by *[huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")* on topic *[Coupon not working with minimum number of products](/forum/46-discount-coupon/864966-coupon-not-working-with-minimum-number-of-products#182402 "-- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1 -- Error-message(debug-mod must be tuned on) -- : The coupon you entered cannot be used for less than 2 products in your cart  Hi,  1: My client wants discounts like below. 10 or more products get a 10% discount, 50 or more get a 20%  ----- 2: I set a cupon and put the minimum value as 2 in &quot;Minimum number of products&quot;. But while checkout with 2 and more products it shows &quot;The coupon you entered cannot be used for less than 2 products in your cart&quot;.")*

Hika 2.3.4 Essential J3.3.6
Hi I am having an issue Minimum number of products is being ignored.
I think its a bug because it only happens when I copied the Coupon codes - the discounts applied were pretty random.
When i setup the coupons again manually they worked fine .

Last edit: 11 years 10 months ago by [huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile"). Reason: version

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84NjQ5NjYtY291cG9uLW5vdC13b3JraW5nLXdpdGgtbWluaW11bS1udW1iZXItb2YtcHJvZHVjdHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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
-
-
-

11 years 10 months ago [\#182404](#182404) 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 *[Coupon not working with minimum number of products](/forum/46-discount-coupon/864966-coupon-not-working-with-minimum-number-of-products#182404 "-- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1 -- Error-message(debug-mod must be tuned on) -- : The coupon you entered cannot be used for less than 2 products in your cart  Hi,  1: My client wants discounts like below. 10 or more products get a 10% discount, 50 or more get a 20%  ----- 2: I set a cupon and put the minimum value as 2 in &quot;Minimum number of products&quot;. But while checkout with 2 and more products it shows &quot;The coupon you entered cannot be used for less than 2 products in your cart&quot;.")*

Hello,
Firstly can you show me through some screenshots :
- how did you configured your coupons and the products that are on your cart
- what do you have in your cart during your checkout process
Thanks.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84NjQ5NjYtY291cG9uLW5vdC13b3JraW5nLXdpdGgtbWluaW11bS1udW1iZXItb2YtcHJvZHVjdHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) to join the conversation.

- **[huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")**
- [![huwhuw's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar35272.jpg)](/forum/user/35272-huwhuw "View huwhuw's Profile")
- [ Offline](/forum/user/35272-huwhuw)

Less More

- Posts: 84
- Thank you received: 9
-
-

11 years 10 months ago [\#182645](#182645) by [huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")  Replied by *[huwhuw](/forum/user/35272-huwhuw "View huwhuw's Profile")* on topic *[Coupon not working with minimum number of products](/forum/46-discount-coupon/864966-coupon-not-working-with-minimum-number-of-products#182645 "-- HikaShop version -- : 2.2.3 -- Joomla version -- : 3.2.1 -- Error-message(debug-mod must be tuned on) -- : The coupon you entered cannot be used for less than 2 products in your cart  Hi,  1: My client wants discounts like below. 10 or more products get a 10% discount, 50 or more get a 20%  ----- 2: I set a cupon and put the minimum value as 2 in &quot;Minimum number of products&quot;. But while checkout with 2 and more products it shows &quot;The coupon you entered cannot be used for less than 2 products in your cart&quot;.")*

I fixed it by manually creating each Coupon.
If I made one coupon then used the copy function to make 2 more coupons then adjusted their values (based on order quantity) the copied coupons didn't work properly e.g say original coupon was for 10% discount on 10 products - copy it twice, make the second copied one 20% discount on min of 20 products - make the third copied one 30% discount on min of 30 products.
When you test in the frontend the coupons don't work as you would expect. e.g. you could select 14 products and it would randomly apply a 30% discount.
In the end i binned all the coupons an I fixed it by manually creating each Coupon. Working perfect.
Like I say you should test to see if there is a bug in the copy function for coupons.

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQ2LWRpc2NvdW50LWNvdXBvbi84NjQ5NjYtY291cG9uLW5vdC13b3JraW5nLXdpdGgtbWluaW11bS1udW1iZXItb2YtcHJvZHVjdHM/dG1wbD1tYXJrZG93bg==) or [Create an account](/register) 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.081 seconds

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