Blog

Adding your orders custom fields in an invoice

Posted by:

You are here:
< Back

There are many plugins that add additional information to the orders, typically this information is stored in the Order ‘Custom Fields’ section

In this example i have the custom fields ‘Color’ and ‘Gift Message’.

 

If you want to add this information in your invoice all you need to do is the following:

1.Create a new custom field

2.- And add the following  text:

return get_post_meta($order->id,’Custom_Field_Name’,true);

like this:

In this example i am getting the custom field ‘Color’ from my order.

 

3.- Add your new custom field in your invoice

That’s it =).

2
  Related Posts
  • No related posts found.