Timeline for What is the correct way to change order status in Magento 2
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Dec 11, 2015 at 21:43 | comment | added | Alex Paliarush | Object manager should not be used directly, inject dependencies via construct. Also take a look at devdocs.magento.com/guides/v2.0/extension-dev-guide/… | |
Dec 11, 2015 at 19:39 | comment | added | user20719 | thanks for your response. Sorry, not sure if I was clear. I'm calling the external API within a custom Magento module (app/code/mymodule) and after return from the call I update the order status in the custom Magento module. With this approach ok to still call \Magento\Framework\App\ObjectManager::getInstance()? Also, after getting instance of OM, I'm using using "load()" method but "save" method is not found. What am I doing wrong. | |
Dec 11, 2015 at 9:46 | history | answered | Alex Paliarush | CC BY-SA 3.0 |