Hi Will
Thank you for your Answer! - Your idea sounds even better 👍.
Just to draw a picture of how the emails differ by type:
Invoice:
Subject: [[Store.StoreName]] - Invoice for Order [[Order.OrderNumber]]
Body: Thank you for your order [[Order.OrderNumber]]. Please pay the invoice total with the following information (Bank, Account, BIC, IBAN...)
CreditCard:
Subject: [[Store.StoreName]] - Payment confirmend
Body: Thank you for your Order [[Order.OrderNumber]]
The only problem I see is, that the type of payment can differ within one provider. Say if the customer selects a provider, he can switch between invoice and creditcard during payment. So we would have to change the subject and body tokens according to the payment type selected.
So a subject template like [[Order.Paymenttype.Subject]] Would need multiple definitions accrding to the payment type used.
Subject definition would be
"[[Store.StoreName]] - [[Order.Paymenttype.Subject]]"
If the customer pays with credit card this would be substituted with
"[[Store.StoreName]] - [[Order.Paymenttype.CreditCard.Subject]]"
This would be substituted with
"[[Store.StoreName]] - Invoice for Order [[Order.OrderNumber]]"
and finally these tokens would be replaced..
Does this make sense?
Reto