Title: Overlapping Subtotal
Last modified: February 16, 2021

---

# Overlapping Subtotal

 *  [Daniel](https://wordpress.org/support/users/silvercell/)
 * (@silvercell)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/overlapping-subtotal/)
 * Hi,
    so I did go through all of the read first steps and a view other posts here:
   1. status everything is green 2. simple template, never touched it 3. memory 
   limit is 512m 4. no blank screen 5. no error
 * I have this overlapping problem: [https://ibb.co/XVWfkpx](https://ibb.co/XVWfkpx)
   
   The weird thing is, I tried it via html5 output and there it works fine… Any 
   idea on how to fix this? best regards, Daniel

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/overlapping-subtotal/#post-14057227)
 * [@silvercell](https://wordpress.org/support/users/silvercell/) you mention you
   didn’t touch the simple template, but it does look like the column widths of 
   the quantity and total column have been adjusted. Can you double check this? 
   If it’s really the simple template, is it possible that you are using a code 
   snippet to alter CSS for the column widths? Are you using the latest version 
   of the plugin (2.8.2)?
 *  Thread Starter [Daniel](https://wordpress.org/support/users/silvercell/)
 * (@silvercell)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/overlapping-subtotal/#post-14057281)
 * [@pomegranate](https://wordpress.org/support/users/pomegranate/) thanks for the
   quick reply, I just downloaded the plugin and copied the simple template to the
   folder in ftp again, same problem :/
    I use the latest version yes and for css,
   wouldn’t this make the html5 output also overlapping like in the pdf? as I said,
   this is not the case.
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/overlapping-subtotal/#post-14057394)
 * When you say “html5 output”, are you referring to the “Use alternative HTML5 
   parser to parse HTML” option, or the “Output to HTML” option? They are two different
   options.
 * For HTML output, CSS may respond differently in PDF compared to HTML, so you 
   can’t compare them. If it’s the alternative HTML5 parser, that would suggest 
   there’s some sort of error in the output that needs fixing.
 * >  just downloaded the plugin and copied the simple template to the folder in
   > ftp again, same problem :/
 * If you have applied custom CSS for the column widths via an action hook (in functions.
   php for example), that would still apply if you do a clean install.
 *  Thread Starter [Daniel](https://wordpress.org/support/users/silvercell/)
 * (@silvercell)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/overlapping-subtotal/#post-14057411)
 * Yes, I ment that I chose the output as html option in the status, to test if 
   the problem is also there.
 * I will look over my css again, maybe I can find something there. thanks
 *  Thread Starter [Daniel](https://wordpress.org/support/users/silvercell/)
 * (@silvercell)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/overlapping-subtotal/#post-14057440)
 * OH, as it appears it just happened after I updated the plugin. All invoices before
   were fine.
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/overlapping-subtotal/#post-14057658)
 * That’s certainly possible, an update for PHP8.0 compatibility of the PDF rendering
   engine we use (dompdf) has a somewhat different approach to the table rendering
   that required changes in the ‘official’ CSS of the Simple template too.
 * If you want to quickly find out if you have applied custom CSS, you could use
   HTML output, then do _right click > inspect_ on the Quantity column, it should
   have a width of 20%.
 * The totals table width is determined by the width of the 2 last columns, so if
   yours is smaller than this will also shrink the totals table.
 *  Thread Starter [Daniel](https://wordpress.org/support/users/silvercell/)
 * (@silvercell)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/overlapping-subtotal/#post-14062757)
 * I did downgrade again and it seemed to work, but my client got a wp issue emailed:
   [https://ibb.co/HKnh0Bg](https://ibb.co/HKnh0Bg)
 * So now I try to make it work with the newest version, but I checked the width
   and it is 20%: [https://ibb.co/h8TKVXF](https://ibb.co/h8TKVXF)
 * Also if i shrink it everything looks fine in html mode: [https://ibb.co/0FKKf8B](https://ibb.co/0FKKf8B)
 * Another weird effect is that the table is only on the second page?!: [https://ibb.co/n7ch5Nz](https://ibb.co/n7ch5Nz)
 * Any idea what could be wrong here?
    thanks again
 *  Plugin Contributor [Darren Peyou](https://wordpress.org/support/users/dpeyou/)
 * (@dpeyou)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/overlapping-subtotal/#post-14093264)
 * Hi [@silvercell](https://wordpress.org/support/users/silvercell/),
 * Regarding the table, it is very possible that you may need to adjust/remove your
   table margins:
 *     ```
       add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles' );
       function wpo_wcpdf_custom_styles () {
       	?>
       	table.order-details {
       	    margin-bottom: 0mm;
       	}
       	<?php
       }
       ```
   
 * For more information on why this might be happening please take a glance at this
   thread:
    [https://wordpress.org/support/topic/in-bulk-document-invoice-breaking-to-the-next-page/](https://wordpress.org/support/topic/in-bulk-document-invoice-breaking-to-the-next-page/)
   Hopefully this makes sense!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Overlapping Subtotal’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

 * 8 replies
 * 3 participants
 * Last reply from: [Darren Peyou](https://wordpress.org/support/users/dpeyou/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/overlapping-subtotal/#post-14093264)
 * Status: not resolved