- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2020
12:34 PM
06-02-2020
12:34 PM
Different Text on email transactional
Hello,
it is possible to add an if or depend by type of payment method in transactional emails?
So change the text?
Labels:
4 REPLIES 4
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2020
12:07 AM
06-03-2020
12:07 AM
Re: Different Text on email transactional
Hi @Perla Simeone
Please add following code within email template:
{{if order.getPayment().getMethodInstance().getCode() == 'banktransfer'}} Some Text! {{/if}}
You can also refer below URL for add conditions within email template:
https://mage2.pro/t/topic/1392
If issue resolved, Please click on 'Kudos' & Accept as Solution!
Problem solved? Click Accept as Solution!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2020
12:03 PM
06-03-2020
12:03 PM
Re: Different Text on email transactional
Hi @Bhanu Periwal ,
it worked but calling a phtml inside the template email.
Do you know what is the code to do the same but with the shipping method?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2020
09:13 PM
06-03-2020
09:13 PM
Re: Different Text on email transactional
Hi @Perla Simeone
Kindly refer below link, it will help you to resolve issue:
https://magento.stackexchange.com/questions/160382/magento-2-send-different-email-templates-for-ship...
If issue resolve, Please click on 'Kudos' & Accept as Solution!
Problem solved? Click Accept as Solution!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2020
07:20 AM
06-04-2020
07:20 AM