• Hi there,

    I have created serveral bundled products on my webshop. It works good, but I have one main issue. When people order my bundled product it shows all the products in the package as well as the package itself.

    The problem is that the main products (bundled package) also shows up as a product it self. So when people order the bundle package it shows all the products as well as the bundlepack as an item. This creating a huge problem and confusion for my storage because they are unable to scan a package this product.

    Is there anyway to remove the main bundled product so it does not show in the order line and only the products that is included?

    I have tried to remove the SKU from the bundled package and changing all the parameters.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @kalinkoland,

    If you want to remove product bundle name with price from orders and display only bundled items, please add below snippet (How to add custom code?):

    add_filter( 'woocommerce_order_get_items', 'woosb_exclude_bundles_from_order', 10, 1 );
    function woosb_exclude_bundles_from_order( $items ) {
            foreach ( $items as $key => $item ) {
                    if ( $item->meta_exists( '_woosb_ids' ) ) {
                            unset( $items[ $key ] );
                    }
            }
    
            return $items;
    }
    

    Regards,

    Thread Starter kalinkoland

    (@kalinkoland)

    Thank you it worked 🙂

    Now I have a problem with the subtotal price. Either it shows zero or the full amount. Not the discounted price package price?

    The order goes in with the right amount but the subtotal is wrong and also the invoice is wrong

    Plugin Author WPClever

    (@wpclever)

    Hi @kalinkoland

    Yes, it shows zero if you use a fixed price for the bundle, or show the full price if you use the auto-calculated price for the bundle.

    If you want to set a discount for a bundle, please use the auto-calculated price and a percentage discount https://www.screencast.com/t/Q802A06M6

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

The topic ‘Remove main product’ is closed to new replies.