Advanced Order Export for WooCommerce

Format output

Your export works. But the output looks messy. Quotes everywhere. Wrong case. No spacing.

Let’s fix that.

Remove quotes from CSV

By default, CSV wraps everything in quotes. Some systems hate that.

Add this code to Misc Settings:

Clean CSV. No quotes. Works with old accounting software.

Force quotes around everything

Need quotes on every field? Swap to this:

Great for databases that expect uniform formatting.

Fix umlauts and accents

German customers? French? “Müller” becomes “Muller”. “Café” becomes “Cafe”.

No more weird characters breaking your CSV.

Convert everything to UPPERCASE

Warehouse systems often demand uppercase. This delivers.

Add empty row between orders

Hard to read when orders run together. Add a blank row.

Each order now has a spacer row. Works for CSV, Excel, and TAB formats.

Add gap between orders in PDF

Same idea. For PDF reports.

Adds a 5-point gap when the order number changes.

Add empty product row at top of each order

Some systems need a header row before products.

First row of each order is blank. Products start on row two.

Print date range above header in Excel

Shows date range above your column headers. No confusion about which period you exported.

Format Excel column as numbers

Excel sometimes treats prices as text. Fix that.

Change “C” to your price column. Shows two decimal places.

Sum an Excel column automatically

Adds a total row at bottom. Column B sums automatically.

Fixed width columns for legacy systems

Some old systems need exact column widths. No delimiters.

Each column has exact width. Long values get truncated. Short values get padded with spaces.

Pro tip: Edit the $len array. Match your actual column count.

Add customer section to JSON

Structures customer data as a nested object. Cleaner JSON.

Add shipping address as a nested XML section

By default, XML exports are flat. This creates a proper nested structure.

What you get: Shipping address wrapped in <CustomerShippingAddress> tags. Clean and nested.

Pro tip: Edit the tag name. Change “CustomerShippingAddress” to whatever your system expects.

Add fees, shipping, and taxes as a JSON section

Standard JSON exports miss these. This adds them.

Color PDF rows by order

Makes PDF reports much easier to read.

Important: Change $order_number_position = 0 to match your Order Number column. First column is 0. Second is 1.

Odd orders use your default style. Even orders get light gray background.

Build completely custom XML from scratch

Don’t like the default XML structure? Build your own.

Add dynamic date tags to PDF headers

Set PDF header text to “orders-{from_date}-to-{to_date}”. The code fills in the actual dates.

First, in Advanced Order Export for WooCommerce, open your PDF settings. Set “Page header text” to:

orders-de-debit-{from_date}-to-{to_date}

Then add this code:

What happens: {from_date} becomes “05/18/2026”. {to_date} becomes “05/25/2026”. No manual editing.

Pro tip: Change the date format. Swap "m/d/Y" for "Y-m-d" or "d-m-Y".

Transpose Excel output

Swap rows and columns. Perfect for pivot-style reports.

Original sheet removed. New “Transposed” sheet appears. Headers become rows. Rows become headers.

Warning: This creates a new sheet. Your original formatting won’t carry over.

Where to put these snippets

Go to Misc Settings in your export profile. Paste code at the bottom.

Each snippet works alone. Pick what you need.

Advanced Order Export for WooCommerce handles the export. These snippets reshape the output.

Common mistake

Using too many snippets at once. They can conflict. Test one. Add another. Verify both work.

Also, some snippets assume specific column positions. Always test on 1-2 orders before running full export.

Pro tip

Combine date range header with column summing. Professional reports. No manual editing needed.

Test every format change. What looks good in preview might break your import system.

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