cancel
Showing results for 
Search instead for 
Did you mean: 

Issue inserting variables into email link for email templates.

Highlighted

Issue inserting variables into email link for email templates.

When working with this block:

 

{{trans 'If you have questions about your order, you can email us at <a href="malto:%store_email">%store_email</a>' store_email=$store_email |raw}}{{depend store_phone}} {{trans 'or call us at <a href="tel:%store_phone">%store_phone</a>' store_phone=$store_phone |raw}}{{/depend}}.

 

I want to insert {{config path="trans_email/ident_custom2/email"}} as the mail to and displayed text for the email link, but it's not working. Apparently I'm missing something with how the brackets are used in the line... I thought that I would simply do this:

 

...email us at <a href="malto:{{config path="trans_email/ident_custom2/email"}}">%store_email</a>' store_email=$store_email |raw}}...

 

but that's not working. Then I tried:

 

...email us at <a href="malto:%store_email">%store_email</a>' store_email={{config path="trans_email/ident_custom2/email"}} |raw}}...

 

but that didn't work either.  What am I missing here?