0

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

1

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>
  • @Robert Does this works for you – mydons Jan 8 at 5:15
  • Hi, thanks but where is {{trans? or for what you removed? – Robert Jan 8 at 9:49
  • I have removed {{ trans}} and placed it in the href and link portion. We need {{trans}} syntax only when we use any dynamic variables inside our text. For plain text there is no need to use trans. Kindly accept the answer if your problem is resolved. – mydons Jan 8 at 14:27
  • I understand, thank you very much for your answer and for your help. – Robert Jan 9 at 10:23

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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