• Resolved rrodrigofranco

    (@rrodrigofranco)


    Hi there,
    I am using the dokan-lite 2.9.31 and I would like to remove the filters in the orders tab from dokan dashboard. Here:

    I want to remove these status in the dokan dashboard:

    Someone can tell me where the file of this filter part? I want to add new custom status. I tried this:

    // Add new status:
    add_filter( 'wc_order_statuses', 'new_orders_vendor_status', 12, 1);
    function new_orders_vendor_status($order_statuses){
        $order_statuses['wc-ox-progress-1'] = _x('Experiência realizada','Order status', 'text_domain' );
        $order_statuses['wc-ox-progress-2'] = _x('Repasse realizado','Order status', 'text_domain' );
        return $order_statuses;
    }
    
    //Remove some status
    
    function dokan_dashboard_remove_processing_status( $statuses ){
        if (dokan_is_seller_dashboard() ) {
                unset( $statuses['wc-refunded'] );
                unset($statuses['wc-processing']);
                unset($statuses['wc-on-hold']);
                unset($statuses['wc-on-hold']);
                unset($statuses['wc-failed']);
        }
    
        return $statuses;
    }
    add_filter( 'wc_order_statuses', 'dokan_dashboard_remove_processing_status' );

    is not working, someone can help me?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @rrodrigofranco,

    I can see you are using a very old version of the Dokan plugin. Currently, we can provide official support for the version that are only two versions older than the latest version.

    Abiding by our limited support policy, we are unable to review custom codes done from our user’s end. I am keeping this thread open so that anyone can contribute if they want.

    Thanks!

    Plugin Support Jahidul Hassan Mojumder

    (@jahidulhassan)

    Hi @rrodrigofranco,

    Due to inactivity, we are marking this topic as resolved. Feel free to open a new one if you face any further issues.

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I remove the filter from the orders and add custom status in Dokan?’ is closed to new replies.