Advanced Order Export for WooCommerce

Advanced Shipment Tracking for WooCommerce

Need to export tracking numbers from Advanced Shipment Tracking (AST)? Here’s exactly how.

Step 1: Add the meta keys

Open your export profile in Advanced Order Export for WooCommerce.

Go to Setup Fields. Click Add Field three times. Create these three custom fields:

  • tracking_provider
  • tracking_number
  • shipping_date

Critical: Use GREEN meta keys. Green means new custom fields. Gray means existing fields. Click the text box under the dropdowns. Type the key. Press Confirm.

Move all three to your left column (exported fields list).

Or you can look at the article.

Step 2: Add the code

Go to Misc Settings. Check Custom PHP code to modify output. Paste this entire block:

 Step 3: Test it

Save the profile. Run a test export on an order with tracking info.

Check your CSV. You should see tracking numbers, provider names, and shipping dates.

What appears in your export

OrderProductTracking NumberTracking ProviderShipping Date
#1001Blue Widget1Z999AA10123456784UPSMay 19, 2026
#1001Red Gadget9405510200881234567890USPSMay 19, 2026

Multiple tracking numbers on one order? They appear together in one cell. Comma-separated.

Which AST versions work

  • AST Free: Works. Shows global tracking per order.
  • AST Pro: Works better. Shows tracking per individual product.
  • AST with “Tracking per items” addon: Fully supported. Each product shows its own tracking.

Common mistake

Using gray meta keys. Gray means built-in WooCommerce fields. Won’t work.

Add GREEN keys only. Type them manually in the text box below the dropdown.

Also, forgetting the first code block (provider titles). That block translates carrier slugs like “ups” into “United Parcel Service”.

Empty columns?

Three things to check:

  1. Does the order have tracking info in AST?
  2. Did you add GREEN meta keys exactly as named?
  3. Is AST plugin active and working?

Enable Debug output in Misc Settings. Look for PHP errors.

Pro tip

Want cleaner output? Replace join(",", $tracking_numbers) with join(" | ", $tracking_numbers). Use pipe symbols instead of commas.

Need only unique tracking numbers? Wrap with array_unique():

$row['tracking_number'] = join(",", array_unique($tracking_numbers));

Real talk

AST stores tracking data in its own database tables. Not in standard WooCommerce meta. That’s why regular exports miss it.

This code pulls directly from AST tables. Works for both free and Pro versions.

Your fulfillment team gets complete tracking info. No more manual copy-paste from order admin screens.

Have questions? Please submit a support request. We're always happy to help!

Advanced Order Export
for WooCommerce
PRO

From $30
Buy
✓ 30-day money-back guarantee