wonderland Posted January 27, 2012 Share Posted January 27, 2012 Hello, I've almost finished configuring e-mail templates to suit my needs, but there is one thing I can't figure out how to do. Ideally I would just like to include invoice_description field in one of my templates. Unfortunately there isn't {$invoice_description} Merge field Closest one is {$invoice_html_contents} it displays invoice description, unfortunately a bunch of other information as well (I would particularly like to get rid of "Credit"). Is it somehow possible to have just invoice description in email templates ? Thank you ! 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted January 27, 2012 Share Posted January 27, 2012 Maybe try this: http://www.smarty.net/docsv2/en/language.modifier.regex.replace.tpl 0 Quote Link to comment Share on other sites More sharing options...
wonderland Posted February 3, 2012 Author Share Posted February 3, 2012 If I understand correctly this replaces "stuff" But I'm not sure how would it help me 0 Quote Link to comment Share on other sites More sharing options...
laszlof Posted February 3, 2012 Share Posted February 3, 2012 This code will remove "Credit" from the $invoice_html_contents. You'll need a more advanced regular expression to get exactly what you want. {$invoice_html_contents|replace:"Credit":""} 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.