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

#   Coupon restrictions "Product quantity from" not working

##

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

Less More

- Posts: 282
- Thank you received: 42
-
-

3 years 10 months ago [\#347185](#347185) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  *[Coupon restrictions "Product quantity from" not working](/forum/46-discount-coupon/905477-coupon-restrictions-product-quantity-from-not-working#347185 "-- HikaShop version -- : 4.7.0 -- Joomla version -- : 3.10.11 -- PHP version -- : 7.4  Hi As you can see from my subject, there is a problem when I try to apply a restriction on a coupon based on the &quot;Product quantity from&quot;. This bug affect hikashop 4.6.2 and 4.7.0, same problem on php 7.4 and 8.0.  I have create a coupon that is loaded automatically in cart if the quantity of a specific product it is 3. But the coupon is applied as soon as I add the product to the cart with quantity 1 and even if the quantity is more than 3 the coupon remains active.  And a mention, when I've switched the php version to 8.0, hikashop was significantly slower, I'm not sure if it was a real thing or not, I didn't investigated too much, but adding a product to the basket was taking longer.")* was created by *[oxido](/forum/user/29793-oxido "View oxido's Profile")*

-- HikaShop version -- : 4.7.0
-- Joomla version -- : 3.10.11
-- PHP version -- : 7.4

Hi
As you can see from my subject, there is a problem when I try to apply a restriction on a coupon based on the "Product quantity from".
This bug affect hikashop 4.6.2 and 4.7.0, same problem on php 7.4 and 8.0.

I have create a coupon that is loaded automatically in cart if the quantity of a specific product it is 3.
But the coupon is applied as soon as I add the product to the cart with quantity 1 and even if the quantity is more than 3 the coupon remains active.

And a mention, when I've switched the php version to 8.0, hikashop was significantly slower, I'm not sure if it was a real thing or not, I didn't investigated too much, but adding a product to the basket was taking longer.

- [ ![coupon&#95;restrictio&#95;1&#95;product&#95;oxido.jpg](/forum/attachment/56051) ](/forum/attachment/56051 "...duct&#95;oxido.jpg") [ ](/forum/attachment/56051?download=1 "...duct&#95;oxido.jpg")
- [ ![coupon&#95;restrictio&#95;1&#95;product&#95;front&#95;oxido.jpg](/forum/attachment/56052) ](/forum/attachment/56052 "...ront&#95;oxido.jpg") [ ](/forum/attachment/56052?download=1 "...ront&#95;oxido.jpg")
- [ ![coupon&#95;restrictio&#95;3&#95;products&#95;oxido.jpg](/forum/attachment/56053) ](/forum/attachment/56053 "...ucts&#95;oxido.jpg") [ ](/forum/attachment/56053?download=1 "...ucts&#95;oxido.jpg")

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

Less More

- Posts: 86316
- Thank you received: 14276
-
-

3 years 10 months ago [\#347188](#347188) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Coupon restrictions "Product quantity from" not working](/forum/46-discount-coupon/905477-coupon-restrictions-product-quantity-from-not-working#347188 "-- HikaShop version -- : 4.7.0 -- Joomla version -- : 3.10.11 -- PHP version -- : 7.4  Hi As you can see from my subject, there is a problem when I try to apply a restriction on a coupon based on the &quot;Product quantity from&quot;. This bug affect hikashop 4.6.2 and 4.7.0, same problem on php 7.4 and 8.0.  I have create a coupon that is loaded automatically in cart if the quantity of a specific product it is 3. But the coupon is applied as soon as I add the product to the cart with quantity 1 and even if the quantity is more than 3 the coupon remains active.  And a mention, when I've switched the php version to 8.0, hikashop was significantly slower, I'm not sure if it was a real thing or not, I didn't investigated too much, but adding a product to the basket was taking longer.")*

Hi,

Please activate the "coupon percentage applies " setting of the coupon and try again.

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

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

Less More

- Posts: 282
- Thank you received: 42
-
-

3 years 10 months ago [\#347203](#347203) by [oxido](/forum/user/29793-oxido "View oxido's Profile")  Replied by *[oxido](/forum/user/29793-oxido "View oxido's Profile")* on topic *[Coupon restrictions "Product quantity from" not working](/forum/46-discount-coupon/905477-coupon-restrictions-product-quantity-from-not-working#347203 "-- HikaShop version -- : 4.7.0 -- Joomla version -- : 3.10.11 -- PHP version -- : 7.4  Hi As you can see from my subject, there is a problem when I try to apply a restriction on a coupon based on the &quot;Product quantity from&quot;. This bug affect hikashop 4.6.2 and 4.7.0, same problem on php 7.4 and 8.0.  I have create a coupon that is loaded automatically in cart if the quantity of a specific product it is 3. But the coupon is applied as soon as I add the product to the cart with quantity 1 and even if the quantity is more than 3 the coupon remains active.  And a mention, when I've switched the php version to 8.0, hikashop was significantly slower, I'm not sure if it was a real thing or not, I didn't investigated too much, but adding a product to the basket was taking longer.")*

Unfortunately, is not working.
That option was activated before, what you saw in my first screenshot it was after I've tried to fix it.
I did what you said anyway, just to be sure, but is not working.

- [ ![coupon&#95;restriction&#95;oxido&#95;4.jpg](/forum/attachment/56059) ](/forum/attachment/56059 "...on&#95;oxido&#95;4.jpg") [ ](/forum/attachment/56059?download=1 "...on&#95;oxido&#95;4.jpg")

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

Less More

- Posts: 86316
- Thank you received: 14276
-
-

3 years 10 months ago [\#347219](#347219) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Coupon restrictions "Product quantity from" not working](/forum/46-discount-coupon/905477-coupon-restrictions-product-quantity-from-not-working#347219 "-- HikaShop version -- : 4.7.0 -- Joomla version -- : 3.10.11 -- PHP version -- : 7.4  Hi As you can see from my subject, there is a problem when I try to apply a restriction on a coupon based on the &quot;Product quantity from&quot;. This bug affect hikashop 4.6.2 and 4.7.0, same problem on php 7.4 and 8.0.  I have create a coupon that is loaded automatically in cart if the quantity of a specific product it is 3. But the coupon is applied as soon as I add the product to the cart with quantity 1 and even if the quantity is more than 3 the coupon remains active.  And a mention, when I've switched the php version to 8.0, hikashop was significantly slower, I'm not sure if it was a real thing or not, I didn't investigated too much, but adding a product to the basket was taking longer.")*

Hi,

Thank you for the extra details. I was able to reproduce the issue locally and added a patch on our end.
Download again the install package of the 4.7.0 on our website and install it on yours and you'll get the patch for that issue.

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

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

Less More

- Posts: 53
- Thank you received: 3
-
-

3 years 10 months ago [\#347764](#347764) by [yolknet](/forum/user/12476-yolknet "View yolknet's Profile")  Replied by *[yolknet](/forum/user/12476-yolknet "View yolknet's Profile")* on topic *[Coupon restrictions "Product quantity from" not working](/forum/46-discount-coupon/905477-coupon-restrictions-product-quantity-from-not-working#347764 "-- HikaShop version -- : 4.7.0 -- Joomla version -- : 3.10.11 -- PHP version -- : 7.4  Hi As you can see from my subject, there is a problem when I try to apply a restriction on a coupon based on the &quot;Product quantity from&quot;. This bug affect hikashop 4.6.2 and 4.7.0, same problem on php 7.4 and 8.0.  I have create a coupon that is loaded automatically in cart if the quantity of a specific product it is 3. But the coupon is applied as soon as I add the product to the cart with quantity 1 and even if the quantity is more than 3 the coupon remains active.  And a mention, when I've switched the php version to 8.0, hikashop was significantly slower, I'm not sure if it was a real thing or not, I didn't investigated too much, but adding a product to the basket was taking longer.")*

Same problem here, I updated to 4.7 two days ago and the coupon based on quantity was not working anymore (it was applied ion orders that didn't match the settings - so our client lost some income on that).
Nice that you have a fix, but can you please add a new version number if a bug is fixed?? If you had done that, I would have known that there was a new update to download (I had downloaded the update package earlier, so I got the one with the bug in it). I think that is why software packages have version numbers?
Thanks.

(not the first time is was like this, some time ago same problem, the update I downloaded had a bug, it was fixed but the version number didn't change...)

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

Less More

- Posts: 86316
- Thank you received: 14276
-
-

3 years 10 months ago [\#347765](#347765) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Coupon restrictions "Product quantity from" not working](/forum/46-discount-coupon/905477-coupon-restrictions-product-quantity-from-not-working#347765 "-- HikaShop version -- : 4.7.0 -- Joomla version -- : 3.10.11 -- PHP version -- : 7.4  Hi As you can see from my subject, there is a problem when I try to apply a restriction on a coupon based on the &quot;Product quantity from&quot;. This bug affect hikashop 4.6.2 and 4.7.0, same problem on php 7.4 and 8.0.  I have create a coupon that is loaded automatically in cart if the quantity of a specific product it is 3. But the coupon is applied as soon as I add the product to the cart with quantity 1 and even if the quantity is more than 3 the coupon remains active.  And a mention, when I've switched the php version to 8.0, hikashop was significantly slower, I'm not sure if it was a real thing or not, I didn't investigated too much, but adding a product to the basket was taking longer.")*

Hi,

We add fixes in HikaShop every day. We can't make a new release every day. Web agencies would complain that their customer keep bugging them to update HikaShop on their website.
So unless it is a critical bug, we only add the patch as a hot fix, without changing the version number. Merchants would still get the patch a few weeks later, when we do the official release.
This also has the added benefit of getting feedback on a reduced quantity of merchants before rolling out a new release. That allows us sometimes to avoid side effects of fixes for most. That way, people updating their HikaShop without testing the update on a copy of their website have a lot less chance of getting a critical bug.

Now, if you are worried you don't have all the latest fixes, I can only recommend you to update HikaShop every day. But I don't think it's a practical solution. It will take up your time, and you might have more issues than before since the latest patches would have been less tested by others.

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

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

[](#top)
