unrealindeed Posted March 14, 2022 Share Posted March 14, 2022 Hi All, Our billing team would find it very helpful to have some Product/Service Related merge fields available in some invoice templates (Invoice created, First, Second & Third invoice overdue notice). After some testing and head scratching I realised some merge fields are not available in certain templates. Product/Service Related merge fields are not available in Invoice templates, is there any possible way to include say $service_id in an invoice template? Thank you in advance for any help, 0 Quote Link to comment Share on other sites More sharing options...
unrealindeed Posted March 22, 2022 Author Share Posted March 22, 2022 Does anyone know if it's possible to display merge fields from Product/Service Messages in an Invoice Message email template? We'd like to display {$service_id} on Invoice messages and reminders for our customers. Thank you 0 Quote Link to comment Share on other sites More sharing options...
unrealindeed Posted April 5, 2022 Author Share Posted April 5, 2022 UPDATE: Finally... There appears to be a $relid data item available within the $invoice_items array that can be used to display service ID with 'Invoice' related email templates in WHMCS, since {$service_id} tag is only available in 'Product/Service' email templates. Code below if anyone needs it, though I am still unsure how to print a complete list of items available within the $invoice_items array. I tried adding {debug} to an email template and sending the message but nothing displayed in the email. {if $invoice_items} {foreach from=$invoice_items item=data} Service Subscription ID: {$data.relid} {/foreach} {/if} Hope this helps somebody! 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.