Updating merge tags on edit page for notifications
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 27 Jun 2019 19:26:34 +0000 (15:26 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 27 Jun 2019 19:26:34 +0000 (15:26 -0400)
Adding the new ones for current due and renewal date.

classes/notifications.php
models/admin/settings/notificationTypes.php
views/admin/billing/memberBillingSubHeader.html

index f59bf92..f7841a6 100644 (file)
@@ -160,7 +160,7 @@ class GlmNotifications
                 'fax'          => $contactData['fax'],
             ),
         );
-        echo '<pre>$account_data: ' . print_r( $account_data, true ) . '</pre>';
+        // echo '<pre>$account_data: ' . print_r( $account_data, true ) . '</pre>';
         // Merge any data passed into this method
         $account_data['data'] = $data;
 
index 706fa2b..f10cc4a 100644 (file)
@@ -255,6 +255,8 @@ class GlmMembersAdmin_settings_notificationTypes extends GlmDataNotificationType
             'Billing Phone', '{$account.phone}',
             'Billing Company', '{$account.company}',
             'Billing Position', '{$account.position}',
+            'Renewal Date', '{$account.renewal_date}',
+            'Current Due Amount', '{$account.current_due}',
         );
         $mergeTagsInvoice = array(
             'Invoice Amount', '{$data.amount}',
@@ -273,7 +275,7 @@ class GlmMembersAdmin_settings_notificationTypes extends GlmDataNotificationType
             'Contact Company', '{$contact.company}',
             'Contact Position', '{$contact.position}',
             'Contact Email', '{$contact.email}',
-            'Contact Phone', '{$contact.office_phone}',
+            'Contact Office Phone', '{$contact.office_phone}',
             'Contact Mobile Phone', '{$contact.mobile_phone}',
         );
         // Compile template data
index 14bbd41..0e007af 100644 (file)
                     href="{$thisUrl}?page=glm-members-admin-menu-member&glm_action=billing&member={$memberID}&option=makepayment"
                     class="">Pay Invoices</a>
             </li>
+            {* Testing Email Notifications
             <li>
                 <a href="{$thisUrl}?page=glm-members-admin-menu-member&glm_action=billing&member={$memberID}&option=testNotice" class="">Test Notices</a>
             </li>
+            *}
         </ul>
     </div>
 </div>