• Resolved Goutam

    (@sarkargoutam)


    Hello
    I hope you are doing well.

    Can you tell me how added the Add “Orders” two or three Column in orders list I have added the filter
    add_filter( ‘wcfm_orders_additional_info_column_label’, function( $shipping_column_label ) {
    $shipping_column_label = ‘Shipping’;
    return $shipping_column_label;
    });
    add_filter( ‘wcfm_orders_additonal_data_hidden’, ‘__return_false’ );

    It’s working fine that but when I have added another then there is not working.

    • This topic was modified 4 years, 8 months ago by Goutam.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WC Lovers

    (@wclovers)

    Only one additional/custom column supported.

    Full code look like this –

    add_filter( 'wcfm_orders_additional_info_column_label', function( $add_label ) {
    	$add_label = 'date_de_collecte_choisie';
      return $add_label;
    });
    add_filter( 'wcfm_orders_additonal_data', function( $net_sales, $order_id ) {
      global $WCFM, $WCFMmp, $wpdb;
      
      $date_de_collecte_choisie = get_post_meta( $order_id, 'date_de_collecte_choisie', true );
    	
    	return $date_de_collecte_choisie;
    }, 50, 2 );
    add_filter( 'wcfm_orders_additonal_data_hidden', '__return_false' );
    Thread Starter Goutam

    (@sarkargoutam)

    Ok, two or more -column not be added right?

    Ok can you tell me that how to added order list column with data programmatically
    Subtotal:
    Gross Total:
    Gross Earning:
    Admin Fee Tax :
    Total Earning:
    Admin Fee:

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add “Orders” two or three Column’ is closed to new replies.