• Hello,

    I have a random occuring situation where a product variation (or part of product bundles) is missing from order notes, but the product is in the order (screen & email)! The bigger problem is that I cannot replicate it! I have a order where no matter what I do to that order (and plugin settings), the product will not show in the generated documents, but if I create a manual order or a similar order to the error one, the products that did not show up before are showing in all documents in tested orders!

    I have checked logs and with &debug=true, no errors being shown.

    I have a staging site with live data, that I can offer access to (privately) for testing.

    Thank you in advance!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor dwpriv

    (@dwpriv)

    What plugin are you using to create the bundles? It’s likely the plugin is hiding the variations/items in the bundles.

    Thread Starter Eduard “RwkY” Doloc

    (@rwky)

    Using this:
    https://woo.com/products/product-bundles/

    and again, this is only on some orders, not all, and some bundles, not all. If I try to re-create the order it will show the product, but in a particular order no, it skips that part of the bundle.

    Plugin Contributor dwpriv

    (@dwpriv)

    Could you share a screenshot of an order that shows the items in the bundle? Also, you mentioned that this only happens with some orders, but do you notice manually created orders have an effect on this?

    Thread Starter Eduard “RwkY” Doloc

    (@rwky)

    @dwpriv
    manually created orders do not have this issue (from what I was able to test).
    Here is a screenshot of the order that has this issue: https://i.postimg.cc/43PdVnBK/Screenshot-2023-11-28-at-19-17-20.png

    Plugin Contributor dwpriv

    (@dwpriv)

    Thanks for the information. It is strange that one product in particular doesn’t show. I wonder if the product is in the PDF but it’s hidden. You can use the guide here to view the HTML of the PDF with the product missing. You can inspect the HTML to see if the item is there but has a CSS value of “display: none”

    Thread Starter Eduard “RwkY” Doloc

    (@rwky)

    apparently there is a ‘hidden’ class added to that line only! How can I disable that? and why is it just that line?

    https://i.postimg.cc/VLw1jfQ8/Screenshot-2023-11-28-at-23-13-11.png

    Plugin Contributor dwpriv

    (@dwpriv)

    I’m not really not sure why. This is being done by the bundle plugin. If the issue persists with some other products you can ask there support why this is.

    You can try this code snippet that adds a CSS rule to unhide it:

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

    You can use this guide to add it to your site.

    Thread Starter Eduard “RwkY” Doloc

    (@rwky)

    Apparently the user who created the bundle, accidently forgot to check the bundle visibility in order details, but visibility was enabled in order, cart, etc. so this was the culprit as your plugin parses as details.

    Thank you very much for the above snippet, I have a custom template and added the css override, in the style.css file for the template, so this will not occur anymore.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘product missing completely from documents’ is closed to new replies.