0

Is possible to change the state of the order to complete?

$order->setSate(Mage_Sales_Model_Order::STATE_COMPLETE);
$order->save();

Programmatically : setState(Mage_Sales_Model_Order::STATE_COMPLETE) will generate Exception.


$order->setData('state', Mage_Sales_Model_Order::STATE_COMPLETE);
$order->save();

With setData('state', Mage_Sales_Model_Order::STATE_COMPLETE) => Server Error "404 Not Found - nginx".

Thanks a lot.

2
  • 1
    The 404 error may not be related, it could be simply bad URL.
    – kiatng
    Commented May 3, 2018 at 5:25
  • Yep. I thought of that, too. Thanks for feedback.
    – JhAndrade
    Commented May 3, 2018 at 18:06

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.