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

    (@pomegranate)

    The plugin outputs NA when there’s no address data available. The invoice uses the billing address, and the packing slip uses the shipping address. Perhaps the billing address is not filled in or removed for this particular order?

    If this is not the case, let me know and I’ll try to find out what could be the cause!

    Thread Starter magnoct

    (@magnoct)

    Thanks for the reply, it is the case s you suggest because customer is using paypal express and paypal is only sending the shipping details back. Any chance we could put the shipping details on the invoice also?

    Thanks

    Plugin Contributor Ewout

    (@pomegranate)

    Yes that’s possible. You could even output the shipping address only if there is no billing address, by replacing (in invoice.php):

    <?php $wpo_wcpdf->billing_address(); ?>

    by

    <?php
    if ($wpo_wcpdf->get_billing_address() == __('N/A', 'wpo_wcpdf')) {
    	// there is no billing address, output shipping address
    	$wpo_wcpdf->shipping_address();
    } else {
    	$wpo_wcpdf->billing_address();
    }
    ?>

    Thread Starter magnoct

    (@magnoct)

    Thanks for the reply!

    I will implement that change.

    Also, is there a way to select and print off multiple packing slips and/or invoices at once? I had to pack over 30 orders yesterday so there was a lot of actioning the print command ??

    Plugin Contributor Ewout

    (@pomegranate)

    Yes, simply select all the orders and then select PDF Invoices or PDF Packing Slips from the actions drop down menu ??
    Note that this does require a lot of memory, because it’s creating one big PDF out of all the orders. Alternatively you could use the dropbox extension, which creates one file per order and is a little more resource friendly that way (in this case you’d have to print all the files at once from your local drive).

    Have a great day!
    Ewout

    p.s. congratulations on the 30 orders! :o)

    Thread Starter magnoct

    (@magnoct)

    Thanks. I like the first option. I have a dedicated server so it should be able to cope ??

    Thread Starter magnoct

    (@magnoct)

    just wondering if you could add this code tweak as an option to future proof the changes? ??

    Plugin Contributor Ewout

    (@pomegranate)

    I won’t add it to the default template, but if you have created your custom template (see FAQ), it will not be overwritten by any updates!

    Thread Starter magnoct

    (@magnoct)

    Ahh cheers

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘NA on invoice’ is closed to new replies.