• Resolved ChiKaLio

    (@fhgfhf)


    WooCommerce PDF Invoices & Packing Slips + mPDF
    it worked for few days then invoices won’t print :/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @fhgfhf,

    Could you check the WooCommerce logs to see if there are errors with the wpo-wcpdf or fatal-errors prefix? If so, please share the logs with us. You’ll find the logs under WooCommerce > Status > Logs. See Where to find error logs.

    Thread Starter ChiKaLio

    (@fhgfhf)

    i found this in woocommerce-pdf-ips-mpdf-2021-12-14-2c01a7d8205763be82acbfe7038850cc.log (14 décembre 2021 à 15 h 33 min CET)

    2021-12-14T07:36:17+00:00 CRITICAL <tfoot> must precede <tbody> in a table
    2021-12-14T07:37:17+00:00 CRITICAL <tfoot> must precede <tbody> in a table
    2021-12-14T07:37:27+00:00 CRITICAL <tfoot> must precede <tbody> in a table
    2021-12-14T10:36:49+00:00 CRITICAL <tfoot> must precede <tbody> in a table
    2021-12-14T12:07:35+00:00 CRITICAL <tfoot> must precede <tbody> in a table
    2021-12-14T12:08:09+00:00 CRITICAL <tfoot> must precede <tbody> in a table
    2021-12-14T12:08:17+00:00 CRITICAL <tfoot> must precede <tbody> in a table
    2021-12-14T12:08:22+00:00 CRITICAL <tfoot> must precede <tbody> in a table

    the error repeats like 100 times

    Plugin Contributor Ewout

    (@pomegranate)

    @fhgfhf are you using the “Simple mpdf” or “Simple RTL” template? Those 2 are optimized for mpdf, the standard “Simple” template is not.

    If you have the issue with either of those as well, could you add &output=html to the URL and send us a screenshot of the output you’re getting in the browser? That may help us determine where that <tfoot> element might come from.

    Thread Starter ChiKaLio

    (@fhgfhf)

    simple pdf works fine, i’m using a custom template although i just changed invoice number place, i’m gonna change my template based on “simple mpdf”

    Thread Starter ChiKaLio

    (@fhgfhf)

    it worked, this are my changes in the old & new template

    <table class="head container">
    	<tr>
    		<td align="left" class="header">
    		<?php
    		if( $this->has_header_logo() ) {
    			$this->header_logo();
    		} else {
    			echo $this->get_title();
    		}
    		?>
    		</td>
    		
    		<td align="center" class="header">
    			<h3 class="h1marg">
    				<?php if( $this->has_header_logo() ) echo $this->get_title(); ?> N°
    				<?php if ( isset($this->settings['display_number']) ) { ?>
    					<?php $this->invoice_number(); ?>
    				<?php } ?>
    			</h3>
    		</td>
    
    		<td align="right" class="header">
    			<img style=" width:140px; position: absolute;right:0; top:0;" src="https://otrity.com/wp-content/uploads/2020/02/d17-mini-1.png">
    		</td>
    
    	</tr>
    </table>
    <hr>

    has nothinf todo with tfooter

    Plugin Contributor Yordan Soares

    (@yordansoares)

    I’m glad to hear that you found the root cause of the issue!

    Updating your template it’s a good approach, although if your custom changes are just a few, I’d recommend using the PDF template action hooks in combination with the default Simple RTL, this way you can make sure you’re always using a template up-to-date with the latest changes.

    By the way, 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 ChiKaLio

    (@fhgfhf)

    Done, and thank you but they care bout positions more then functionality x)..

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘mPDF’ is closed to new replies.