• Resolved Turbocharge

    (@dreamline-diary)


    Hi,

    I love your plug in and have set up custom templates for my packing slips. I have spent a couple of hours trying to figure out how to integrate adding the WooCommerce payment method (how the customer has paid for the order) to the packing slip.

    Are you please able to help with the right code that I need and advise where to add it? I would really appreciate it.

    Thank you
    Bec

    https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/

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

    (@pomegranate)

    Hello Bec,
    You can copy this from the invoice, find this bit:

    <span class="order-payment-label"><?php _e( 'Payment Method:', 'wpo_wcpdf' ); ?></span>
    <span class="order-payment"><?php $wpo_wcpdf->payment_method(); ?></span><br />

    Then copy that in the same location in the packing slip.

    Hope that helps!

    Ewout

    Thread Starter Turbocharge

    (@dreamline-diary)

    Wow thank you so much. I will do it now and let you know if I have any issues 🙂 I can’t tell you how much I appreciate it.

    Thread Starter Turbocharge

    (@dreamline-diary)

    Yippee it worked! Thank you. I ended up putting it under <dl class=”meta”> because I have a customised template, not the basic template, it didn’t look right in your original spot. Thank you so much!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add Payment method to Packing Slip’ is closed to new replies.