You could use Order Notes. Set the drop-down to “Note to customer”. That should fire an email to him.
Thread Starter
reign1
(@reign1)
Can I have it within order settings? I don’t want to email separately just the tracking number. Also I’d like it to be within the invoice PDF as well, is there a parameter somewhere here: https://github.com/woocommerce/woocommerce/blob/4.1.0/includes/class-wc-order.php ?
BR,
Gytis
Its possible to add custom fields to the order but it would be a developer job.
You’d have to resend the invoice because the tracking number won’t be available at the moment the initial invoice is sent.
The customer note email is one of the standard WooCommerce emails and its fired off by the system once you have saved the customer note. No hassle. The customer note email must be enabled in email settings.
I don’t think the core WooCommerce plugin features PDF invoices? These must be coming from a supplementary plugin. So that would be another developer job to change that plugin code, possibly making it not-updateable.
Thread Starter
reign1
(@reign1)
Hi @lorro ,
Let’s put aside PDF part. I’ve created custom field “shipment_tracking_number” within one of the orders, why can’t I pick it when editing other orders? How do I make it global?
BR,
Gytis
We wrote a blog post about this a while back. Using Advanced Custom Fields and WunderAutomation.
Since that post was written WunderAutomation has got support for Woo styled HTML emails.
https://www.wundermatics.com/2020/01/08/delivery-tracking-notifications-from-woocommerce/
Just throwing in there that we also have a paid extension for this purpose: https://woocommerce.com/products/shipment-tracking/
You’d essentially add the tracking number into the order field before setting to Completed. Once the order is Completed, that tracking # is displayed in the order complete email.
– Joey
Thread Starter
reign1
(@reign1)
Hi @lorro ,
Ended up using https://ww.wp.xz.cn/plugins/advanced-custom-fields/ , thanks for the idea, works fine. We can close this one.
BR,
Gytis
Thanks for letting us know, @reign1!
– Joey