If one has a product in the shop and adds the restrict-quantity later on, after users have already purchased the product, the number of items in the cart can reach a negative count.
eg: User X orders 5 of product Y.
Tomorrow the shop owner enters a restriction on the same product of 3.
If User X comes back after the restriction is in place, and attempts to add product Y to the cart, they will get a confusing warning.
You may only add -2 product Y to your cart. Quantity has been restricted.
When the user goes to the cart, they will find that they have -2 of product Y in their cart, with a negative price linked to it.
I have not tested what this means when they actually go thru to the checkout, but I assume that when a user places a valid product into the cart they will propably pay an incorrect order total, which can lead to problems when products are sold digitally.
Comments
Comment #1
raulmuroc commentedClosing due to lack of activity. If you are still working on this application, you should fix all known problems and then set the status to "Needs review". (See also the project application workflow).