Magento 2 - Transactional email templates
-
13-02-2021 - |
Question
How I can get Sales Representative Contact Email in a transactional email templates?
I try to add something like this but the href is not display:
<li style="background: black; color:white;">
{{trans
"If you have any questions please feel free to contact us at ' <a href="{{config path="trans_email/ident_sales/email"}}">{{config path="trans_email/ident_sales/email"}}</a> ', by phone."
}}
</li>
Maybe is something wrong in my code?
Thank you
Solution
Try replacing your code with the below snippet.
<li style="background: black; color:white;">
If you have any questions please feel free to contact us at
<a href={{ trans config path='trans_email/ident_sales/email'}}>
{{config path=trans_email/ident_sales/email}}</a> , by phone.
</li>
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange