CRM - Email Smarty values

Discuss our WHMCS modules and everything associated with them.

CRM - Email Smarty values

Postby uteachme » 3rd May 2016, 6:21 am

Hi where can I find what smarty values {$SMARTY} are accepted in the CRM email templates?

I have tried Both WHMCS specific values and crm mass messages smarty values but nether are working when I send an individual email to a lead or a follow-up remind to a sales admin.
uteachme
 
Posts: 11
Joined: 15th April 2016, 2:19 am

Re: CRM - Email Smarty values

Postby Joanna » 4th May 2016, 9:06 am

Hi there!

Since you have inquired about the same matter via ticket, please be informed that the response is already awaiting your attention there. Should you have more questions, do not hesitate to state them all in the ticket to streamline further communication.
Joanna Byjoś
ModulesGarden Sales & Marketing Team Leader
Site Admin
ModulesGarden - Unique Approach To Custom Software Development Services & High-End Modules
User avatar
Joanna
Site Admin
 
Posts: 270
Joined: 23rd October 2014, 10:00 am
Location: Poland

Re: CRM - Email Smarty values

Postby uteachme » 5th May 2016, 2:55 am

I got a response from support. I hope this helps anyone else facing the same issue as myself.

Current available smarty variables for messages sent from CRM addon are:
[fields] => Array
(
[] => Array
(
[id] =>
[type] =>
[active] =>
[name] =>
[description] =>
[data] =>
[options] => Array
(
)
)

)
[resource] => Array
(
[id] =>
[name] =>
[status_id] =>
[email] =>
[phone] =>
[priority] =>
[type_id] =>
[admin_id] =>
[client_id] =>
[ticket_id] =>
[created_at] =>
[updated_at] =>
[deleted_at] =>
[status] =>
[client] => Array
(
[id] =>
[firstname] =>
[lastname] =>
[email] =>
)

[ticket] =>
)

[company_name] =>
[company_domain] =>
[company_logo_url] =>
[whmcs_url] =>
[whmcs_link] =>
[whmcs_admin_url] =>
[whmcs_admin_link] =>
[signature] =>
[date] =>
[time] =>

Where resource is contact detail information
You can find fieldID in Settings → Fields


So example of it in action.
I have a custom field with the ID 9 and I want the customers details to be field in.

So I do the following:
{$fields[9].data}

if you want to see all values available to you put this in your email ether via direct send or via WHMCS email template:
{$fields|@print_r}

Hope that helps.
uteachme
 
Posts: 11
Joined: 15th April 2016, 2:19 am

Re: CRM - Email Smarty values

Postby uteachme » 9th May 2016, 5:59 am

There is separate set of smarty values that you need to use in order to setup templates in "follow-up" / reminders.

Please see list below:
{$contact.id}
{$contact.name}
{$contact.status_id}
{$contact.email}
{$contact.phone}
{$contact.priority}
{$contact.type_id}
{$contact.admin_id}
{$contact.client_id}
{$contact.ticket_id}
{$contact.created_at}
{$contact.updated_at}
{$contact.deleted_at}
{$contact.status}
{$contact.client.id}
{$contact.client.uuid}
{$contact.client.firstname}
{$contact.client.lastname}
{$contact.client.companyname}
{$contact.client.email}
{$contact.client.address1}
{$contact.client.address2}
{$contact.client.city}
{$contact.client.state}
{$contact.client.postcode}
{$contact.client.country}
{$contact.client.phonenumber}
{$contact.client.password}
{$contact.client.authmodule}
{$contact.client.authdata}
{$contact.client.currency}
{$contact.client.defaultgateway}
{$contact.client.credit}
{$contact.client.taxexempt}
{$contact.client.latefeeoveride}
{$contact.client.overideduenotices}
{$contact.client.disableautocc}
{$contact.client.datecreated}
{$contact.client.notes}
{$contact.client.billingcid}
{$contact.client.securityqid}
{$contact.client.securityqans}
{$contact.client.groupid}
{$contact.client.cardtype}
{$contact.client.cardlastfour}
{$contact.client.cardnum}
{$contact.client.startdate}
{$contact.client.expdate}
{$contact.client.issuenumber}
{$contact.client.bankname}
{$contact.client.banktype}
{$contact.client.bankcode}
{$contact.client.bankacct}
{$contact.client.gatewayid}
{$contact.client.lastlogin}
{$contact.client.ip}
{$contact.client.host}
{$contact.client.status}
{$contact.client.language}
{$contact.client.pwresetkey}
{$contact.client.emailoptout}
{$contact.client.allow_sso}
{$contact.client.created_at}
{$contact.client.pwresetexpiry}
{$contact.client.ticket.id}
{$contact.client.ticket.tid}
{$contact.client.ticket.userid}
{$contact.client.ticket.name}
{$contact.client.ticket.email}
{$contact.client.ticket.title}
{$contact.fields.<fieldID>.id}
{$contact.fields.<fieldID>.type}
{$contact.fields.<fieldID>.active}
{$contact.fields.<fieldID>.name}
{$contact.fields.<fieldID>.description}
{$contact.fields.<fieldID>.data}
{$contact.fields.<fieldID>.options}


Example: {$contact.fields.[1].data}

Don't forget you can always debug what variables are available by using the following spinet to get all values avalible:
{$contact|@print_r}
uteachme
 
Posts: 11
Joined: 15th April 2016, 2:19 am


Return to WHMCS Modules

Who is online

Users browsing this forum: No registered users and 7 guests

cron