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

#   Product Limit not working

##

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

Less More

- Posts: 8
- Thank you received: 2
-
-

4 years 9 months ago [\#338987](#338987) by [andrewHS](/forum/user/45344-andrewhs "View andrewHS's Profile")  *[Product Limit not working](/forum/26-product-category-display/903883-product-limit-not-working#338987 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.6 -- Error-message(debug-mod must be tuned on) -- : Limit function not working, allows for unlimited purchase of max quantity in new session. Period is set to Forever.  Limit function not working, allows for unlimited purchase of max quantity in new session. Period is set to Forever. Customer can buy product at heavy discount at limit of 2. Period is set to Forever. Client has come back multiple times and keeps being able to buy product at heavy discount. Product has variants and i notice Product Limit is set by ID. Is variant causing this issue? Product variant has its own product code. He buys the same variant each time. Any help would be appreciated. This is costing company a lot of money.")* was created by *[andrewHS](/forum/user/45344-andrewhs "View andrewHS's Profile")*

-- HikaShop version -- : 3.1.1
-- Joomla version -- : 2.5.28
-- PHP version -- : 5.6
-- Error-message(debug-mod must be tuned on) -- : Limit function not working, allows for unlimited purchase of max quantity in new session. Period is set to Forever.

Limit function not working, allows for unlimited purchase of max quantity in new session. Period is set to Forever. Customer can buy product at heavy discount at limit of 2. Period is set to Forever. Client has come back multiple times and keeps being able to buy product at heavy discount. Product has variants and i notice Product Limit is set by ID. Is variant causing this issue? Product variant has its own product code. He buys the same variant each time.
Any help would be appreciated. This is costing company a lot of money.

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

4 years 9 months ago [\#338991](#338991) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product Limit not working](/forum/26-product-category-display/903883-product-limit-not-working#338991 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.6 -- Error-message(debug-mod must be tuned on) -- : Limit function not working, allows for unlimited purchase of max quantity in new session. Period is set to Forever.  Limit function not working, allows for unlimited purchase of max quantity in new session. Period is set to Forever. Customer can buy product at heavy discount at limit of 2. Period is set to Forever. Client has come back multiple times and keeps being able to buy product at heavy discount. Product has variants and i notice Product Limit is set by ID. Is variant causing this issue? Product variant has its own product code. He buys the same variant each time. Any help would be appreciated. This is costing company a lot of money.")*

Hi,

The limit mechanism bases itself on the user entry and the user session.
So when the user is not logged in, the limit will apply to the session. If the user gets a new session, then the limit system won't be able to know it is the same person and thus the limit will apply as he it was someone else.
When the user is logged in, the limit will apply to the user regardless of the user session.
So if you allow for guest checkout, the limit mechanism is pretty much useless since the guests can just change their session to circumvent the limits.
You need to have a checkout only allowing login and registration to be able to properly enforce the limits.

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

4 years 9 months ago [\#338998](#338998) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product Limit not working](/forum/26-product-category-display/903883-product-limit-not-working#338998 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.6 -- Error-message(debug-mod must be tuned on) -- : Limit function not working, allows for unlimited purchase of max quantity in new session. Period is set to Forever.  Limit function not working, allows for unlimited purchase of max quantity in new session. Period is set to Forever. Customer can buy product at heavy discount at limit of 2. Period is set to Forever. Client has come back multiple times and keeps being able to buy product at heavy discount. Product has variants and i notice Product Limit is set by ID. Is variant causing this issue? Product variant has its own product code. He buys the same variant each time. Any help would be appreciated. This is costing company a lot of money.")*

Note also that I can see you have an old version of HikaShop. You might also have an old bug which makes it more confusing...
Here are some changelog lines I could find in recent versions of HikaShop and which would affect your version of HikaShop :

> The category restriction on limits didn't take into acccount properly already placed orders when the product had characteristics/variants.
> We fixed an error in some cases with the limit system on PHP 7.3
> The type selection on limits wasn't working properly and would redirect to the listing of limits instead of saving and staying on the page.
> The limits were taking into account only orders in the currency selected in them even when the "type" of the limits wasn't set to "price".
> We fixed a fatal error which could happen with limits configured with a category restriction upon add to cart.

The following user(s) said Thank You: [andrewHS](/forum/user/45344-andrewhs "View andrewHS's Profile")

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

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

Less More

- Posts: 8
- Thank you received: 2
-
-

4 years 9 months ago [\#339019](#339019) by [andrewHS](/forum/user/45344-andrewhs "View andrewHS's Profile")  Replied by *[andrewHS](/forum/user/45344-andrewhs "View andrewHS's Profile")* on topic *[Product Limit not working](/forum/26-product-category-display/903883-product-limit-not-working#339019 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.6 -- Error-message(debug-mod must be tuned on) -- : Limit function not working, allows for unlimited purchase of max quantity in new session. Period is set to Forever.  Limit function not working, allows for unlimited purchase of max quantity in new session. Period is set to Forever. Customer can buy product at heavy discount at limit of 2. Period is set to Forever. Client has come back multiple times and keeps being able to buy product at heavy discount. Product has variants and i notice Product Limit is set by ID. Is variant causing this issue? Product variant has its own product code. He buys the same variant each time. Any help would be appreciated. This is costing company a lot of money.")*

thank you for all your help, once again!

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

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

Less More

- Posts: 8
- Thank you received: 2
-
-

4 years 9 months ago [\#339020](#339020) by [andrewHS](/forum/user/45344-andrewhs "View andrewHS's Profile")  Replied by *[andrewHS](/forum/user/45344-andrewhs "View andrewHS's Profile")* on topic *[Product Limit not working](/forum/26-product-category-display/903883-product-limit-not-working#339020 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.6 -- Error-message(debug-mod must be tuned on) -- : Limit function not working, allows for unlimited purchase of max quantity in new session. Period is set to Forever.  Limit function not working, allows for unlimited purchase of max quantity in new session. Period is set to Forever. Customer can buy product at heavy discount at limit of 2. Period is set to Forever. Client has come back multiple times and keeps being able to buy product at heavy discount. Product has variants and i notice Product Limit is set by ID. Is variant causing this issue? Product variant has its own product code. He buys the same variant each time. Any help would be appreciated. This is costing company a lot of money.")*

the product in question was only available to "Team Players" who had to log in to see that section of the website. I see from your other answer about variants but you mentioned category and we had the limit only set to one product that only logged in Team Players could see with no category selected.

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

4 years 9 months ago [\#339037](#339037) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Product Limit not working](/forum/26-product-category-display/903883-product-limit-not-working#339037 "-- HikaShop version -- : 3.1.1 -- Joomla version -- : 2.5.28 -- PHP version -- : 5.6 -- Error-message(debug-mod must be tuned on) -- : Limit function not working, allows for unlimited purchase of max quantity in new session. Period is set to Forever.  Limit function not working, allows for unlimited purchase of max quantity in new session. Period is set to Forever. Customer can buy product at heavy discount at limit of 2. Period is set to Forever. Client has come back multiple times and keeps being able to buy product at heavy discount. Product has variants and i notice Product Limit is set by ID. Is variant causing this issue? Product variant has its own product code. He buys the same variant each time. Any help would be appreciated. This is costing company a lot of money.")*

Hi,

I'm not sure.
I would recommend trying to update first.
Also, if you could provide a screenshot of the settings of the limit and of the settings of the product, we could try reproducing the issue on our end.

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

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