Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Set current order in basket to ship
 
robinc
Jr. Member
 
Total Posts:  14
Joined:  2009-01-19
 

I’ve made a payment method where the new order status is pending
Then the user is directed to a third party site where they put in their details then they are bought back to:
http://www.example.com/checkout/onepage/success .

I want to set the new order status to ship when I get back to the successAction() of the Mage_Checkout_OnepageController: http://www.example.com/checkout/onepage/success)

Is there an easy way to do this (or possible at all).

Sorry if this is a basic question, I’m new to Magento.

 
Magento Community Magento Community
Magento Community
Magento Community
 
mzentrale1
Guru
 
Total Posts:  731
Joined:  2007-12-06
Stuttgart, Germany
 

Hi,

make a own controller action in your paymentmodule and redirect after payment to this action. within this action you can edit order status and than redirect to success.

cheers

Stefan

 
Magento Community Magento Community
Magento Community
Magento Community
 
robinc
Jr. Member
 
Total Posts:  14
Joined:  2009-01-19
 

Hi, thanks for your reply!

can I not change the order status in the success action?

it seems silly to create a controller just for that one action then refer the user to the success action

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top