• I’m experiencing an issue that just cropped up yesterday, September 10, 2020. My client received an order with a large number of line items. For some reason, all the items were pushed the 2nd page of the packing slip. I was able to work around this by changing the Packing Slip settings to NOT display the phone number. Doing so then moved all the items to the first page. Obviously, this isn’t a permanent work around. Please review this video which exhibits the issue: https://vimeo.com/456923114/01bee96682

    I went back to another order which had a lot of line items as well to see if the same issue would occur, but as you’ll see in the video, it does not.

    Any help you can offer will be appreciated.

    The page I need help with: [log in to see the link]

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

    (@alexmigf)

    Hello @skeggsjp

    Can you please try to add the code snippet below 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 ) {
        ?>
        table.order-details { margin-bottom: 0mm; }
        <?php
    }

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

    Let me know.

    Thread Starter skeggsjp

    (@skeggsjp)

    Thanks for the code snippet. I put this in place, but the issue is still not fixed. Here’s a quick video link: https://vimeo.com/456981056/7b83e680a9

    Plugin Contributor alexmigf

    (@alexmigf)

    Hello @skeggsjp

    Did you made any CSS customization involving spacing/size?

    Thread Starter skeggsjp

    (@skeggsjp)

    Negative. No CSS Customizations related to spacing or size.

    Plugin Contributor alexmigf

    (@alexmigf)

    Hi @skeggsjp

    Sorry for the late reply!

    In your videos i can see that you made some CSS customizations, can you paste them here?

    • This reply was modified 4 years, 6 months ago by alexmigf.
    Thread Starter skeggsjp

    (@skeggsjp)

    You bet. This is the only CSS that has been edited:

    Line 170 – 174

    .order-details thead th {
    	color: black;
    	background-color: white;
    	border-color: gray;
    }

    Client prefers not to use extra ink with a black heading bg.

    Thanks again for your help on this.

    Plugin Contributor alexmigf

    (@alexmigf)

    Hi @skeggsjp

    I believe that’s a bug in the DOMPDF library (external library used by our plugin) that occurs in specific conditions, in this case with the item line quantity and his size, plus the available space. It’s similar to this one, but in your case the margin-bottom didn’t fix the problem, and that’s strange.

    I believe it’s a rare situation that happen in that document, shouldn’t affect other documents.

    Thread Starter skeggsjp

    (@skeggsjp)

    Thank for the follow up. I too felt like this was very much an isolated incident based on so many others behaving well.

    I will report this to my client and we will let you know if the issue arises again.

    Plugin Contributor alexmigf

    (@alexmigf)

    Hi @skeggsjp

    I appreciate your understanding, and let us know if that happens again.

    Have a nice day!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Items pushed to 2nd page’ is closed to new replies.