Banner Logo

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

hide order status

MultivendorX

Resolved
Viewing 2 reply threads
  • Author
    Posts
    • #146528
      Klaus Thomas Russ
      Participant

      Dear all,

      I want to hide the order status ‘on hold’, ‘failed’ and ‘draft’ as shown in the image.

      Is there a possibility to hide those order status adding a code in the functions.php or via CSS?

      Thank you for your support!

    • #146579
      promita
      Moderator

      Hi Klaus Thomas Russ, In order to hide those order status add this code in functions.php of your child theme :

      
      //hide order status from vendor dashboard
      add_filter('mvx_vendor_order_statuses','hide_status');
      function hide_status($status) {
      	unset($status['wc-on-hold']); //remove on-hold
      	unset($status['wc-failed']); //remove failed
      	unset($status['wc-checkout-draft']); //remove draft
      	return $status;
      }
      
      Copy

      Let us know if you have any further query.

    • #149840
      WCMp Admin
      Keymaster

      We haven’t heard back from you, so we presume this issue has been fixed.
      So we are closing this one.
      If you need any further help, do open another thread.

Viewing 2 reply threads

The topic ‘hide order status’ is closed to new replies.