How to send a different kind of order confirmation email (maybe using different email template or just add some extra text to the one template) if customer has used bank transfer payment method?
1 Answer
You can create a preference for the "prepareTemplate" function available in the below file
vendor/magento/module-sales/Model/Order/Email/Sender/OrderSender.php
You can put your respective business logic in this function to set different email templates for different payment methods.
Hope this helps you.
Thanks,
-
1