• Resolved dangrimes

    (@damonmaldonado)


    Overall the plugin has worked great. I have recently run into an issue with one order with a very long customer note entered.
    If I try to create a PDF for this item it will not work.
    At first it would just reach my php Max execution time. I raised that to 90 seconds and now the page just never creates the PDF.
    If I delete the customer note I can create the PDF without issue.
    I tried switching back to the regular “simple” template and have the same issue.

    Is there anything that can be done to allow it to handle long notes or is this just something we must manually deal with?

    Thank you

    https://www.ads-software.com/plugins/woocommerce-pdf-invoices-packing-slips/

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

    (@pomegranate)

    I believe that this is an issue with long code inside tables specifically. The customer note is inside a table, but that’s actually an artefact of an older template version. If you move the customer notes outside of the table I believe it won’t time out.

    Change:

    <table class="notes container">
    	<tr>
    		<td colspan="3">
    			<div class="notes-shipping">
    				<?php if ( $wpo_wcpdf->get_shipping_notes() ) : ?>
    					<h3><?php _e( 'Customer Notes', 'wpo_wcpdf' ); ?></h3>
    					<?php $wpo_wcpdf->shipping_notes(); ?>
    				<?php endif; ?>
    			</div>
    		</td>
    	</tr>
    </table>

    to:

    <div class="notes-shipping">
    	<?php if ( $wpo_wcpdf->get_shipping_notes() ) : ?>
    		<h3><?php _e( 'Customer Notes', 'wpo_wcpdf' ); ?></h3>
    		<?php $wpo_wcpdf->shipping_notes(); ?>
    	<?php endif; ?>
    </div>

    Let me know if that indeed solves the issue!

    Thread Starter dangrimes

    (@damonmaldonado)

    Thank you so much, that fixed it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PDF generation times out’ is closed to new replies.