Skip to main content
27 events
when toggle format what by license comment
S Jun 12 at 5:07 history suggested Antoine Martin CC BY-SA 4.0
events.xml file and not event.xml file
Jun 11 at 11:25 review Suggested edits
S Jun 12 at 5:07
May 6, 2019 at 4:28 comment added Agnes @PrasantaHatui File name should be events.xml. You have given it as event.xml which is wrong.
Jun 21, 2018 at 15:23 history edited Amit Bera CC BY-SA 4.0
added 4 characters in body
Jun 17, 2018 at 9:26 comment added JB Pakalapati I have tried this, but It's not working as expected. I think your answer helped to get on track. Please let me know were I am missing here is my code
Jun 17, 2018 at 9:14 vote accept JB Pakalapati
Jun 10, 2018 at 7:25 comment added JB Pakalapati I am getting this error: Fatal error: Namespace declaration statement has to be the very first statement in the script in C:\xampp\htdocs\Magento- CE\app\code\Autosynch\Sale\Observer\OrderPlaceAfter.php on line 2 If possible Can you join chat
Jun 10, 2018 at 7:24 history edited Prasanta Hatui CC BY-SA 4.0
edited
Jun 10, 2018 at 7:19 comment added Prasanta Hatui I have updated the observer class. Please use that
Jun 10, 2018 at 7:18 history edited Prasanta Hatui CC BY-SA 4.0
edited
Jun 10, 2018 at 7:12 comment added JB Pakalapati Let us continue this discussion in chat.
Jun 10, 2018 at 7:12 comment added JB Pakalapati Do we need to use constructor ?
Jun 10, 2018 at 7:12 comment added Prasanta Hatui Let me update the proper way
Jun 10, 2018 at 7:11 comment added Prasanta Hatui You should not pass logger in this way.
Jun 10, 2018 at 7:08 comment added JB Pakalapati I have updated the Question, Can u Please check.
Jun 10, 2018 at 6:47 comment added JB Pakalapati Yes, This error came When i did setup:di:compile
Jun 10, 2018 at 6:33 comment added Prasanta Hatui Have you done setup:di:compile
Jun 10, 2018 at 6:27 comment added JB Pakalapati I am getting this error Fatal error: Declaration of Autosynch\Sale\Observer\OrderPlaceAfter::execute() must be compatible with Magento\Framework\Event\ObserverInterface::execute(Magento\Framework\Event\Observer $observer) in C:\xampp\htdocs\Magento-CE\app\code\Autosynch\Sale\Observer\OrderPlaceAfter.php on line 11 Let me where I ma going wrong
Jun 7, 2018 at 10:14 comment added Prasanta Hatui You can create log . this thienphucvx.com/magento-2-logging-to-a-custom-file will help you.
Jun 7, 2018 at 10:01 comment added JB Pakalapati Is there any way to debug to see the array data or to print some where. what this line will do var_dump($order->getData());. bu the way i need to do all my operations before exit; right?
Jun 7, 2018 at 9:52 comment added Prasanta Hatui every time the order placed in magento, the observer will be called. You can analyze the order data by doing var_dump($order->getData()); exit; it will give array of order information.
Jun 7, 2018 at 9:49 history edited Prasanta Hatui CC BY-SA 4.0
edited
Jun 7, 2018 at 9:46 comment added JB Pakalapati Thank you very much, this will help to get started. I was wondering how I need to test and see how Data is coming, So need to parse it and Send to another service and Save Data in Oracle Database.
Jun 7, 2018 at 8:40 history edited Prasanta Hatui CC BY-SA 4.0
edited
S Jun 7, 2018 at 8:38 history suggested Emipro Technologies Pvt. Ltd. CC BY-SA 4.0
Content not write proper.
Jun 7, 2018 at 8:37 review Suggested edits
S Jun 7, 2018 at 8:38
Jun 7, 2018 at 8:14 history answered Prasanta Hatui CC BY-SA 4.0