• Resolved dapower

    (@dapower)


    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

    (@algolplus)

    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

    (@dapower)

    Hi, thanks, I did, and where can I find the product ID then (in the export settings)?

    Plugin Author algol.plus

    (@algolplus)

    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

    (@dapower)

    Thanks for the fast response! That did the job! ??

    Plugin Author algol.plus

    (@algolplus)

    You’re welcome.

    I’ll add this field in next version.

    Plugin Author algol.plus

    (@algolplus)

    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

    (@dapower)

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Export Product ID’ is closed to new replies.