• Resolved ivanll

    (@ivanll)


    Our store has custom order status. However, these status don’t show up under the “Submit delivery to Posmates on this order status” setting. Is there a way to show custom statuses here?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Agli Pan?i

    (@aglipanci)

    @ivanll currently it doesn’t support that but give me a couple of days to check if I can add that.

    Plugin Author Agli Pan?i

    (@aglipanci)

    @ivanll I have released the update that includes the support for Custom Order Statuses.

    Please make sure you have added the custom statuses like this:

    
    // Register new status
    function register_custom_status_order_status() {
        register_post_status( 'wc-custom-status', array(
            'label'                     => 'Custom Status',
            'public'                    => true,
            'exclude_from_search'       => false,
            'show_in_admin_all_list'    => true,
            'show_in_admin_status_list' => true,
            'label_count'               => _n_noop( 'Custom Status (%s)', 'Custom Status (%s)' )
        ) );
    }
    add_action( 'init', 'register_custom_status_order_status' );
    
    
    // Register new status
    // Add to list of WC Order statuses
    function add_custom_status_to_order_statuses( $order_statuses ) {
    
        $order_statuses['wc-custom-status'] = 'Custom Status';
        return $order_statuses;
    }
    add_filter( 'wc_order_statuses', 'add_custom_status_to_order_statuses' );
    
    Thread Starter ivanll

    (@ivanll)

    Thanks for the quick response and very helpful support! Super awesome! Thank you

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Statuses’ is closed to new replies.