Add custom fields
-
Hello,
I read this page https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/displaying-a-custom-field/, but I can’t display the custom field.
I want to show the custom field below the Payment method. I add this code<tr class="custom-field"> <th><?php _e( 'Custom field:', 'woocommerce-pdf-invoices-packing-slips' ); ?></th> <td><?php $this->conf_info_bdg_affil('conf_info_bdg_affil', 'Custom field:'); ?></td> </tr>where
conf_info_bdg_affilis my field name that there is in the order backend. But when I create the pdf I have an errorFatal error: Call to undefined method WPO\WC\PDF_Invoices\Documents\Invoice::conf_info_bdg_affil()Can you help me?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Add custom fields’ is closed to new replies.