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 Answer 1

2

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>
5
  • @Robert Does this works for you
    – mydons
    Jan 8, 2019 at 5:15
  • Hi, thanks but where is {{trans? or for what you removed?
    – Robert
    Jan 8, 2019 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, 2019 at 14:27
  • I understand, thank you very much for your answer and for your help.
    – Robert
    Jan 9, 2019 at 10:23
  • How can you pull the sales representative's name? I tried this {{ trans config path='trans_email/ident_sales/name'}} but it didn't work. @mydons
    – thismethod
    Jan 15, 2021 at 2:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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