Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Marketplace (WooCommerce Multivendor Marketplace) › Order and booking status capability
- This topic has 4 replies, 2 voices, and was last updated 6 years ago by Vinz.
- AuthorPosts
- October 9, 2018 at 2:25 pm #33608VinzParticipant
Hi WC LOVERS,
I would like to limit order and booking status options choices to Vendors (but not to admin)
I just would like to give him only those choices :> for orders :
– Canceled
– Complete> For booking :
– Confirmed
– CanceledIs it possible to implement this?
Thanks !!
- October 9, 2018 at 4:05 pm #33619WCFM ForumMember
Hi,
Kindly add this code for Order status restriction –
function wcfmmp_allowed_0910_order_status( $order_status ) { if( function_exists( 'wcfm_is_vendor' ) && wcfm_is_vendor() ) { $order_status = array( 'wc-completed' => 'Completed', 'wc-cancelled' => 'Cancelled', ); } return $order_status; } add_filter( 'wcfm_allowed_order_status', 'wcfmmp_allowed_0910_order_status', 500 );
I will give you code for booking status as well.
Thank You
- October 10, 2018 at 7:44 am #33678VinzParticipant
I will try it!
Ok, I’m waiting for your booking code 🙂Many thanks!
- October 31, 2018 at 4:22 am #35350WCFM ForumMember
Hi,
I am really sorry for such delay.
Kindly use this code for restricting Booking Status –
function wcfm_allowed_3110_booking_status( $booking_status ) { if( function_exists( 'wcfm_is_vendor' ) && wcfm_is_vendor() ) { $booking_status = array( 'confirmed' => 'Confirmed', 'cancelled' => 'Cancelled', ); } return $booking_status; } add_filter( 'wcfm_allowed_booking_status', 'wcfm_allowed_3110_booking_status', 500 );
Please be sure you have WCFM 5.1.7
Thank You
- October 31, 2018 at 11:23 am #35399VinzParticipant
Thanks, it works!
- AuthorPosts
- The topic ‘Order and booking status capability’ is closed to new replies.