diff --git a/includes/Processors/Order.php b/includes/Processors/Order.php index f235c3f..c3b7518 100644 --- a/includes/Processors/Order.php +++ b/includes/Processors/Order.php @@ -28,11 +28,11 @@ public static function get_total( $plugin ) { global $wpdb; switch ( $plugin ) { - case 'wcfmmarketplace': + case 'wcfmmarketplace': $total = (int) $wpdb->get_var( "SELECT COUNT( DISTINCT order_id ) FROM {$wpdb->prefix}wcfm_marketplace_orders" ); break; - case 'wcvendors': + case 'wcvendors': $total = (int) dokan()->order->all( [ 'return' => 'count', @@ -41,9 +41,9 @@ public static function get_total( $plugin ) { ); break; - default: + default: $total = 0; - } + } return $total; } @@ -59,6 +59,7 @@ public static function get_total( $plugin ) { */ public static function get_items( $plugin, $number, $offset, $paged ) { global $wpdb; + $args = array( 'order' => 'ASC', 'paged' => $paged,