Timeline for Can i save every order placed with custom payment method to order status complete?
Current License: CC BY-SA 4.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 19, 2019 at 7:25 | vote | accept | Garry | ||
Nov 19, 2019 at 6:57 | answer | added | Kishan Savaliya | timeline score: 1 | |
Nov 19, 2019 at 6:51 | answer | added | Asad Ullah | timeline score: 0 | |
Nov 19, 2019 at 6:51 | comment | added | Garry | Okay, Thanks! I need to process / complete. | |
Nov 19, 2019 at 6:50 | comment | added | Kishan Savaliya | Yes, checking that and give you some solution within some time | |
Nov 19, 2019 at 6:49 | comment | added | Garry | could you please tell me how to update this observer??? | |
Nov 19, 2019 at 6:32 | comment | added | Garry |
Okay, I have this observer now at Path vendor_name\module_name\Observer\Sales OrderPlaceAfter.php class OrderPlaceAfter implements \Magento\Framework\Event\ObserverInterface { /** * Execute observer * * @param \Magento\Framework\Event\Observer $observer * @return void */ public function execute( \Magento\Framework\Event\Observer $observer ) { //Your observer code } }
|
|
Nov 19, 2019 at 6:27 | comment | added | Kishan Savaliya | You can create observer event for that 'sales_order_place_after' and check if order placed through your payment method then you can change status of current order. | |
Nov 19, 2019 at 6:26 | comment | added | Garry | I went through this before, but can't find the way to do this. I mean what file should i code and what to code. | |
Nov 19, 2019 at 6:20 | review | Suggested edits | |||
Nov 19, 2019 at 6:32 | |||||
Nov 19, 2019 at 6:18 | comment | added | Kishan Savaliya | Please check this answer magento.stackexchange.com/questions/164600/… | |
Nov 19, 2019 at 6:14 | comment | added | Garry | Can i set the order status to processing or complete by default? | |
Nov 19, 2019 at 6:08 | comment | added | Kishan Savaliya | If you want to complete that order then, you need to create Invoice and Shipment for current order first programmatically then after this order will complete automatically. | |
Nov 19, 2019 at 5:09 | history | asked | Garry | CC BY-SA 4.0 |