Concurrent checkouts can lead to negative stock


I'm looking for someone to solve the below issue in OpenCart:


When two customers check out concurrently for the same product and the total quantity being ordered is greater than the quantity available, the stock can become negative even if the ‘Store Checkout’ setting under Stock is set to ‘no’.

Steps to reproduce

Start site, create two customers, create/pick test product and allocate some stock.

Both customers add the product to their carts such that each cart individually is under the available stock, but combined they exceed the available stock.

Perform a checkout concurrently, making sure both customers finish checkout (click the ‘Confirm Order’ button) as close to the same time as possible.

We have reproduced this behavior on a single machine, by performing the above steps by simulating one customer in one browser window and another customer in a second browser window.

Expected Result

One of the two checkouts fails to complete.

Actual Result

Both checkouts succeed and the quantity for the product is negative in the admin console.

Compétences : OpenCart

en voir plus : lead generation job description, negative stock tally, negative stock tdl, tally negative stock tdl, lead generator job description, lead editor job description, sales lead position job description, lead writer job description, lead researcher job description, sales lead generator job description, lead manager job description, lead graphic designer description, lead sourcer job description, director of lead generation job description, lead designer job description, lead management job description, iso 27001 lead auditor job description

Concernant l'employeur :
( 9 commentaires ) Riyadh, Saudi Arabia

Nº du projet : #28333006

14 freelances font une offre moyenne de 176 $ pour ce travail


Hi,I Have read your project description.i have 8 year exp. in opencart. i have completed 400+ opencart project.i m the top opencart developer in this [login to view URL] check my review and rating and match my skills with Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 10 jours
(289 Commentaires)

Hi, I am interested in your project. I have 7-year experience on Opencart and my completed projects on freelancer.com are on Opencart. I understood your requirement. I can have solution for your case. Please feel fre Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(164 Commentaires)

Hello, I am expert in Opencart and I have fixed the similar issue on a site earlier. So I am 100% confident to do it. I will check on the checkout page that if product stock is 0 or less than checkout will not complet Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(35 Commentaires)

Good Day, I totally understand the test case & desired output you have given I can easily achieve this. Please ping me anytime to discuss & I can start immediately.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(14 Commentaires)

Dear Concern I work in Opencart and i am interest to work with you. Have a time to chat for more information? I am available to chat with u. Thanks Suman

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(52 Commentaires)

Hello Sir, I am an expert Opencart developer and I can fix your issue. You have explained issue very well. I can help to fix this issue. Award project and create milestone. Thanks, Pratibha

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(22 Commentaires)

very honestly without proper information about job i can not give exact cost. i am having all skills for this project that's why you can see my bid [login to view URL] be my charges will be higher because my quality of output wi Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(32 Commentaires)

Hi, I have good experience on Opencart web development sure I can make web page as per your requirements please message for other details and shear your current site. I have worked on similar projects and are confiden Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 4 jours
(8 Commentaires)

Hi, I have read your job carefully and I am interested in your job post for a web developer to solve your issue and it can be done as per your expectation. I have experience in the specific field your are looking for. Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(4 Commentaires)

Hello, We're experienced with Opencart customization, API integration, bug fixing, and advanced development could be interesting to you. Here is a couple of relevant work examples on which we're working, please feel f Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 10 jours
(1 Évaluation)

Dear client. Nice to see you. I am an opencart expert who can handle your project. Checking your proposal, I completely understood. Please open chat for more details. I will fix the nagative number issue. Regards from Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(0 Commentaires)

Hi, I know you are looking for an fulll stack web developer. For the last few years, I am mainly focusing on web development with shopify, opencart and did some good jobs. Especially, I have a good experience with inte Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(0 Commentaires)

Hello. I can help you as well I'll provide you good result I'll do my best for this job Please contact me best regards Aleksandra Kholmogorova

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(0 Commentaires)

I've already fixed such issue previous. Will check the product quantity just before clicking the confirm order button. If not in stock, will redirect to shopping cart page. I've very good experience in developing e-c Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(0 Commentaires)