• Resolved vidkl

    (@vidkl)


    Hello,

    I’m doing drop shipping and sometimes i have more than one tracking number for one order. Is it possible to export multiple tracking numbers? Thank you Ali

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author algol.plus

    (@algolplus)

    hi Ali

    What plugin do you use for tracking?
    thanks, Alex

    Thread Starter vidkl

    (@vidkl)

    Plugin Author algol.plus

    (@algolplus)

    Hi

    “tracking numbers” as comma separated list, correct ?

    This plugin is not free.
    Could you create new ticket here and attach “WooCommerce Shipping Tracking” plugin as zip file?

    thanks, Alex

    Plugin Author algol.plus

    (@algolplus)

    here is a code

    // for  https://codecanyon.net/item/woocommerce-shipping-tracking/11363158
    add_filter('woe_get_order_fields', function ($fields) {
    	$fields['tracking_numbers'] = array('segment'=>'cart','label'=>'Tracking Numbers','colname'=>'Tracking Numbers','value'=>'','checked'=>1);
    	return $fields;
    });
    add_filter('woe_get_order_value_tracking_numbers', function ($value, $order, $item, $product) {
    	$numbers = array();
    	// main #
    	$num = get_post_meta($order->id, '_wcst_order_trackno', true);
    	if( $num )
    		$numbers[] = $num;
    	$extra_companies = get_post_meta($order->id, '_wcst_additional_companies', true);
    	if ( is_array($extra_companies) ) {
    		foreach($extra_companies as $tracking)
    			if( !empty($tracking['_wcst_order_trackno']) )
    				$numbers[] = $tracking['_wcst_order_trackno'];
    	}
    	return join(", ", $numbers);
    }, 10, 4);
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘export tracking number’ is closed to new replies.