Return-Path: X-Original-To: apmail-ofbiz-user-archive@www.apache.org Delivered-To: apmail-ofbiz-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9887CE489 for ; Mon, 14 Jan 2013 23:46:26 +0000 (UTC) Received: (qmail 96113 invoked by uid 500); 14 Jan 2013 23:46:25 -0000 Delivered-To: apmail-ofbiz-user-archive@ofbiz.apache.org Received: (qmail 96082 invoked by uid 500); 14 Jan 2013 23:46:25 -0000 Mailing-List: contact user-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ofbiz.apache.org Delivered-To: mailing list user@ofbiz.apache.org Received: (qmail 96074 invoked by uid 99); 14 Jan 2013 23:46:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jan 2013 23:46:25 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [67.221.226.157] (HELO zimbra.hotwaxmedia.com) (67.221.226.157) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jan 2013 23:46:18 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.hotwaxmedia.com (Postfix) with ESMTP id 2576192F0718 for ; Mon, 14 Jan 2013 17:45:57 -0600 (CST) X-Virus-Scanned: amavisd-new at zimbra.hotwaxmedia.com Received: from zimbra.hotwaxmedia.com ([127.0.0.1]) by localhost (zimbra.hotwaxmedia.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b6j0e94yndjl for ; Mon, 14 Jan 2013 17:45:56 -0600 (CST) Received: from [172.40.40.103] (unknown [122.168.195.52]) by zimbra.hotwaxmedia.com (Postfix) with ESMTPSA id 54E3592F0717 for ; Mon, 14 Jan 2013 17:45:55 -0600 (CST) From: Anil K Patel Content-Type: multipart/alternative; boundary="Apple-Mail=_394461CB-6BC8-48E7-BEB8-3AA5F605693B" Message-Id: <86BFB2AB-3B9E-408D-A6A2-C2CE470BFE90@hotwaxmedia.com> Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: How does OFBIZ handle race cart condition please? Date: Tue, 15 Jan 2013 05:15:50 +0530 References: <979510BC700E41729AB8F5D27443B66D@inspiron530> To: user@ofbiz.apache.org In-Reply-To: X-Mailer: Apple Mail (2.1499) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_394461CB-6BC8-48E7-BEB8-3AA5F605693B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Fong, Saving customers payment information is one step of checkout. It happens = before you store order in database.=20 Ofbiz does not support scenario where customer gives credit card = information on third party website (and may be payment is collected) = before order is created in Ofbiz. If this is what you need then, yes = Its case of customization. Paypal integration is similar to what you need, you may take its = reference. Thanks and Regards Anil Patel Hotwax Media Inc http://www.hotwaxmedia.com/ On Jan 15, 2013, at 2:02 AM, Ofbiz =E5=BC=80=E5=8F=91 = wrote: > Thanks Anil and Jacques, >=20 > 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. >=20 > 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. >=20 > 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. >=20 > 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. >=20 > 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. >=20 > 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. >=20 > Kind Regards >=20 > Fong >=20 >=20 >=20 > On Tue, Jan 15, 2013 at 12:16 AM, Anil K Patel > wrote: >=20 >> 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. >>=20 >> Thanks and Regards >> Anil Patel >> Hotwax Media Inc >> http://www.hotwaxmedia.com/ >>=20 >> On Jan 14, 2013, at 2:12 PM, Jacques Le Roux = >> wrote: >>=20 >>> Have a look at Quantity On Hand vs Available To Promise >>>=20 >>> Jacques >>>=20 >>> From: "Ofbiz =E5=BC=80=E5=8F=91" >>>> Hi everyone, >>>>=20 >>>> 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. >>>>=20 >>>> So imagine the scenario, one product has only 1 stock left, and 2 = users >>>> have each added 1 of that product to their basket. >>>>=20 >>>> Now both users go to checkout. What does OFBIZ do from here onwards >> please? >>>> Thanks very much. >>>>=20 >>>> Kind Regards >>>>=20 >>>> Fong >>>>=20 >>=20 >>=20 --Apple-Mail=_394461CB-6BC8-48E7-BEB8-3AA5F605693B--