Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Darren Peyou

    (@dpeyou)

    Hi @mycelio,

    I haven’t used this plugin myself, however just as a tip, if you turn on HTML output in the status tab (just for development!) you can check the source & this will allow us to see which CSS classes are being added to those chained products. ??

    Looking at the repository it looks like the ” chained-product” CSS class is added, so we can target that. This code snippet will hide items with that class:

    
    add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) {
    	?>
    	.packing-slip .chained-product { display: none; }
    	<?php
    }, 10, 2 );
    

    If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide:
    https://docs.wpovernight.com/general/how-to-use-filters/

    Let me know how that works!

    Thread Starter mycelio

    (@mycelio)

    That worked perfectly! Thanks so much ??
    matt

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide chained products on packing slip’ is closed to new replies.