Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Hide pending and on-hold orders from vendors
- This topic has 4 replies, 2 voices, and was last updated 5 years, 7 months ago by WCFM Forum.
Viewing 4 reply threads
- AuthorPosts
- April 14, 2019 at 9:26 pm #57730d-n-13Participant
Hello,
I want to hide orders with pending and on-hold from vendors so they don’t complete unpaid orders by mistake I want to only show processing/completed/failed/shipped.
Thank You
- April 15, 2019 at 6:27 am #57821WCFM ForumMember
Hi,
Please use this code snippet –
add_filter( 'wcfm_allowed_order_status', function( $order_status ) { if( isset( $order_status['wc-pending'] ) ) unset( $order_status['wc-pending'] ); return $order_status; }, 50 ); add_filter( 'wcfmp_order_list_allowed_status', function( $allowed_status ) { $allowed_status = "'pending','completed','processing','failed'"; return $allowed_status; }); add_filter( 'wcfmmp_is_allow_order_status_filter', '__return_true' );
Thank You
- April 15, 2019 at 1:23 pm #57900d-n-13Participant
hi,
On-Hold still showing to Vendors.
- April 25, 2019 at 5:00 pm #59444d-n-13Participant
is it possible to hide on hold as well ?
Thank you
- April 29, 2019 at 5:57 am #59811WCFM ForumMember
Sure, use this code –
add_filter( 'wcfm_allowed_order_status', function( $order_status ) { if( isset( $order_status['wc-on-hold'] ) ) unset( $order_status['wc-on-hold'] ); return $order_status; }, 50 );
Thank You
- AuthorPosts
Viewing 4 reply threads
- The topic ‘Hide pending and on-hold orders from vendors’ is closed to new replies.