When I have got and error "The Order State "complete" must not be set manually." I found the solution here ...
newState = Order::STATE_COMPLETE; $order->setState($newState)->setStatus( Order::COMPLETE); $order->save(); I use the obove code to ...
As question from @jafar-pinjar regarding custom order status, setState and setStatus calls can ...
To assign an order status to a state: · Choose the Order Status that you want to assign. · Set Order State to the place in the workflow where the ...
i found a solution for my self, $order = Mage::getModel('sales/order')-> loadByIncrementId($order_id); $order->setData('state', "complete"); ...
Let's assume that we need to have the order status set to “Processing” instead of “Pending” for orders paid with the “Credit Card Save” payment ...
You can't set Order state to COMPLETE or CLOSED manually with setState() method AFAIK.
/** * change order status to 'Completed' */ $order->setState( Mage_Sales_Model_Order::STATE_COMPLETE, true)->save();. Similarly, you can ...
$orderState ...
$order->setState(Mage_Sales_Model_Order::STATE_COMPLETE, true)->save(); . Similarly, you can change the order status to pending, processing, canceled, ...