1
General Support / Potential Bug on Checkout
« on: April 27, 2022, 07:59:15 AM »
Hi AbanteCart
I seem to have picked up a bug in the checkout process
So if two customers have the same product in their cart at checkout but the stock level of that particular product is 1 or low in general , abantecart will allow for both customers to checkout thus giving us a negative stock balance , this can be tested by having to user choose a product that is low on stock the users should then be allowed to add all the stock to their cart and then begin the checkout process
Please advise if this is how it is supposed to work ? or should stock levels be checked on the checkout/cart page before a user can checkout , so that negative stock does not become a problem as this will end up making potential clients unhappy
Steps to replicate
1 Two separate users
2 Add the same product to the cart make sure that it is all the stock for that particular product and checkout with the customers
3 Do the normal checkout process with both customers
4 Confirm the orders
5 Check Stock quantity for the product on the admin side , it should go into a negative
Please note my stock settings are set to
Track Stock: Yes
Stock Checkout: Default
I seem to have picked up a bug in the checkout process
So if two customers have the same product in their cart at checkout but the stock level of that particular product is 1 or low in general , abantecart will allow for both customers to checkout thus giving us a negative stock balance , this can be tested by having to user choose a product that is low on stock the users should then be allowed to add all the stock to their cart and then begin the checkout process
Please advise if this is how it is supposed to work ? or should stock levels be checked on the checkout/cart page before a user can checkout , so that negative stock does not become a problem as this will end up making potential clients unhappy
Steps to replicate
1 Two separate users
2 Add the same product to the cart make sure that it is all the stock for that particular product and checkout with the customers
3 Do the normal checkout process with both customers
4 Confirm the orders
5 Check Stock quantity for the product on the admin side , it should go into a negative
Please note my stock settings are set to
Track Stock: Yes
Stock Checkout: Default