Title: Export Product ID
Last modified: August 13, 2018

---

# Export Product ID

 *  Resolved [dapower](https://wordpress.org/support/users/dapower/)
 * (@dapower)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/export-product-id/)
 * Hey, can you tell me how I can export the Product ID from an order (or product
   ID’s) (data-product-id)
 * Thanks for the answer!

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/export-product-id/#post-10586655)
 * 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);
       ```
   
 *  Thread Starter [dapower](https://wordpress.org/support/users/dapower/)
 * (@dapower)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/export-product-id/#post-10586857)
 * Hi, thanks, I did, and where can I find the product ID then (in the export settings)?
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/export-product-id/#post-10586885)
 * 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.
 *  Thread Starter [dapower](https://wordpress.org/support/users/dapower/)
 * (@dapower)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/export-product-id/#post-10586927)
 * Thanks for the fast response! That did the job! 🙂
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/export-product-id/#post-10586983)
 * You’re welcome.
 * I’ll add this field in next version.
 *  Plugin Author [algol.plus](https://wordpress.org/support/users/algolplus/)
 * (@algolplus)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/export-product-id/#post-10588043)
 * 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”.
 *  Thread Starter [dapower](https://wordpress.org/support/users/dapower/)
 * (@dapower)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/export-product-id/#post-10592007)
 * Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Export Product ID’ is closed to new replies.

 * ![](https://ps.w.org/woo-order-export-lite/assets/icon-256x256.png?rev=1365554)
 * [Advanced Order Export For WooCommerce](https://wordpress.org/plugins/woo-order-export-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-order-export-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-order-export-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-order-export-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-order-export-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-order-export-lite/reviews/)

## Tags

 * [product id](https://wordpress.org/support/topic-tag/product-id/)

 * 7 replies
 * 2 participants
 * Last reply from: [dapower](https://wordpress.org/support/users/dapower/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/export-product-id/#post-10592007)
 * Status: resolved