I want to send an email to customer after placing an order in Magento 2.
Please send/tell me how to extend the functionality in Magento 2
Edit:
I have created my new module Roshan_Checkout
inside app/code
and in etc folder I created a event.xml
file and call a method from there which is defined in my observer.
But, I'm not able to reach there in my observer and don't know how to extend the checkout functionality.
Would be greatful to you if you tell the step by step procedure to do the same. Thanks in advanced.
Best Answer
In order to use the observer, specify the folder
frontend
oradminhtml
in etc folder and inside that useevents.xml
then call the observer. You can get the order details in observer using$observer->getOrderIds();
.