Advanced Order Export for WooCommerce

Shipping Multiple Addresses

Customers splitting orders across different addresses? One product to Chicago. Another to Miami.

The Shipping Multiple Addresses plugin handles this. Standard exports don’t.

Here’s how to export each product with its own shipping address.

What this code does

It rebuilds your export. Each product gets its own row. Each row shows the exact shipping address for that product.

Export columns include:

  • Product Shipping First Name
  • Product Shipping Last Name
  • Product Shipping Full Name
  • Product Shipping Company
  • Product Shipping Country
  • Product Shipping Address 1
  • Product Shipping Address 2
  • Product Shipping City
  • Product Shipping State
  • Product Shipping Postcode
  • Product Shipping Note

The complete code

Setup steps

  1. Copy the entire code block
  2. Paste into your theme’s functions.php
  3. Go to Advanced Order Export for WooCommerce
  4. Create or edit an export profile
  5. Open Setup Fields → Products
  6. You’ll see “Product Shipping” columns. Check the ones you need
  7. Save and test on an order with multiple shipping addresses

What your export looks like

Order with 2 products going to 2 addresses:

ProductQtyProduct Shipping Full NameProduct Shipping CityProduct Shipping Note
Blue Widget2John SmithChicagoLeave at door
Red Gadget1Jane DoeMiamiRing bell

Each product row shows its own address.

When you need this

You sell gifts. Customers buy multiple items. Each goes to a different person.

You run a subscription box. Different products ship to different locations.

You use the Shipping Multiple Addresses plugin. Need to verify address accuracy.

Common mistake

The code expects the _wcms_cart_key meta key. That comes from the Shipping Multiple Addresses plugin.

If that meta key doesn’t exist, the code falls back to the order’s default shipping address.

Products merging incorrectly?

The code splits products by cart_key. Each key represents one shipping package.

If multiple packages ship to the same address, they’ll appear as separate rows. That’s correct behavior.

Pro tip

Need only shipping address columns? Uncheck all other product fields. Export becomes a clean shipping manifest.

Add the “Product Shipping Note” column. Captures special instructions per destination.

Real talk

The Shipping Multiple Addresses plugin stores package data in _wcms_packages post meta. Each package has its own destination and product list.

This code parses that structure. Each product-destination combination becomes one row.

Your fulfillment team gets clear instructions. No more “which product goes where” confusion. Each address gets its own line.

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