Page 1 of 1

Change order status after checkout

Posted: Tue Feb 23, 2010 12:17 pm
by michael.p.larsen
When a user successfully checks out, I need to iterate thru the purchased products and perform some logic based on some conditions... and if these conditions are met, I need to change the entire order status to "On Backorder."
Where can I iterate thru the items after checkout and also change the entire order status? I'm assuming its somewhere in the OnePageCheckout control.

Thanks in advance.

Re: Change order status after checkout

Posted: Tue Feb 23, 2010 8:20 pm
by Mike718NY
>> I need to change the entire order status to "On Backorder."

How are you doing that? Did you add a custom field?

Re: Change order status after checkout

Posted: Wed Feb 24, 2010 7:03 am
by mazhar
I guess you can put some code in OnePageCheckout's CheckedOut event handler which can iterate over newly placed order. Secondly for a new order status you don't need to create an extra filed you can create a new order status from merchant side. Then after iterating the items of newly placed order if order fulfills certain criteria then simply change the order status to newly added order status.

Re: Change order status after checkout

Posted: Wed Feb 24, 2010 2:17 pm
by michael.p.larsen
Mike718NY - I added a new order status by going to Configure > Order Statuses in the admin area.

Re: Change order status after checkout

Posted: Wed Feb 24, 2010 4:21 pm
by Mike718NY
Thanks. That's easy. I keep looking for the difficult way to do things :?