PluginProbe
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar / 3.3.3
NotificationX – FOMO, Live Sales Notification, WooCommerce Sales Popup, GDPR, Social Proof, Announcement Banner & Floating Notification Bar v3.3.3
3.3.3 3.3.2 3.3.1 3.3.0 3.2.14 3.2.13 3.2.12 3.2.11 3.2.10 3.2.9 3.2.8 3.2.7 trunk 0.2.5.5 0.2.5.6 0.2.5.7 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 All 158 releases
← All changes | includes/Types/WooCommerceSales.php +69 -2 3.2.7 → 3.3.3 View file →
@@ -66,8 +66,10 @@
66 66 'custom_third_param' => __('Anonymous Product', 'notificationx'),
67 67 'fourth_param' => 'tag_time',
68 68 'custom_fourth_param' => __( 'Some time ago', 'notificationx' ),
69 69 ];
70 + // Theme order mirrors includes/Types/Conversions.php so the Sales
71 + // Notification and WooCommerce theme grids stay in sync.
70 72 $this->themes = [
71 73 'theme-one' => [
72 74 'source' => NOTIFICATIONX_ADMIN_URL . 'images/extensions/themes/nx-conv-theme-2.jpg',
73 75 'image_shape' => 'square',
@@ -72,8 +74,47 @@
72 74 'source' => NOTIFICATIONX_ADMIN_URL . 'images/extensions/themes/nx-conv-theme-2.jpg',
73 75 'image_shape' => 'square',
74 76 'template' => $common_fields,
75 77 ],
78 + // Figma "theme-one" — circular avatar, name row, action+product+time row,
79 + // green "Verified by NotificationX" badge (branding) + right-aligned "Buy now" link.
80 + 'conv-theme-twelve' => array(
81 + 'source' => NOTIFICATIONX_ADMIN_URL . 'images/extensions/themes/nx-conv-theme-12.png',
82 + 'image_shape' => 'circle',
83 + 'template' => $common_fields,
84 + 'defaults' => [
85 + 'link_button' => true,
86 + 'link_button_text' => __( 'Buy now', 'notificationx' ),
87 + ],
88 + ),
89 + // Figma "theme-two" — floating "Buy now" pill above top-right, rounded-square
90 + // avatar, row 1 = name + right-aligned time, row 2 = "Bought <product>",
91 + // green "Verified by NotificationX" badge.
92 + 'conv-theme-thirteen' => array(
93 + 'source' => NOTIFICATIONX_ADMIN_URL . 'images/extensions/themes/nx-conv-theme-13.png',
94 + 'image_shape' => 'rounded',
95 + // Row 2 reads "Bought <product>" per the design (the shared default
96 + // is "just purchased"), so override the action verb for this theme.
97 + 'template' => array_merge( $common_fields, [
98 + 'second_param' => __( 'Bought', 'notificationx' ),
99 + ] ),
100 + 'defaults' => [
101 + 'link_button' => true,
102 + 'link_button_text' => __( 'Buy now', 'notificationx' ),
103 + ],
104 + ),
105 + // Figma "theme-four" — left lavender image panel with a check badge, floating
106 + // "Buy now" pill above top-right, row 1 = time (top-right), row 2 = name +
107 + // action + product, green "Verified by NotificationX" badge.
108 + 'conv-theme-fifteen' => array(
109 + 'source' => NOTIFICATIONX_ADMIN_URL . 'images/extensions/themes/nx-conv-theme-15.png',
110 + 'image_shape' => 'rounded',
111 + 'template' => $common_fields,
112 + 'defaults' => [
113 + 'link_button' => true,
114 + 'link_button_text' => __( 'Buy now', 'notificationx' ),
115 + ],
116 + ),
76 117 'theme-two' => [
77 118 'source' => NOTIFICATIONX_ADMIN_URL . 'images/extensions/themes/nx-conv-theme-1.jpg',
78 119 'image_shape' => 'square',
79 120 'template' => $common_fields,
@@ -124,8 +165,30 @@
124 165 'link_button' => true,
125 166 ],
126 167 'template' => $common_fields,
127 168 ),
169 + // Figma "theme-three" — sales-count card (cart icon, "X Buyers purchased /
170 + // in last N days / Purchase now" + verified badge). Pro aggregates the count.
171 + 'conv-theme-fourteen' => array(
172 + 'is_pro' => true,
173 + 'source' => NOTIFICATIONX_ADMIN_URL . 'images/extensions/themes/nx-conv-theme-14.png',
174 + 'image_shape' => 'rounded',
175 + 'defaults' => [
176 + 'link_button' => true,
177 + 'link_button_text' => __( 'Purchase now', 'notificationx' ),
178 + ],
179 + ),
180 + // Figma "theme-five" — sales-count card, alternate layout (badge on top,
181 + // blue cart box, floating "Purchase now" pill). Same Pro count engine.
182 + 'conv-theme-sixteen' => array(
183 + 'is_pro' => true,
184 + 'source' => NOTIFICATIONX_ADMIN_URL . 'images/extensions/themes/nx-conv-theme-16.png',
185 + 'image_shape' => 'rounded',
186 + 'defaults' => [
187 + 'link_button' => true,
188 + 'link_button_text' => __( 'Purchase now', 'notificationx' ),
189 + ],
190 + ),
128 191 'conv-theme-seven' => array(
129 192 'is_pro' => true,
130 193 'source' => NOTIFICATIONX_ADMIN_URL . 'images/extensions/themes/pro/nx-conv-theme-7.png',
131 194 'image_shape' => 'rounded',
@@ -140,9 +203,8 @@
140 203 'is_pro' => true,
141 204 'source' => NOTIFICATIONX_ADMIN_URL . 'images/extensions/themes/pro/nx-conv-theme-9.png',
142 205 'image_shape' => 'rounded',
143 206 ),
144 -
145 207 ];
146 208 $this->res_themes = [
147 209 'res-theme-one' => [
148 210 'source' => NOTIFICATIONX_ADMIN_URL . 'images/extensions/themes/res_conv/nx-conv-res-theme-1.png',
@@ -216,8 +278,11 @@
216 278 'woocommerce_sales_theme-four',
217 279 'woocommerce_sales_theme-five',
218 280 'woocommerce_sales_conv-theme-ten',
219 281 'woocommerce_sales_conv-theme-eleven',
282 + 'woocommerce_sales_conv-theme-twelve',
283 + 'woocommerce_sales_conv-theme-thirteen',
284 + 'woocommerce_sales_conv-theme-fifteen',
220 285 ]
221 286 ],
222 287 'woo_template_sales_count' => [
223 288 'first_param' => GlobalFields::get_instance()->common_name_fields(),
@@ -231,8 +296,10 @@
231 296 'woocommerce_sales_conv-theme-six',
232 297 'woocommerce_sales_conv-theme-seven',
233 298 'woocommerce_sales_conv-theme-eight',
234 299 'woocommerce_sales_conv-theme-nine',
300 + 'woocommerce_sales_conv-theme-fourteen',
301 + 'woocommerce_sales_conv-theme-sixteen',
235 302 ]
236 303 ],
237 304 ];
238 305 add_filter("nx_filtered_entry_{$this->id}", array($this, 'conversion_data'), 11, 2);
@@ -300,9 +367,9 @@
300 367 if($settings['source'] == 'edd' || $settings['source'] == 'edd_inline'){
301 368 $term = 'download_category';
302 369 }
303 370 $product_categories = get_the_terms( $product_id, $term );
304 - if( ! is_wp_error( $product_categories ) ) {
371 + if( is_array( $product_categories ) ) {
305 372 foreach( $product_categories as $category ) {
306 373 $product_category_list[] = $category->slug;
307 374 }
308 375 }