• Resolved tom

    (@klickchoice)


    Why there is no quick edit is available for woocommerce order in admin panel . How to enable this option .
    Actually i create a custom column in the backend of WooCommerce (in Orders overview) by the following code

    add_filter( 'manage_edit-shop_order_columns', 'my_function_for_showing_type_label' );
    function my_function_for_showing_type_label($columns){
        $new_columns = (is_array($columns)) ? $columns : array();
        unset( $new_columns['order_actions'] );
    
        $new_columns['type'] = 'TYPE';
    
        $new_columns['order_actions'] = $columns['order_actions'];
        return $new_columns;
    }
    
    add_action( 'manage_shop_order_posts_custom_column', 'my_function_for_showing_type_value', 2 );
    function my_function_for_showing_type_value($column){
        global $post;
        $data = get_post_meta( $post->ID );
    
        if ( $column == 'type' ) {
            echo (isset($data['type']) ? $data['type'] : get_post_meta($post->ID, 'type', true ));
        }
    
    }

    .
    Now i need to add quick edit in order section , at least for my type section .
    https://wordpress.org/plugins/woocommerce/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter tom

    (@klickchoice)

    any update? please let me know .

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    It’s disabled – quick edit doesn’t seem relevant to order details. You cannot just change a total for example, you’d need to change the line items.

    “type” is not something I recognise in core either.

    Thread Starter tom

    (@klickchoice)

    But it is better , if you provide a code example to enable quick edit in order section .

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add quick edit in woocommerce order section’ is closed to new replies.