• Resolved raaki30

    (@raaki30)


    Hi

    Can I prevent vendors from completing orders and let customer to complete the order once they receive the order ?

    Thank You

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

    (@wclovers)

    Customers are already allowed to mark orders as received and hence orders mark as completed. https://wclovers.com/knowledgebase/wcfm-shipping-tracking/

    Add this lines to your site –

    add_filter( 'wcfm_is_allow_order_complete_on_receive', '__return_true' );
    add_filter( 'wcfm_allowed_order_status', function( $order_status ) {
    	if( isset( $order_status['wc-completed'] ) ) $order_status['wc-completed'] = 'Ready to Ship';
    	return $order_status;
    }, 50 );
    Thread Starter raaki30

    (@raaki30)

    @wclovers

    Is that code can banned vendors from completing orders ?

    Plugin Author WC Lovers

    (@wclovers)

    Please add this snippet to your site –

    add_filter( 'wcfm_allowed_order_status', function( $order_status ) {
    	if( isset( $order_status['wc-completed'] ) ) unset( $order_status['wc-completed'] );
    	return $order_status;
    }, 50 );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Completing Orders’ is closed to new replies.