ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ofbiz 开发 <phoneme...@gmail.com>
Subject Re: How does OFBIZ handle race cart condition please?
Date Mon, 14 Jan 2013 20:32:46 GMT
Thanks Anil and Jacques,

I allow any number of users to add up to current stock level of that
product to cart, but only want to allow quantity of up to the current stock
level of that product to be converted to order.

E.g. If Product A has 10 stocks on hand, then I allow, say 30 users, to
each add 10 Product A to their basket, because not necessarily every one
will checkout eventually.

But when checkout, I don't want Product A to be over sold. So a problem
will come if 2 or more people tries to go to credit card page at the same
time, especially when the credit card page is on a 3rd party website and
out of my control.

If I create order after the credit card process successfully then there is
a risk of 2 user's money are deducted, but only 1 order can be created.

If I create order before credit card process then there is a risk of the
first user's card not have enough money, or fail for other reasons.

Has OFBIZ handled this situation already or do I have to implement the
insurance logic myself? What do you guys normally do in this case please?
Thanks very much.

Kind Regards


On Tue, Jan 15, 2013 at 12:16 AM, Anil K Patel

> Fong,
> If  your inventory setup requires product to be in stock before you take
> orders then, create order will fail if ordered product is not in stock.
> Thanks and Regards
> Anil Patel
> Hotwax Media Inc
> http://www.hotwaxmedia.com/
> On Jan 14, 2013, at 2:12 PM, Jacques Le Roux <jacques.le.roux@les7arts.com>
> wrote:
> > Have a look at Quantity On Hand vs Available To Promise
> >
> > Jacques
> >
> > From: "Ofbiz 开发" <phonemedia@gmail.com>
> >> Hi everyone,
> >>
> >> Does anyone know how OFBIZ handle race cart condition please?
> Especially at
> >> the last step of checkout when people go to enter credit card number.
> >>
> >> So imagine the scenario, one product has only 1 stock left, and 2 users
> >> have each added 1 of that product to their basket.
> >>
> >> Now both users go to checkout. What does OFBIZ do from here onwards
> please?
> >> Thanks very much.
> >>
> >> Kind Regards
> >>
> >> Fong
> >>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message