From: Chuck Scott Date: Thu, 21 Jun 2018 17:56:21 +0000 (-0400) Subject: Added more "Merge Tags" and print button to merge tags reference. X-Git-Tag: v1.0.4^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=63c3069d9ddeae3a2d98ca0ffb09a1d2353dc313;p=WP-Plugins%2Fglm-member-db-registrations.git Added more "Merge Tags" and print button to merge tags reference. --- diff --git a/classes/regCartSupport.php b/classes/regCartSupport.php index a4f9d65..d6c98b1 100644 --- a/classes/regCartSupport.php +++ b/classes/regCartSupport.php @@ -1406,6 +1406,13 @@ class GlmRegCartSupport $account = $this->cart['accounts'][$this->cart['request']['account']]; $viewData = array( + 'OrgName' => $this->config['settings']['reg_org_name'], + 'OrgAddress' => $this->config['settings']['reg_org_address'], + 'OrgCity' => $this->config['settings']['reg_org_city'], + 'OrgState' => $this->config['settings']['reg_org_state'], + 'OrgZip' => $this->config['settings']['reg_org_zip'], + 'OrgPhone' => $this->config['settings']['reg_org_phone'], + 'OrgEmail' => $this->config['settings']['reg_org_from_email'], 'SubmittedByFirstName' => $account['fname'], 'SubmittedByLastName' => $account['lname'], 'SubmittedByTitle' => $account['title'], diff --git a/setup/databaseScripts/create_database_V1.0.0.sql b/setup/databaseScripts/create_database_V1.0.0.sql index 06ae576..54bc4d0 100644 --- a/setup/databaseScripts/create_database_V1.0.0.sql +++ b/setup/databaseScripts/create_database_V1.0.0.sql @@ -798,16 +798,45 @@ INSERT INTO {prefix}misc 'Text for top of Checkout Page', 'Text for top of Summary Page', 'Terms and Conditions', - 'Subject of notification to site owner of a registration', - 'Text of notification to site owner of a registration', - 'Subject of notification to instructor of registration', - 'Text for notification to instructor of registration', - 'Subject of notification to person submitting registration', - 'Text of notification to person submitting registration', - 'Subject for notification to registrant', - 'Text for notification to registrant', - 'Subject of acknowledgement to person submitting registration', - 'Text of acknowledgement to person submitting registration', - 'Subject of acknowledgement to registrant', - 'Text of acknowledgement to registrant' + 'Registration Request Submitted', + 'A registration request has just been submitted to your site. + +Sincerely, + +{$OrgName} +{$OrgAddress} +{$OrgCity}, {$OrgState} {$OrgZip} +{$OrgPhone} +{$OrgEmail} + +{$Summary} + +', + 'Registration Submitted for {$EventName}', + 'The following people were just registered for {$EventName}... + +{foreach $EventAttendees as $a}{$a.AttendeeFirstName} {$a.AttendeeLastName} +{/foreach} +', + 'Registration Request Submitted', + 'Thank you for submitting your event registration request. + +Below is a summary of your submission. Please contact us if you have any questions regarding this request. + +{$summary}', + 'Your Registration for: {$EventName}', + 'You have been registered for {$EventName} by {$SubmittedByFirstName} {$SubmittedByLastName}. + +Please let us know if you have any questions regarding your registration for this event. +', + 'Registration Request Updated', + 'THIS MESSAGE TYPE IS NOT YET FUNCTIONAL + +The status of your registration request submitted on {$DateTimeSubmitted} has been updated to "{$Status}". + +Below is a copy of the request at the time it was submitted. + +{$Summary}', + 'Your payment status for the event you are attending has been updated', + 'TTHIS MESSAGE TYPE IS NOT YET FUNCTIONAL' ); diff --git a/views/admin/settings/registrationsMisc.html b/views/admin/settings/registrationsMisc.html index d13fc12..9565fd2 100644 --- a/views/admin/settings/registrationsMisc.html +++ b/views/admin/settings/registrationsMisc.html @@ -104,7 +104,8 @@ {if $regMisc.fieldFail.summary_page_text}

{$regMisc.fieldFail.summary_page_text}

{/if} -  

E-Mail Notifications

+  

E-Mail Notifications

+  See bottom of page for list of available merge tags.  

Notification to Site Owner

Subject: @@ -258,8 +259,12 @@ + +
Print Merge Tags Quick Reference Sheet
+ +
{literal} -

Merge Tags useable in E-Mail Notifications

+

Merge Tags useable in E-Mail Notifications

The tags below may be used in the E-Mail Notifications above to include information from the submission. This is equivelent to doing "Mail Merge" with a word processor. When including these tags include the @@ -281,6 +286,13 @@ + + + + + + + @@ -332,5 +344,28 @@
Available in All E-Mail Messages
 {$OrgName}Name of organization that owns this Website and is providing registrations.
 {$OrgAddress}Organization street address
 {$OrgCity}Organization city
 {$OrgState}Organization state
 {$OrgZip}Organization ZIP/p]ostal code
 {$OrgPhone}Organization phone numer
 {$OrgEmail}Organization E-Mail address
 {$SubmittedByFirstName}First name of person submitting the request.
 {$SubmittedByLastName}Last name of person submitting the request.
 {$SubmittedByTitle}Title of person submitting the request.
 
{/literal} +

+ + {include file='admin/settings/footer.html'} \ No newline at end of file