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.
Change order status after checkout
-
- Lieutenant (LT)
- Posts: 70
- Joined: Fri Jan 15, 2010 8:17 am
Re: Change order status after checkout
>> I need to change the entire order status to "On Backorder."
How are you doing that? Did you add a custom field?
How are you doing that? Did you add a custom field?
Re: Change order status after checkout
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.
-
- Lieutenant (LT)
- Posts: 70
- Joined: Fri Jan 15, 2010 8:17 am
Re: Change order status after checkout
Mike718NY - I added a new order status by going to Configure > Order Statuses in the admin area.
Re: Change order status after checkout
Thanks. That's easy. I keep looking for the difficult way to do things 
