Was wondering if anyone else had run into this issue, We have a few different payment methods for one of our sites. Invoicing, Credit/Debit, Request a quote etc. The issue is that the email template is the same for all of them so the subject line comes back as “Your Order….” but we want to change this depending on which payment method had been selected. I know you can do inline stuff in the subject line such as {Model.id} etc but this isn’t enough. It would be better to be able to select a confirmation template for each different payment method.
It’s been a while since I used Umbraco Commerce however I did have to achieve something similar so not entirely sure if the below helps you or not or at least head you in the right direction.
Create Multiple Email Templates
Go to Settings > Email Templates in the Umbraco backoffice (might be a menu level down).
Then create a separate template for each payment method:
Order Confirmation – Invoice
Order Confirmation – Credit/Debit
Order Confirmation – Quote Request
When sending the order email (e.g., via a custom workflow or during order finalisation), use the below logic to select the appropriate template based on the Order.PaymentMethod( using the IEmailSender interface i believe).