How to add custom fields for generated invoice pdf?

This is a guide for advanced users.

Custom invoice template

If you want to add more information on invoices or some custom code/ fields:

  • first you need to create a copy of the custom invoice template
  • then you may add any additional data or information. You can show for example order's Custom Fields in PHP:
    <?php if($order->get_meta( 'my_field')) {?><p>My Field: <?php echo $order->get_meta( 'my_field'); ?></p><?php }?>
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us