0

Please any one help me on this point ,i want to generate a custom mail when get full refund of the order.Any idea on this please help me.i m new in this field..

1
  • 1
    you can use magento event obser for this. Commented Jun 21, 2019 at 10:32

1 Answer 1

1

Just write a observer for event sales_order_creditmemo_save_after. In observer check for condition $order->getTotalRefunded() == $order->getGrandTotal()(Full refund condition). And then send email from here.

1
  • Thank you so much! i will try this method in my code. :)
    – user80516
    Commented Jun 21, 2019 at 11:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.