WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce Print Invoice & Delivery Note
Does this plugin have phone number in the invoice? (5 posts)

  1. Zray
    Member
    Posted 1 year ago #

    Nice plugin, thx u
    But In my invoice doesnt have customer phone number (billing_phone) when print out.
    I dont know this is my fault or not.
    Many thanks

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

  2. nyenius
    Member
    Posted 1 year ago #

    Yes, I want to add phone number to invoice or shipping note. It will save a lot of my work process.

    i've been searching through codes, but got no clue how to add phone number. I've gone to woocommerce class-wc-orders.php and class-wc-countries.php but the address format does not include phone number.

    Waiting for hint or solution ;)

  3. nyenius
    Member
    Posted 1 year ago #

    The author has shown the way in this topic : add email to invoice

    please check the woocommerce-delivery-notes-print.phpfile inside the plugin folder. the right functions are:

    wcdn_billing_phone();
    wcdn_billing_email();
  4. Zray
    Member
    Posted 1 year ago #

    thx
    I checked but dont know how to make it work
    could you check my file and help me to edit it. Thx
    https://www.dropbox.com/s/1qg9i5en92dcjkk/woocommerce-delivery-notes.php

  5. Zray
    Member
    Posted 1 year ago #

    Done, I think it isnt the best way, but I can do it. I added this code in the print-delivery-note.php

    <h4><?php _e( 'Phone: ', 'woocommerce-delivery-notes' ); ?></h4>
    							<?php if( wcdn_get_template_type() == 'invoice' ) : ?>
    							<?php wcdn_billing_phone(); ?>
    						<?php else : ?>
    							<?php wcdn_shipping_phone(); ?>
    						<?php endif ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.