Banner Logo

Be a part of the family: Connect, Receive Support,
Contribute, and Reap Abundant Rewards!

Woocommerce Order flag number doubled

WCMp Core

Resolved
Viewing 4 reply threads
  • Author
    Posts
    • #121049
      redilson
      Participant

      Hello,

      I’m testing the latest version of WCMP and Woocommerce and noticed in the Order section, the red icon order count is incorrect. I’m guessing that it’s adding in the count for Parent and Sub Orders together that are in the Processing stage.

      Thanks for taking a look.

    • #121051
      redilson
      Participant

      Another example.

    • #121078

      Hi @redilson, thanks for reporting this issue.

      We will fix this in our next update. You can track the issue from here : https://github.com/wcmarketplace/dc-woocommerce-multi-vendor/issues/831

    • #121083

      Hi @redilson, as a temporray fix, add this code in the function.php of your current active theme :

      //Please add this code in the function.php of the current active theme :
      add_filter( 'woocommerce_menu_order_count', 'woocommerce_admin_end_order_count', 10, 1);
      function woocommerce_admin_end_order_count( $processing_orders ){
         $args =  array(
         'post_status'      => array('wc-processing'),
         );
         $sub_orders = wcmp_get_orders($args, 'ids', true);
      
         $processing_orders = count(wc_get_orders( array(
         'status' => 'processing',
         'return' => 'ids',
         'limit' => -1,
         'post__not_in' => $sub_orders,
      
      )));
      return $processing_orders;
      }
      Copy
    • #124379

      Hi, we haven’t heard back from you for a while. We presume this issue has been fixed.

      Please open another thread if you need any further help

Viewing 4 reply threads

The topic ‘Woocommerce Order flag number doubled’ is closed to new replies.