Create Custom Fields
Here are answers to common questions about custom fields in Advanced Order Export for WooCommerce.
How to add a product attribute for export
Follow these steps:
- Open Set up fields section
- Open Product items section (right column)
- Click Add field button
- Select your field from the first dropdown
- Type column title
- Click Confirm button
- Drag new field to left column (exported fields)
How to name columns as products
First solution – Quick but random order
Use following code to show qty/costs
But this code adds ALL products in RANDOM order.
Second solution – Full control
If you have to export only some products (or want to show new columns at any position) use this way:
1. Open section “Setup fields” and use button “Add Field” to add each product.
Don’t forget to drag added field to left column!
2. Open section “Misc Settings”, mark “Custom PHP code” and add following code:
|
1 2 3 4 5 6 7 8 |
add_filter( "woe_fetch_order", function($row, $order ){ foreach($order->get_items() as $item) { $key = $item['name']; if( isset($row[$key])) $row[$key] = $item['qty']; } return $row; },10,2); |
How can I add a Gravity Forms field to export?
- Open any order. Look at order items. Find and remember the meta name.
- Go to WooCommerce → Export Orders
- Open Set up fields section
- Open Products section (right column)
- Click Add field button
- Select the SAME meta name from the second dropdown
- Confirm and drag to left column
How do I set custom product parameters?
Have your own custom product fields? Export them.
- Confirm and drag to left column
- Open Setup fields section
- Open Product Items section (right column)
- Click Add field button
- Select your custom item from the dropdown
Pro Tip
Always preview after adding custom fields. Verify data appears correctly.
Test with one order first. Then run full export.
Common Mistake
Forgetting to drag new fields to left column. They won’t appear in export.
Also, custom field names must match exactly. Check spelling in order details.

