Page 1 of 1

problem with checking out

Posted: Thu Jul 19, 2018 2:50 pm
by wa77sh
let's say i opened the website from 2 computers and i have a product with quantity of 1, in the 2 computers i added the product to the cart, then i check out at the same time! now only one order gets placed in the orders tab and product quantity gets subtracted by 2 not 1, so now the product quantity ( -1 ) not 0 ???

Re: problem with checking out

Posted: Thu Jul 19, 2018 6:16 pm
by straightlight
While the OC version has not been posted, it's an old issue that has been resolved on more recent OC versions. However, it would be suggested not to post your token string on the forum nor from provided screenshots.

Re: problem with checking out

Posted: Thu Jul 19, 2018 6:53 pm
by wa77sh
Sorry for that, my opencart Version 2.3.0.2

Re: problem with checking out

Posted: Thu Jul 19, 2018 7:02 pm
by OSWorX
straightlight wrote:
Thu Jul 19, 2018 6:16 pm
.. it's an old issue that has been resolved on more recent OC versions. ..
Guess not, because that is the way OpenCart is designed and works.
The moment you have 2 (or more customers) checking out with same products, the first can order - the others can not anymore (or should not) IF the system and product settings are correct.
If the system system is defined not to check out with no stock, checkout is possible and the stock quantity goes under 0 - as in your case.

Either you you leave it as it is as now - customers can check out even with no stock, or you change the setting.
If defined, the customer will see a message that this product cannot be ordered by cause no stock.

If you want to have a check during the checkout (last step), you have to install an additional extension which checks the stock at this stage (have made such for some of my customers to avoid this).

But subtracting 2 pieces if 1 is ordered is simply impossible and heard never before or seen.
There must be something else (order 2 not 1) or do you have installed any additional extension which has an impact on the order process?
Or do you mean that the second order is in state 'Pending' and not 'Complete'?
But both orders are made successfully and it is displayed that the second order must be 2 pieces, while the last is 1.
Anyway, OpenCart can only process that what you are (or the customer) is doing or have done.

Re: problem with checking out

Posted: Thu Jul 19, 2018 7:31 pm
by straightlight
If you want to have a check during the checkout (last step), you have to install an additional extension which checks the stock at this stage (have made such for some of my customers to avoid this).
Well, if an extension needs to be installed to check the subtraction stock based on the merchant's configuration, I guess it is an old issue still … :ponder:

Re: problem with checking out

Posted: Thu Jul 19, 2018 8:46 pm
by wa77sh
OSWorX
no, I mean that only one order has been placed in the orders tab, but 2 products has been soled!!!

Re: problem with checking out

Posted: Thu Jul 19, 2018 11:47 pm
by OSWorX
straightlight wrote:
Thu Jul 19, 2018 7:31 pm
If you want to have a check during the checkout (last step), you have to install an additional extension which checks the stock at this stage (have made such for some of my customers to avoid this).
Well, if an extension needs to be installed to check the subtraction stock based on the merchant's configuration, I guess it is an old issue still … :ponder:
Simply try it by yourself and make a checkout with the same product with 2 different customers (2 windows) - but wait with the last step (confirmation) with both.
Then do the last step and confirm both - it will work, also in the latest 3.x version.

Re: problem with checking out

Posted: Thu Jul 19, 2018 11:57 pm
by OSWorX
wa77sh wrote:
Thu Jul 19, 2018 8:46 pm
OSWorX
no, I mean that only one order has been placed in the orders tab, but 2 products has been soled!!!
On the screenshot I can see only that order # 351 must be the same as 352 but 2x the same product and is complete.
Order # 352 is Pending and seems to be the same product as 351 but once.
That is all what I can see - all other is what you are writing ..

Or do you mean the the customer frgrg with order # 352 has bought one (1) product, but the stock is reduced by 2 pieces now?
Never heard of that before.
Maybe you try that again with different customer names, a session problem is unknown.
Also shared data could not be the reason.
Also which browser did you use?

Re: problem with checking out

Posted: Fri Jul 20, 2018 12:19 am
by straightlight
Simply try it by yourself and make a checkout with the same product with 2 different customers (2 windows) - but wait with the last step (confirmation) with both.
Then do the last step and confirm both - it will work, also in the latest 3.x version.
I do understand what the addressed issue is about. What I did indicated, however, is since an extension is required to maintain the stock balance, then - yes - this is an issue at this point since, even though the store owner can configure the stock levels, the minimum amount of stock cannot be addressed as a negative value to the customer unless the field would be implicit specifically to be shown to customers on the product detailed page.

Re: problem with checking out

Posted: Fri Jul 20, 2018 3:07 am
by OSWorX
As far as I can remember, we have discussed this with Daniel already with the 1.4 releases.
As - usual - his answer: this is how OpenCart works.

And this can lead to troubles, because - in rare situations, or if a shop has unique products - if happen, one of the customers will be very unsatisfied!
To prevent this, I have made the extension.