Author Topic: Potential Bug on Checkout  (Read 1911 times)

Offline Mahomed Dawood

  • Jr. Member
  • **
  • Posts: 61
  • Karma: +4/-0
    • View Profile
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
« Last Edit: April 27, 2022, 09:18:26 AM by Mahomed Dawood »

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5772
  • Karma: +274/-2
    • View Profile
Re: Potential Bug on Checkout
« Reply #1 on: April 27, 2022, 03:38:19 PM »
Hello.
What is the Store global setting for Stock Checkout?

Offline Mahomed Dawood

  • Jr. Member
  • **
  • Posts: 61
  • Karma: +4/-0
    • View Profile
Re: Potential Bug on Checkout
« Reply #2 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

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5772
  • Karma: +274/-2
    • View Profile
Re: Potential Bug on Checkout
« Reply #3 on: April 28, 2022, 04:28:54 AM »

 

Powered by SMFPacks Social Login Mod