Okay
  Public Ticket #4555658
Order Status Visibility
Closed

Comments

  •  1
    Peter started the conversation

    I set up the default payment gateway to "Purchase Order" and the default status is "on hold" which did not display in the B2BKing Dashboard. I then used your suggested snippet to change the default status to "processing" and the sale then displayed in the dashboard "New Orders". My question for you, is there a way to make an "On Hold" status order show up under "New Orders" on the B2BKing dashboard?

    Thank you.

  •  2,724
    WebWizards replied

    Hi Peter,

    Thanks for reaching out. I believe you're referring to the order count here under "You have X new orders"?: https://prnt.sc/VJFmJ0lEBQf8

    By default, this mirrors WooCommerce's own behavior, which only counts "processing" orders in its dashboard counter: https://prnt.sc/pjN7FJiyCxUD

     

    But yes, we can change that and make B2BKing count "on-hold" orders there too. Please just add this snippet to your theme's functions.php or any code snippets plugin:

    add_filter('b2bking_dashboard_order_statuses', function($statuses) {
    $statuses[] = 'on-hold';
    return $statuses;
    });

     

    Let me know if you run into any issues with it or if there's anything I can help with,
    Kind regards,
    Stefan

  • John Harapa replied

    Hello,


    I have successfully made a payment of $579 for the "Startup for Life" plan, but my order is still not activated.

    Here are my details:

    - Date: April 13, 2026

    - Amount: $579

    - Payment method: M-Pesa VISA

    Please check and activate my order as soon as possible.

    Thank you.

    Attached files:  Screenshot_20260413-015633.png