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 Answer
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.
-
Thank you so much! i will try this method in my code. :)– user80516Commented Jun 21, 2019 at 11:21