Change order status after checkout

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
michael.p.larsen
Lieutenant (LT)
Lieutenant (LT)
Posts: 70
Joined: Fri Jan 15, 2010 8:17 am

Change order status after checkout

Post by michael.p.larsen » Tue Feb 23, 2010 12:17 pm

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.

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Change order status after checkout

Post by Mike718NY » Tue Feb 23, 2010 8:20 pm

>> I need to change the entire order status to "On Backorder."

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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Change order status after checkout

Post by mazhar » Wed Feb 24, 2010 7:03 am

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.

michael.p.larsen
Lieutenant (LT)
Lieutenant (LT)
Posts: 70
Joined: Fri Jan 15, 2010 8:17 am

Re: Change order status after checkout

Post by michael.p.larsen » Wed Feb 24, 2010 2:17 pm

Mike718NY - I added a new order status by going to Configure > Order Statuses in the admin area.

Mike718NY
Commodore (COMO)
Commodore (COMO)
Posts: 485
Joined: Wed Jun 18, 2008 5:24 pm

Re: Change order status after checkout

Post by Mike718NY » Wed Feb 24, 2010 4:21 pm

Thanks. That's easy. I keep looking for the difficult way to do things :?

Post Reply