cancel
Showing results for 
Search instead for 
Did you mean: 

Edit an order programmatically ( cancel old one and create new order with the increment ID as

Edit an order programmatically ( cancel old one and create new order with the increment ID as

Please if anyone can help me, I'm trying to create a (Soap API v2 ) extension where I can edit an order programmatically, but I don't know where to start !!

I tried to use the function startAction() on Mage_Adminhtml_Sales_Order_EditController, I even changed some code on the initFromOrder($order) on Mage_Adminhtml_Model_Sales_Order_Create but what happens is that I create another order based on the old one's details. what I want is to cancel the old one and create a child order with the increment_id-x

I appreciate your help guys, and thanks a lot