Skip to content

Commit

Permalink
Merge branch 'develop' into feat/update/wcvendors-to-dokan
Browse files Browse the repository at this point in the history
  • Loading branch information
Aunshon authored Nov 30, 2023
2 parents b79b177 + b32e964 commit 2ba53db
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions includes/Processors/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -41,9 +41,9 @@ public static function get_total( $plugin ) {
);
break;

default:
default:
$total = 0;
}
}

return $total;
}
Expand All @@ -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,
Expand Down

0 comments on commit 2ba53db

Please sign in to comment.