Create Custom Fields
How to add a product attribute for export
Follow these steps:
- open section “Set up fields”
- open section “Product items”(right column)
- click button “Add field”
- select field in 1st dropdown
- type column title
- press button “Confirm”
- and drag new field to export
How to name columns as products
1st solution.
Use following code to show qty/costs
But this code adds ALL products in RANDOM order.
2nd solution.
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 order, look at items and remember meta name.
Visit “WooCommerce” – “Export Orders”, open section “Set up fields”, open section “Products” (at right), click button “Add field” and select SAME name in second dropdown.
How do I set custom product parameters?
Open section “Setup fields”, open section “Product Items” (at right), click button “Add field” and select your custom item in the dropdown.