• Resolved mehdirhardisse

    (@mehdirhardisse)


    Hello, i am using Advanced Order Export For WooCommerce for exporting orders with some info, i would like to export the tracking number as well, how can i do please? Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Zorem

    (@zorem)

    Hi, at this point, we support importing tracking numbers, can you explain the business need for exporting tracking numbers?

    Thread Starter mehdirhardisse

    (@mehdirhardisse)

    Hello i reached to export them by using this code in the Advanced Export :

    add_filter( “woe_fetch_order”, function( $row, $order ) {
    if( class_exists(“WC_Advanced_Shipment_Tracking_Actions”) ) {
    $st = WC_Advanced_Shipment_Tracking_Actions::get_instance();
    $tracking_items = $st->get_tracking_items( $order->get_id() );
    if( $tracking_items ) {
    $row[‘tracking_number’] = array();
    $row[‘tracking_provider’] = array();
    foreach($tracking_items as $item) {
    $row[‘tracking_number’][] = $item[‘tracking_number’];
    $row[‘tracking_provider’][] = $item[‘tracking_provider’];
    }
    $row[‘tracking_number’] = join(“,”, $row[‘tracking_number’]);
    $row[‘tracking_provider’] = join(“,”, $row[‘tracking_provider’]);
    }
    }
    return $row;
    },10,2);

    Thank you.

    Plugin Author Zorem

    (@zorem)

    Ok let me know if you need any further assistance.

    Hello, I also need to export the tracking no. As I have migrated my site. The orders were exported without shipping no. Now I need to export the tracking numbers somehow. @mehdirhardisse how did you accomplish this?
    Thank You.

    Plugin Author Zorem

    (@zorem)

    Hi, we are working on add-on that will add compatibility with WC export and other export plugins but I do not have time estimate to when it will be available.

    Meanwhile try to export the shipment tracking meta fields to CSV and import the CSV to the new site, it might work

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Export Tracking number in XLSX’ is closed to new replies.