Browse code

Add html token for annotation

Benjamin Roth authored on17/06/2020 10:46:03
Showing2 changed files
... ...
@@ -21,6 +21,7 @@ $GLOBALS['ISO_MOD']['config']['shipmenttracking'] = array
21 21
 );
22 22
 
23 23
 $GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['isotope']['iso_order_status_change']['email_text'][] = 'shipmenttracking_shipping_annotation';
24
+$GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['isotope']['iso_order_status_change']['email_text'][] = 'shipmenttracking_shipping_annotation_text';
24 25
 $GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['isotope']['iso_order_status_change']['email_text'][] = 'shipmenttracking_note';
25 26
 $GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['isotope']['iso_order_status_change']['email_text'][] = 'shipmenttracking_number';
26 27
 $GLOBALS['NOTIFICATION_CENTER']['NOTIFICATION_TYPE']['isotope']['iso_order_status_change']['email_text'][] = 'shipmenttracking_url';
... ...
@@ -16,7 +16,8 @@ class IsotopeHooks extends \Controller
16 16
 {
17 17
   public function getOrderNotificationTokens($Order, $arrTokens)
18 18
   {
19
-    $arrTokens['shipmenttracking_shipping_annotation'] = $Order->shipping_annotation;
19
+    $arrTokens['shipmenttracking_shipping_annotation'] = nl2br($Order->shipping_annotation);
20
+    $arrTokens['shipmenttracking_shipping_annotation_text'] = $Order->shipping_annotation;
20 21
 
21 22
     if (!$Order->shipping_tracking)
22 23
     {