Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #3819769
[HELP] 0 price for bundles - billing error - fix discounts
Open

Comments

  • Laurentiu started the conversation

    I use Product Bundles and Grouped Product on our shop but we have an issue with our bills.

    Our scenario:
    We have multiple bundles and on order details the bundled products are shown with 0 price. Our stock is on the bundled products, so we can't have propper bills with 0 price(our aquisition cost is higher than 0...)
    If we use grouped product in to replace product bundles, the big advantage is that we can hide product bundle, but we cannot change price/add discount per sub-bundled.

    Actually - we need an edit on any of the plugins to mix their functionalities.
    1. can make a bundle/grouped product.
    2. can hide the main bundle from the cart/order details so it cannot influence the stocks.
    3. add custom discount(percentage or fixed sum) for sub-bundled products.

    Attached files:  bundled product with problems.jpg

  •  1,355
    Dustin replied

    Hi Laurentiu,

    Please keep using WPC Product Bundles and set a discount percentage for the bundle.

    Then, add the custom code below to hide the main bundle from order details. (How to add custom code? ↗):

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

    Best regards,
    Dustin