• Resolved nouradawy

    (@nouradawy)


    I would like to hide some order states from the edit order status menu on the order page ( vendor side ) i would like to hide completed from the drop-down menu

    Image

    • This topic was modified 4 years, 1 month ago by nouradawy.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @nouradawy ,

    Dokan uses the default WooCommerce filter to bring the order status to the vendor dashboard. You can use this example code to remove order status from vendor dashboard –

    function dokan_dashboard_remove_processing_status( $statuses ){
        if( isset( $statuses['wc-refunded'] ) ){
        
            if (dokan_is_seller_dashboard() ) {
                 unset( $statuses['wc-refunded'] );
            }
            
        }
        return $statuses;
    }
    add_filter( 'wc_order_statuses', 'dokan_dashboard_remove_processing_status' );

    Thank you ??

    Thread Starter nouradawy

    (@nouradawy)

    thank you so much for your solution this is just what i wanted

    Hello @rur165 how do i remove the bulk status dropdown menu and the corresponding apply button from the order list? I tried hiding it via css, but it doesn’t seem to be working for me…

    Image

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