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/Extensions/SureCart/SureCart.php +3 -2 3.2.7 → 3.3.3 View file →
@@ -319,10 +319,10 @@
319 319 public function get_orders( $post = array() ) {
320 320 if( empty( $post ) ) {
321 321 return;
322 322 }
323 - $dateFrom = !empty( $post['display_from'] ) ? date('Y-m-d',strtotime('-'.$post['display_from'].' days',time())) : '';
324 - $dateTo = date('Y-m-d',strtotime('1 days',time()));
323 + $dateFrom = !empty( $post['display_from'] ) ? gmdate('Y-m-d',strtotime('-'.$post['display_from'].' days',time())) : '';
324 + $dateTo = gmdate('Y-m-d',strtotime('1 days',time()));
325 325 $amount = !empty( $post['display_last'] ) ? $post['display_last'] : 10;
326 326 $get_orders = \SureCart\Models\Order::with( [ 'checkout', 'checkout.charge', 'checkout.customer','checkout.line_items','line_item.price','price.product','checkout.shipping_address','checkout.billing_address','product.collection' ] )->paginate( [ 'per_page' => $amount ] );
327 327 $orders = [];
328 328 if( count( $get_orders->data ) > 0 ) {
@@ -463,8 +463,9 @@
463 463 return $messages;
464 464 }
465 465
466 466 public function doc(){
467 + /* translators: %1$s: SureCart WordPress plugin installed & configured link URL, %2$s: documentation link URL, %3$s: 👉 NotificationX Integration with SureCart link URL */
467 468 return sprintf(__('<p>Make sure that you have the <a target="_blank" href="%1$s">SureCart WordPress plugin installed & configured</a> to use its campaign and selling data. For detailed guidelines, check out the step-by-step <a target="_blank" href="%2$s">documentation</a>.</p>
468 469 <a target="_blank" href="%3$s">👉 NotificationX Integration with SureCart</a>', 'notificationx'),
469 470 'https://wordpress.org/plugins/surecart/',
470 471 'https://notificationx.com/docs/how-to-display-surecart-sales-alerts-using-notificationx/',