Plugin Contributor
Ewout
(@pomegranate)
Check out the instructions here: Displaying a custom field
Let me know if you have any questions about this!
Ewout
Thanx for your fast answer.
I put this code in invoice.php:
http://prntscr.com/6qsnrn
…and the variables are declared here:
http://prntscr.com/6qsozc
And the variables are correctly shown in the USER data.
…but not in the invoice. :'(
Thanx aain.
Plugin Contributor
Ewout
(@pomegranate)
you may need to add a leading underscore, so ‘_billing_dni’ instead of ‘billing_dni’.
To check if (and how) this data is stored in the order, you can install the WooCommerce Store Toolkit. If you then go into the order, you can see all meta keys under “Order Post Meta”.
It worked fine with the underscore!
Thanx!
Plugin Contributor
Ewout
(@pomegranate)
Thanks! I have added this as a note to the instructions.
Can you leave me a review here? https://wordpress.org/support/view/plugin-reviews/woocommerce-pdf-invoices-packing-slips
Thanks and have a great day!