PluginProbe
WANotifier for Forms and Actions / 3.1.1
WANotifier for Forms and Actions v3.1.1
3.1.1 3.1.0 3.0.4 2.7.10 2.7.11 2.7.12 2.7.13 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 3.0.0 3.0.1 3.0.2 3.0.3 trunk 0.1.0 0.1.1 1.0.0 1.0.1 1.0.2 All 67 releases
← All changes | includes/classes/integrations/class-notifier-wcar.php +9 -5 2.7.93.1.1 View file →
@@ -1,5 +1,9 @@
1 1 <?php
2 +if ( ! defined( 'ABSPATH' ) ) {
3 + exit;
4 +}
5 +
2 6 /**
3 7 * WooCommerce Cart Abandonment Recovery
4 8 *
5 9 * @package Wa_Notifier
@@ -20,11 +24,11 @@
20 24 */
21 25 public static function add_notification_triggers ($triggers) {
22 26 $merge_tag_types = array('WooCommerce', 'WooCommerce Cart Abandonment Recovery');
23 27 $recipient_types = array('WooCommerce Cart Abandonment Recovery');
24 - $triggers['WooCommerce Abondoned Cart Recovery'][] = array(
28 + $triggers['Cart Abandonment Recovery for WooCommerce'][] = array(
25 29 'id' => 'woocommerce_cart_abandonment_recovery',
26 - 'label' => 'Cart is abandoned',
30 + 'label' => 'Cart is abandoned (WCAR)',
27 31 'description' => 'Trigger notification when cart is abandoned as per your settings in the plugin.',
28 32 'merge_tags' => Notifier_Notification_Merge_Tags::get_merge_tags($merge_tag_types),
29 33 'recipient_fields' => Notifier_Notification_Merge_Tags::get_recipient_fields($recipient_types),
30 34 'action' => array(
@@ -44,9 +48,9 @@
44 48 public static function wcar_merge_tags($merge_tags) {
45 49 $merge_tags['WooCommerce Cart Abandonment Recovery'] = array(
46 50 array(
47 51 'id' => 'wcar_cart_products_list',
48 - 'label' => 'Adandoned cart products list',
52 + 'label' => 'Abandoned cart products list',
49 53 'preview_value' => '',
50 54 'return_type' => 'text',
51 55 'value' => function ($checkout_details) {
52 56 $value = Cartflows_Ca_Helper::get_instance()->get_comma_separated_products( $checkout_details['cart_contents'] );
@@ -54,9 +58,9 @@
54 58 }
55 59 ),
56 60 array(
57 61 'id' => 'wcar_cart_total',
58 - 'label' => 'Adandoned cart total',
62 + 'label' => 'Abandoned cart total',
59 63 'preview_value' => '',
60 64 'return_type' => 'text',
61 65 'value' => function ($checkout_details) {
62 66 $value = isset($checkout_details['cart_total']) ? $checkout_details['cart_total'] : '';
@@ -64,9 +68,9 @@
64 68 }
65 69 ),
66 70 array(
67 71 'id' => 'wcar_cart_datetime',
68 - 'label' => 'Adandoned cart datetime',
72 + 'label' => 'Abandoned cart datetime',
69 73 'preview_value' => '',
70 74 'return_type' => 'text',
71 75 'value' => function ($checkout_details) {
72 76 $value = isset($checkout_details['time']) ? $checkout_details['time'] : '';