Support » Plugin: Advanced Order Export For WooCommerce » Skip Parent/Container Cart Item?

  • Resolved dividedsci

    (@dividedsci)


    Hello, I am using Woocommerce Product Bundles plugin. Let’s say I create a 2 item bundle, in the purchased items it shows as QTY 3 products purchased; the Bundle and it’s included items. When I export Total QTY of products purchased it shows 3. Is there anyway to skip the Parent/Container Cart Item completely when exporting data? I only want to export the actual items purchased, 2 only. Please let me know, thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author algol.plus

    (@algolplus)

    Hello

    Please, open section “Misc Settings”, mark “Custom PHP” and paste following code.
    Export will skip parent product.
    thanks, Alex

    add_filter('woe_skip_order_item', function($skip, $product, $item, $item_meta, $post){
    return !empty($item['_bundled_items']) ;
    },10,5);
    dividedsci

    (@dividedsci)

    That worked great, thanks!

    Plugin Author algol.plus

    (@algolplus)

    you’re welcome

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.