0

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 1

1

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
  • 1
    I'm sorry but I need more detailed answer.
    – Webninja
    Oct 5, 2020 at 14:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.