Search the Community
Showing results for tags 'merge fields'.
-
When a customer enters a support ticket, they are asked to choose a "Related Service" so, for example, if they are having a problem with one particular hosting account, they can choose that hosting account from a drop down of all of their products & services. However, when the ticket is sent to us via email, it does not contain that related service in the email. When I view all the Available Merge Fields, "Related Service" is not one of them. Is there a merge field for Related Service? I saw $ticket_relatedservice mentioned in some forum thread, but that just shows up empty (even if a related service is selected in the ticket). Thanks! - Scott
- 2 replies
-
- merge fields
- notification email
-
(and 2 more)
Tagged with:
-
Can anyone help improve this so it works? if (!defined("WHMCS")) die("This file cannot be accessed directly"); function add_admin_name_email($merge_fields) { $table = "tbltickets"; $fields = "id,admin"; $where = array("id"=>$userid); $result = select_query($table,$fields,$where); $data = mysql_fetch_array($result); $id = $data['id']; $name = $data['admin']; $messagename = 'Support Ticket Reply'; $relid = '9'; $merge_fields = array(); $merge_fields['admin_name'] = $name; return $merge_fields; } add_hook("EmailPreSend",$relid,"add_admin_name_email");
-
Hi I wanted to have a common header theme across all the email generated but wanted to use the {emailsubject} field in the header. When I added the custom global header in the settings section and send an email the subject {emailsubject} is blank. Do merge fields only work in the email template and not the header or footers? Strangely in the Global Footer section I have a merge field {signature} in use which does seem to work. When I put {emailsubject} in the body (I.e in the template) it works. I got the field name by doing a {dump} of all the fields because the documentation on this isn't great to say the least. I wanted custom global headers and footers to avoid the painful exercise of changing _all_ the email templates. Plus the more I can keep to the standard out of the box, makes upgrading versions easier. Any ideas people?? Regards Ian
-
- global header
-
(and 2 more)
Tagged with: