Displaying a custom field from Flexible Checkout Fields
-
Hi
With Flexible Checkout Fields I created an extra text field Lidnummer. With meta name: _shipping_lidnummer. I want to add this extra field to the PDF Invoices & Packing Slips for WooCommerce but I can’t seem to find the right hook to load _shipping_lidnummer in the e-mail template, like explaind here. I’m guessing I’m missing something.If I take a look at how the payment_method is loaded:
<?php if ( $payment_method = $this->get_payment_method() ) : ?> <tr class="payment-method"> <th><?php _e( 'Betaald met:', 'woocommerce-pdf-invoices-packing-slips' ); ?></th> <td><?php echo $payment_method; ?></td> </tr> <?php endif; ?>
But when I try to get the _shipping_lidnummer I get an error.
I was thinking that this should work:<?php if ( $lidnummer = $this->get_shipping_lidnummer() ) : ?> <tr class="lidnummer"> <th><?php _e( 'Lidnummer:', 'woocommerce-pdf-invoices-packing-slips' ); ?></th> <td><?php echo $lidnummer; ?></td> </tr> <?php endif; ?>
Is there an other way to load the extra field?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Displaying a custom field from Flexible Checkout Fields’ is closed to new replies.