Jump to content

EMail Template - WHMCS Fields


HR_UK

Recommended Posts

Good Afternoon,

 

I am trying to customize my email templates and missing some WHMCS tag/fields and hoping someone can fill in the blanks.

 

 

New Cancellation Request Template - I want to send the domain name thats linked to the cancelled hosting. I have tried putting "{$service_domain}" but it comes through as blank.

 

 

Service Suspension Notification - I want to add how much the customer owes in total for all there unpaid invoices for all services.

 

 

Any ideas?

 

Thanks in advance, Mark

Link to comment
Share on other sites

Mark,

 

in general with the email templates, you can only use the mergefields that are available to that template (or template type) - so bizarrely, while you can use {$service_domain} in the client email template for a cancellation request (as it's an available mergefield), it's not available to the admin equivalent - welcome to using WHMCS! :)

 

if a mergefield is absent in the template you want to use it in, then you can create it using an action hook - but you would need to query the database to get the correct value.

 

with regards to the service suspension template, can you use {$client_due_invoices_balance} to show the correct amount ?

Link to comment
Share on other sites

Mark,

 

in general with the email templates, you can only use the mergefields that are available to that template (or template type) - so bizarrely, while you can use {$service_domain} in the client email template for a cancellation request (as it's an available mergefield), it's not available to the admin equivalent - welcome to using WHMCS! :)

 

if a mergefield is absent in the template you want to use it in, then you can create it using an action hook - but you would need to query the database to get the correct value.

 

with regards to the service suspension template, can you use {$client_due_invoices_balance} to show the correct amount ?

 

Many Thanks Brian.

 

Do you by chance have a link (manual or forum) to the basics of putting an action hook into a template? The SQL side of things I am fine with, I just havent done any work with the WHMCS hooks before.

 

{$client_due_invoices_balance} works a charm thank you. I have included my line here incase it can help anyone else :)

 

---

Your current balance is {$client_credit}{if $client_due_invoices_balance != '£0.00GBP'} with outstanding invoices of {$client_due_invoices_balance}.{/if}

---

 

Thanks, Mark

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated