Only show "Processing" and "Completed" orders in vendor order page

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Best Multi Vendor Marketplace Plugin for WordPress Forums WCFM – Ultimate Only show "Processing" and "Completed" orders in vendor order page

Viewing 5 reply threads
  • Author
    Posts
    • #22544
      Day Wong
      Guest

      Hi Support,

      I would like to let vendor only managing orders in “Processing” and “Completed”.
      As i will be managing the payment and review the orders before releasing it to them.

    • #22546
      WCFM Forum
      Member

      Hi,

      Can you please know me one thing, which multi-vendor plugin you are using in?

      Thank You

    • #22547
      day wong
      Guest

      Hi Support,

      I am using WC market place. Thanks in advance :).

    • #22553
      WCFM Forum
      Member

      Hi,

      Thanks for the info.

      We are looking into this how this can be achievable!

      Thank you

    • #23874
      day
      Guest

      Hi support,
      any ideas? Thanks.

    • #23896
      WCFM Forum
      Member

      Hi,

      Add this code to your site for the purpose –

      function wcfm_order_custom_restrict_check( $is_restrict, $order_id, $product_id, $order ) {
      	$allowed_order_status = array( 'processing', 'completed' );
      	$the_order = wc_get_order( $order_id );
      	$order_status = $the_order->get_status();
      	if( !in_array( $order_status, $allowed_order_status ) ) $is_restrict = true;
      	return $is_restrict;
      }
      add_filter( 'wcfm_is_show_order_restrict_check', 'wcfm_order_custom_restrict_check', 10, 4 );

      Thank You

Viewing 5 reply threads
  • The topic ‘Only show "Processing" and "Completed" orders in vendor order page’ is closed to new replies.