AbanteCart Community

Shopping Cart Operations => Support => General Support => Topic started by: Mahomed Dawood on April 27, 2022, 07:59:15 AM

Title: Potential Bug on Checkout
Post by: Mahomed Dawood 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
Title: Re: Potential Bug on Checkout
Post by: Basara on April 27, 2022, 03:38:19 PM
Hello.
What is the Store global setting for Stock Checkout?
Title: Re: Potential Bug on Checkout
Post by: Mahomed Dawood on April 28, 2022, 02:13:50 AM
global setting

default stock checkout is set to off
default pre order stock status is set to out of stock
Title: Re: Potential Bug on Checkout
Post by: Basara on April 28, 2022, 04:28:54 AM
Hello.
You can read this topic https://forum.abantecart.com/index.php/topic,6637.msg27912.html#msg27912