Alan McCoy wrote:
> However, the confirmation failed to come
> through. And, when I went back to the "store", my basket was empty.
Yeah, this has been bugging me. The freetrade way is to
CREATE_INVOICE when the user clicks on checkout. At this
time the whole basket is moved to the invoice, thus emptying
the basket. If, by any means, the user goes back to look at
his basket, it's empty. The original freetrade code has some
stuff in there about "incomplete invoices" and whether he
wants to complete it or clear it out, but that's just plain
confusing.
I've recently gone through and changed the way this works on
one of my projects. Everything stays in session_sku until
SUBMIT_ORDER and then it moves to invoice_sku. Unfortunately,
I'm not convinced that I've done the right thing, because I
might not have adequately prevented someone from sneaking an
item into the cart after I've calculated their total, but the
original behavior drove me crazy.
Any better solutions?
--
Paul Chamberlain, [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]