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 😉
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();
Thread Starter
Zray
(@zray)
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
Thread Starter
Zray
(@zray)
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 ?>