• Resolved Paul

    (@paulschiretz)


    Hi There,

    I’m using WP Menu Cart Pro i also use WPC Product Bundles… Is there any filter i can use to not show the BundledProducts in my flyout cart? They are hidden in the actual cart but not in the flyout version of it.

    I’m also using your invoice plugin there i was able to filter them by using:

    /*!!!!! Hide Bundled items from invoice !!!!!!*/
    add_filter( 'wpo_wcpdf_order_items_data', 'woosb_wcpdf_order_items_data' );
    function woosb_wcpdf_order_items_data( $data_list ) {
        foreach ( $data_list as $key => $data ) {
            $bundle          = wc_get_order_item_meta( $data['item_id'], '_woosb_ids', true );
            $bundled_product = wc_get_order_item_meta( $data['item_id'], '_woosb_parent_id', true );
            if ( ! empty( $bundle ) ) {
                // hide bundle
                //unset( $data_list[ $key ] );
            }
            if ( ! empty( $bundled_product ) ) {
                // hide bundled product
                unset( $data_list[ $key ] );
            }
        }
        return $data_list;
    }

    Is there a similar solution for the flyout cart?

    Thanks a lot,
    Paul

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WPC hide Bundled Products’ is closed to new replies.