WordPress.org

Forums

WooCommerce Print Invoice & Delivery Note
[resolved] Adding Payment Method to Invoice (3 posts)

  1. sparx
    Member
    Posted 2 years ago #

    Hi,

    I have tried just about everything I can think of to get the payment method to display on the invoice and I just can't get it to show. I have spent over 3 hours on this now and am about to smash my head into my monitor!

    Please can someone let me know exactly what I need to put in the print-delivery-note.php file in order to get the Payment Method to appear.

    At the moment I have:

    <?php echo '<strong>Payment Method:</strong> ' . 
    
    wcdn_get_order_custom_field('WC_Payment_Gateway'); ?>

    But in place of WC_Payment_Gateway I have tried probably 50 variations of payment_method, Payment Method, payment_type, Payment Type etc. etc. etc.

    Am I even using the right code above?

    Many thanks in advance,

    sparx

    http://wordpress.org/extend/plugins/woocommerce-delivery-notes/

  2. sparx
    Member
    Posted 2 years ago #

    Ummm, can someone please answer this. All I need to know is how to call up the correct Woocommerce term for the payment method.

    Many thanks,

    sparx

  3. bheadrick
    Member
    Posted 2 years ago #

    $order->payment_method;

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce Print Invoice & Delivery Note
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.