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

Okay
  Public Ticket #3092944
Displaying the bundle on the invoice
Closed

Comments

  • Ula started the conversation

    Hello,

    I want to add 2 products to the bundle:

    1.course - tax 23% (price 40pln)
    2.ebook - tax 5%   (price 30pln)

    I know how to do this.

    But the invoice now shows 3 products:

    1. Bundles: -30 PLN
    2. Course: 40pln
    3. Ebook: 30pln

    I want the bundle discount not to be included in the invoice.
    I want the price of the products to change:

    1. Course: 20pln
    2. Ebook:  20pln

    How can I do that?

  •  767
    Janilyn replied

    Hi Ula,

    Thank you for contacting WPClever Support Forum. 

    We’ve received your ticket. So you would like to hide the bundle on the invoice and redistribute the prices of sub-products? I'm afraid that we can only help you hide the main bundle on the invoice, but it's impossible to redistribute the prices to sub-products as in your description. The prices of sub-products will remain the same as shown to customers on the cart page so that they won't be confused.

    I have assigned one of our developers to help you with hiding bundles on the invoice. He’ll be looking into your question and responding with specific instructions as soon as possible. 

    Please stay patient as we're having very heavy workloads, it might take some time for our developers to reach back.

    Best regards.

    Janilyn T. - WPClever Support Agent

  •  153
    Henry replied

    Hi

    Please add the below custom code (How to add custom code?)

    // Wpclever team support ticket-3092944
    // Hide bundles on email & invoice
    add_filter( 'woocommerce_order_get_items', function( $items ) {
        foreach ( $items as $key => $item ) {
            if ( $item->meta_exists( '_woosb_ids' ) ) {
                unset( $items[ $key ] );
            }
        }
        return $items;
    }, 10, 1 );


    Best regards,
    Henry N.