When I have got and error "The Order State "complete" must not be set manually." I found the solution here ...
I use the obove code to change the state of an order from processing to complete. Actually the state is changed to "" (empty), not to COMPLETE.
Note : This blog will Guide you, how to create custom order statuses and change the order status programmatically as per need, so lets start,.
When the admin prints out the packing slip, the order status is changed to “ printed”. Instead of doing it manually, one can change order status ...
You can Change status this way.. $orderId = 1; // here order id $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $order ...
. com.np/magento-how-to-change-order-status-programmatically/.
Magento: How to change order status programmatically? Share Tweet Pin Mail SMS. This article shows how to change your order status ...
I was able to find a solution. in app/code/core/Mage/Paypal/Controller/Express/ Abstract.php. below link will show u how to change the state of ...
Today I needed to update magento's order (status,comment) programattically. So this is what rescued me. $order ...
Please provide the solution for how I can update the order status in Magento 2? $ orderId = 1; $objectManager = \Magento\Framework\App\ObjectManager:: ...