Advanced Order Export for WooCommerce

Add Product Rows

Standard exports give you one row per product. Sometimes that’s not enough.

You might need to explode quantities into separate rows. Or treat shipping costs as products. Maybe add tax rows to your PDF.

Here’s how.

Split each quantity into its own row

By default, buying 5 chairs gives one row with qty=5. Your warehouse system might need 5 separate rows.

This code fixes that.

What it does: Takes a product with qty=5. Creates 5 identical rows. Each row shows qty=1.

When you need it: Barcode scanning. Warehouse picking lists. Commission calculations per unit.

Warning: Your export file gets much larger. 100 orders with 10 items each becomes 1000 rows. Test first.

Export shipping costs as product rows

Shipping isn’t a product. But your accounting system might want it in the product table.

What you get: Shipping becomes a product line. SKU shows the shipping method ID. Price shows shipping cost.

Real example: Order has “Express Shipping – 15.ExportshowsproductrownamedExpressShippingwithprice15″.ExportshowsproductrownamedExpressShippingwithprice15.

Export fees as product rows

Gift wrapping. Handling fees. Payment charges. Turn them into product lines.

Pro tip: This captures fee amounts even if your export normally ignores fees.

Export tax rows as products

Need to show tax breakdowns as separate lines?

Result: Each tax type becomes a product row. SKU shows tax code. Price shows tax amount.

Add summary row to PDF reports

This one’s different. It adds a total row at the bottom of your PDF.

Customize it: Change $summary_cols = array(9,10,11) to match your column numbers. Column 0 is the first column.

Styling: Yellow background. Black text. Size 14. Edit RGB values for different colors.

Where to put these snippets

Add to your theme’s functions.php. Use one snippet at a time. They can conflict.

Advanced Order Export for WooCommerce handles the base export. These snippets modify how product rows appear.

Common mistake

Running multiple row-modifying snippets together. They stack. You might get shipping rows AND duplicated quantities AND tax rows.

Test each snippet alone. Add them one by one.

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