| @@ -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/', |