• My store sometimes has many items in the order and the invoice gets more than one page long.
    So the issue is.
    1. The subtotal part gets printed on every page, we expect it to print on the last page of the invoice only.
    2. Subtotal gets overlapped with order items.
    How can I resolve this printing issue?

    Images of prints:

    View post on imgur.com

    View post on imgur.com

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

    (@alexmigf)

    Hello @amoalsale

    How it goes if you disable the headers and footers from the browser printing dialog window? Also, did you made any customization to the template?

    Let me know.

    Thread Starter amoalsale

    (@amoalsale)

    Hi @alexmigf
    The disabling header and footer is not removing subtotal.
    However, I tried using Firefox to print, and now that overlapping text issue is gone.
    I have made this change: I have added two custom meta fields before order data using this code snippet:

    add_action( 'wpo_wcpdf_before_order_data', 'wpo_wcpdf_society', 10, 2 );
    function wpo_wcpdf_society ($template_type, $order) {
        if ($template_type == 'invoice') {
            ?>
            <tr class="_billing_wooccm11">
    			<th><b>Society:</b></th>
                <td><?php echo $order->get_meta('_billing_wooccm11'); ?></td>
            </tr>
    		
    		<tr class="_billing_wooccm12">
    			<th><b>Suburban:</b></th>
                <td><?php echo $order->get_meta('_billing_wooccm12'); ?></td>
            </tr>
            
    		<?php
        }
    }
    Plugin Contributor alexmigf

    (@alexmigf)

    Hi @amoalsale

    Can you send us an email so i can check that better with you? [email protected]

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Subtotal printed on every page and is overlapping’ is closed to new replies.