Saulo Magno Posted September 3, 2018 Share Posted September 3, 2018 Good day I search in forums, but there is some old and complicated topics... 😞 I just want to add product description in e-mail templates, but try adding {$service_product_description} and no works... I really thonk thats no hard feature, but seems I need something more then simple insert a field tag In pdf invoice, I guess is no needed, just in email template Can please somebody give a hand with this? WHMCS 7.5.1 - Six Template - Universal slider form  Many thanks in advance for help 🙂 0 Quote Link to comment Share on other sites More sharing options...
Saulo Magno Posted September 14, 2018 Author Share Posted September 14, 2018 Guys Please, I really need help with this... Is this feature possible? 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted September 15, 2018 Share Posted September 15, 2018 Sadly it's a bit complicated. You have to create an Action Hook (EmailPreSend) to detect the specific Email Templates where you need to add descriptions. Once done, run a query to retrieve descriptions and return them in a custom array. 0 Quote Link to comment Share on other sites More sharing options...
webbymaster Posted September 20 Share Posted September 20 On 9/3/2018 at 9:32 PM, Saulo Magno said: Good day I search in forums, but there is some old and complicated topics... 😞 I just want to add product description in e-mail templates, but try adding {$service_product_description} and no works... I really thonk thats no hard feature, but seems I need something more then simple insert a field tag In pdf invoice, I guess is no needed, just in email template Can please somebody give a hand with this? WHMCS 7.5.1 - Six Template - Universal slider form  Many thanks in advance for help 🙂 Bro, did you succeed? 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted September 20 Share Posted September 20 It depends what type of email you want to add it to. If it's a product/service message, you can use {$service_product_description}. If it's for something else (like Invoice Created), you would have to use the EmailPreSend hook like @Kian mentioned. You'd have to write the logic that finds the invoice items, loops over each of them, find their respective service ID, find the related package and then grab the description. 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.