• Resolved khenchen505

    (@khenchen505)


    Hello WC Lovers. Thank you for this great plugin. Actually i want to permanently assign one delivery boy to 3-4 Vendors, so whenever the order comes in anyone of them. the delivery boy automatically gets assigned to the order. Please assist if it’s possible would help alot. Thank You!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author WC Lovers

    (@wclovers)

    Sorry, this is not possible.

    But you may allow all vendors to access all delivery persons. Add this snippet for the purpose-

    add_filter( 'wcfm_add_new_delivery_boy_sub_menu', function( $is_allow ) {
      if( wcfm_is_vendor() ) {
    		$is_allow = false;
      }
    	return $is_allow;
    }, 50 );
    add_filter( 'wcfmd_get_delivery_boys_args', function( $delivery_boys_args ) {
      if( wcfm_is_vendor() ) {
    		if( isset( $delivery_boys_args['meta_key'] ) ) unset( $delivery_boys_args['meta_key'] );
    		if( isset( $delivery_boys_args['meta_value'] ) ) unset( $delivery_boys_args['meta_value'] );
      }
    	return $delivery_boys_args;
    }, 50 );
    add_filter( 'wcfm_is_allow_delete_delivery_boy', '__return_false' );

    Add custom code(s) to your child theme’s functions.php
    In case you do not have child theme then add those using this plugin –?https://www.ads-software.com/plugins/code-snippets/

Viewing 1 replies (of 1 total)
  • The topic ‘Assign One Delivery Boy to Multiple Vendors’ is closed to new replies.