Advanced Order Export for WooCommerce

WooCommerce Product Vendors

Running a multi-vendor marketplace? Need to know which vendor sells which product?

WooCommerce Product Vendors assigns each product to a vendor. Standard exports don’t show this.

Here’s how to export vendor name and email for every product row.

What this code exports

Adds two columns to your product export:

Each product shows its assigned vendor.

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 “Vendor email” and “Vendor name” fields
  7. Check the ones you need
  8. Save and test on an order with vendor products

What your export looks like

OrderProductQuantityVendor NameVendor Email
#1001Blue Widget2ABC Supplies[email protected]
#1001Red Gadget1XYZ Tech[email protected]
#1002Green Tool3ABC Supplies[email protected]

Each product row shows its vendor. Easy to filter or sort by vendor.

When you need this

You run a marketplace. Need to split order reports by vendor.

Your accounting team needs vendor-specific sales data.

You pay commissions per vendor. Need vendor email for payment notifications.

You fulfill orders by vendor. Need to know which vendor supplies which product.

How it works

WooCommerce Product Vendors stores vendor information as taxonomy terms. Each product gets assigned to a vendor term.

The code checks if a product has a vendor. Finds the vendor data. Pulls the name and email.

Common mistake

The code expects the official WooCommerce Product Vendors plugin (from WooCommerce.com). Not third-party marketplace plugins.

Also, products must have vendors assigned. Unassigned products return empty columns.

Empty columns?

Three possibilities:

  1. Product has no vendor assigned
  2. Vendor exists but has no email or name saved
  3. Wrong plugin version (code uses WC_Product_Vendors_Utils class)

Check your product edit screen. Verify a vendor is selected.

Pro tip

Need more vendor fields? Add vendor ID, commission rate, or phone number.

Extend the $fields array:

Then add similar filters for each new field. Pull from $vendor_data.

Real talk

Product Vendors stores vendor assignments at product level. Not at order level. That’s why standard order exports miss it.

This code checks each product individually. Pulls the vendor information. Adds it to your export.

Perfect for marketplace owners. Your vendor reports become automatic. No more manual spreadsheet merges.

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