Advanced Order Export for WooCommerce

Add New Fields

Sometimes the user interface isn’t enough. You need custom calculations. Here’s how.

Advanced Order Export for WooCommerce lets you add fields via PHP snippets. No clunky workarounds.

Before you start

Create the field in the UI first. Go to Setup Fields and add a custom field. Use a unique meta key like all_products or current_date.

First example: combine products into one cell

Want a single column showing “Rain x 4, Lemon x 2, Other product x Qty”?

Add a custom field with meta key “all_products“.

Then put following code to section “Misc Settings”:

Save the export. Run a test. Check your CSV.

Split Multiple Shipping Methods into Separate Columns

This code gives each method its own column:

Add current date to every row

Create a field with meta key current_date. Add this snippet:

Now every order shows today’s date. Great for daily reports.

Export shipping zone names

First, create a meta key called zone_name. Then use this:

Helpful for regional tax calculations.

Add Customer Country Based on IP Address

WooCommerce already captures the shipping and billing country. But what if customers check out as guests? Or their billing country doesn’t match their actual location?

This code grabs the country from the customer’s IP address. No extra input needed.

Pull gift card data

Using Pimwick Gift Cards? Add two meta keys: card_number and amount_redeemed. Then paste:

Export Which Supplier Sold Each Product

Each product has an assigned supplier. But standard WooCommerce exports don’t show that supplier name.

This code pulls the supplier name directly into your product export rows:

Track Who Created Phone Orders

You take orders over the phone. Or your staff creates orders manually from the admin panel. But WooCommerce doesn’t track who made that order. It just shows “admin” or nothing at all.

This code captures the actual staff member’s name and role:

Add order time

Want a separate column for the hour? Add field order_time via UI. Then this code:

The field appears automatically in your export setup.

Product-level calculated field

Create qty_name as a product field. Then:

Now each product row shows “2 x Blue Hoodie”.

Export Invoice Numbers from Germanized Pro

You use Germanized Pro for legal compliance. Your store generates invoices for every order. But standard exports ignore those invoice numbers completely.

This code pulls every invoice number tied to an order. Then puts them all in one column:

Find When an Order Was Actually Processed

WooCommerce has an “order date” and “paid date”. But no “processed date”. That’s the moment someone moved the order from “Pending Payment” to “Processing.”

This code finds that exact timestamp. It reads the order notes to locate that status change.

Split Every Tax Type into Separate Columns

WooCommerce lumps all taxes together. You see one “tax total” number. But your accountant needs CGST separate from SGST. Or VAT broken down by rate.

This code explodes every tax into its own columns. Shipping taxes. Product taxes. Percentages. Base amounts. Everything.

Put Every Fee in Its Own Column

WooCommerce fees (like gift wrapping, payment charges, or rush processing) get lumped together. You see “Fee: $10.00” but no breakdown. If an order has multiple fees, they merge into one messy cell.

This code automatically detects every fee type. Then creates separate columns for each one. Tax amounts too.

Common mistake

Do not skip the UI step. The meta key must exist in Setup Fields first. The code only fills the value. It won’t create the column.

Where to put code snippets

Go to your theme’s functions.php. Or use a code snippet plugin. Never edit plugin core files. Updates will erase your work.

Test each snippet individually. One typo can break the whole export.

Advanced Order Export for WooCommerce handles basic fields out of the box. Use these snippets when you need custom logic. Start simple. Add complexity later.

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