[OFBiz] Users - How to create an order in OM for a customer with no
address?
Ashish Hareet
Ashish.Hareet at cpbinc.com
Mon Jun 27 18:51:25 EDT 2005
Matt,
I'm not sure about the shipping address requirement, but here's what you can do to shuffle the order
of the screens.
I'll assume that if "No shipping" is selected then the code doesn't require the
shipping destination address.
Say you called finalizeOrderEntry & it returns a "customer" response which calls the
"custsetting" request in the stock impl.
Don't let it call this request, instead you call your own request(bsh being my choice during dev),
where you decide what to do. So, if you had in-store pickup, then set the carts
shipping method to "No Shipping" & call the finalizeOrderEntry(finalizeOrder in controller)
request again & the code will move onto the next piece as required by Ofbiz.
Now, if it wasn't an in-store pickup(ie you want some sorta shipping) then redirect the user
to the request that OfBiz is supposed to make(custsetting view).
Beware what you call - request/view - make sure you understand what you are doing when you
are chaining requests, else you might end up in a neverending loop.
HTH
Ashish Hareet
More information about the Users
mailing list