Support » Plugin: PDF Invoices & Packing Slips for WooCommerce » Less whitespace between bundle products in packing slips and invoice

  • Resolved Tom

    (@tom-van-m)


    Hello team,

    I want to have less whitespace between bundle product options in packing slips and invoice. See this screenshot of how it is now. https://snipboard.io/iLHB6T.jpg
    I tried a few snippets, but it didn’t work.
    I don’t know how I can view the CSS in the browser on a pdf file.
    Last I tried was this:

    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 );
    function wpo_wcpdf_custom_styles1 ( $document_type, $document ) {
        ?>
      .woocommerce-cart-form__cart-item cart_item bundled_table_item {
        line-height: 20px!important;
        padding: 0px 0px!important;
         }	
        <?php
      }
    }

    How can I change this?

    Best, Tom

    • This topic was modified 1 year, 8 months ago by Tom.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @tom-van-m,

    Try using this code snippet instead:

    /**
     * WooCommerce PDF Invoices & Packing Slips:
     * Reduce the space between bundle items
     */
    add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) {
    	?>
    	.order-details tr.bundled-item td {
    		padding-bottom: 0;
    		padding-top: 0;
    	}
    	<?php
    }, 10, 2 );
    Thread Starter Tom

    (@tom-van-m)

    Hello Yordan,

    Thank you, this works great!

    Best, Tom

    Plugin Contributor Yordan Soares

    (@yordansoares)

    I’m glad to hear that, @tom-van-m!

    If you don’t mind and have the time, do you think you could leave us a review?

    Thanks in advance and all the best with your store!

    Thread Starter Tom

    (@tom-van-m)

    Hello Yordan,

    Do you also have an adjustment for the WooCommerce Composite product lines in the pdf’s?

    How can I inspect pdf’s myself? Is there some sort of tool to do that?

    Best, Tom

    Thread Starter Tom

    (@tom-van-m)

    Hello Yordan,

    Can you help me with this issue?

    Best,
    Tom

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @tom-van-m,

    Since you already open a new topic for this, let’s continue the conversation there 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Less whitespace between bundle products in packing slips and invoice’ is closed to new replies.