How to add custom fields / meta-data in PDF invoice template?
-
Hello, thank you very much for your help. I am using the Checkout Field Editor for WooCommerce plugin
and I have added an extra fields with the name billing_cif. The field picks it up perfectly. Now I am trying to show the collected data to show it in the invoices with the Invoices for WooCommerce plugin (Bas Elbers) but I can’t do it. In their FAQ they put this information:How to add custom fields / meta-data to the PDF invoice template?
Use below code to display meta-data. Replace {META_KEY} with the actual key. If you use another plugin, just ask the key from the author of that plugin.<? php echo BEWPI () -> templater () -> get_meta ('{META_KEY}'); ?>
Important: A custom template is required to add a custom field to the PDF invoice.I have tried to put it and it gives an error. I have replaced META_KEY with the name of the billing_cif field but it doesn’t work. Can you help me? I am not an expert user in programming.
The page I need help with: [log in to see the link]
- The topic ‘How to add custom fields / meta-data in PDF invoice template?’ is closed to new replies.