Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Adding custom field to Invoice

$
0
0

Replies: 0

Hi

I’m using this plugin with ACF and I have a custom field called “coo”.

I’ve tried inserting the following code into the invoice template but it isn’t picking up the data in the field

Country of Origin: <?php the_field('coo', $this->order->get_id() ); ?>

I’ve also tried this way:

<?php $this->custom_field('coo'); ?>

Neither way seems to work. Is there something I’m missing?


Viewing all articles
Browse latest Browse all 59525

Trending Articles