• Resolved dlindstr0m

    (@dlindstr0m)


    We are having an issue with the WooCommerce Product Bundle plugin, where bundled products are not showing up on invoices. The parent product shows, but the individual line items for the products in the bundle do not show. We have tried turning on/off “Order Details” under Advanced Settings on the Product Bundle, but the missing items still do not show. Any insight as to what might be causing this would be appreciated. Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Contributor alexmigf

    (@alexmigf)

    Hello @dlindstr0m

    It should work. Can you show me the visibility settings of the bundled products please?

    Let me know.

    Thread Starter dlindstr0m

    (@dlindstr0m)

    Sure. Here is a screenshot of the visibility settings:

    Screenshot

    Plugin Contributor alexmigf

    (@alexmigf)

    Hello @dlindstr0m

    That bundled products are visible in the catalog?

    Thread Starter dlindstr0m

    (@dlindstr0m)

    @alexmigf

    Yes, correct. The Product Bundle and all individual products that are a part of the bundle are set to “visible” in the catalog.

    Plugin Contributor alexmigf

    (@alexmigf)

    Hello @dlindstr0m

    Could you please try adding this to your theme functions.php file:

    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 );
    function wpo_wcpdf_custom_styles ( $document_type, $document ) {
        ?>
        .order-details tr.bundled-item.hidden {
    		display: table-row;
    	}
        <?php
    }

    If you never worked with actions/filters please read this documentation page: How to use filters

    Let me know.

    Thread Starter dlindstr0m

    (@dlindstr0m)

    @alexmigf

    Just tried this code but the invoices are now showing a blank page. When I remove the code the invoice shows up again.

    Plugin Contributor Ewout

    (@pomegranate)

    @dlindstr0m
    Two things to check:
    1) the bundle visibility settings do not automatically apply to existing orders, did you try placing a new test order after making those changes?

    2) if this code snippet crashes your site, you probably already have a snippet for custom styles with the same name (wpo_wcpdf_custom_styles). Can you double check this? If you can’t find any other functions with that name, can you add &debug=true to the URL of the PDF to see if that reveals any errors?

    Let us know what you find!

    Thread Starter dlindstr0m

    (@dlindstr0m)

    @pomegranate

    I discovered the issue was actually that there was some custom styles being applied to the bundled items that was hiding them. ?? Thanks for your help!

    Plugin Contributor alexmigf

    (@alexmigf)

    Glad you find it @dlindstr0m ??

    Have a nice day!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Product Bundles Issue’ is closed to new replies.