hi
please, add following code via plugin “code snippets” OR directly to functions.php
thanks, Alex
// add new product field
add_filter('woe_get_order_product_fields', function ($fields,$format) {
$fields['product_id'] = array( 'label' => 'Product Id', 'colname' => 'Product Id', 'checked' => 1 );
return $fields;
}, 10, 2);
add_filter('woe_get_order_product_value_product_id', function ($value,$order, $item, $product,$item_meta) {
return $item['product_id'];
}, 10, 5);
Hi, thanks, I did, and where can I find the product ID then (in the export settings)?
You should open section “Set up fields”, scroll down to field “Products”, click button “Set up fields” – you will see popup , just scroll to bottom.
Thanks for the fast response! That did the job! 🙂
You’re welcome.
I’ll add this field in next version.
I’m SORRY!
please, remove provided code and use following way.
You should open section “Set up fields”, scroll down to field “Products”, click button “Set up fields”, select field “_product_id” in 2nd dropdown, type column title and press button “Add field”.