Product Limit not working

  • Posts: 8
  • Thank you received: 2
3 years 1 month ago #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.

Please Log in or Create an account to join the conversation.

  • Posts: 83402
  • Thank you received: 13495
  • MODERATOR
3 years 1 month ago #338991

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 or Create an account to join the conversation.

  • Posts: 83402
  • Thank you received: 13495
  • MODERATOR
3 years 1 month ago #338998

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

Please Log in or Create an account to join the conversation.

  • Posts: 8
  • Thank you received: 2
3 years 1 month ago #339019

thank you for all your help, once again!

Please Log in or Create an account to join the conversation.

  • Posts: 8
  • Thank you received: 2
3 years 1 month ago #339020

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 or Create an account to join the conversation.

  • Posts: 83402
  • Thank you received: 13495
  • MODERATOR
3 years 1 month ago #339037

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 or Create an account to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum