• Resolved Sarankumar

    (@sarankumar)


    function somename_export_colunns( $export_columns ) {
    
    $export_columns['city'] = 'City';
    
    error_log(print_r($export_columns,true));
    
    return $export_columns;
    
    }
    
    function somename_export_item( $export_item, $item ) {
    
    $export_item['city'] = 'Test';
    
    error_log(print_r($export_item,true));
    
    return $export_item;
    
    }
    
    add_filter( 'woocommerce_report_orders_export_columns', 'somename_export_colunns');
    
    add_filter( 'woocommerce_report_orders_prepare_export_item', 'somename_export_item', 10, 2);

    iam tring to adding custom column in analytics->Orders -> download csv file. But above filter is not woking.

Viewing 1 replies (of 1 total)
  • Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi there @sarankumar,

    Thank you for reaching out.

    I understand you are trying to add custom columns to analytics reports and CSV downloads. Is that correct?

    In that case, we do have a detailed guide on how to achieve this here.

    I hope this helps, please let us know if you need further assistance.

Viewing 1 replies (of 1 total)
  • The topic ‘adding custom column in analytics->Orders -> download csv’ is closed to new replies.