I can’t add customs fields in my invoice
-
Hello,
I use plugin Checkout Form, I try to print with your plugin my customs fields.
I follow instrucction in your documentation but it’s doesn’t works the code that I put.This is the code
add_action( 'wpo_wcpdf_after_order_data', 'wpo_wcpdf_delivery_date', 10, 2 ); function wpo_wcpdf_delivery_date ($document_type, $order) { $document = wcpdf_get_document( $document_type, $order ); if ($document_type == 'packing-slip') { ?> <tr class="franja_horaria_semana"> <th>Delivery Date:</th> <td><?php $document->custom_field('franja_horaria_semana'); ?></td> </tr> <?php }
I used the plugin store toolkit to make sure that the name of the meta was correct, in the toolkit it registers it as franja_horaria_semana, which is the name I give it in the checkout form module, I don’t know what I’m doing wrong.
Can you help me?
thank you
Christian`The page I need help with: [log in to see the link]
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘I can’t add customs fields in my invoice’ is closed to new replies.