Urgent** Delivery date on Invoice – help please
-
Hello,
I have used YITH Delivery date plugin to capture delivery dates. I want to show this on invoices & packing slips. I have used following code:
add_action( ‘wpo_wcpdf_after_order_data’, ‘wpo_wcpdf_delivery_date’, 10, 2 );
function wpo_wcpdf_delivery_date ($template_type, $order) {
$document = wcpdf_get_document( $template_type, $order );
?>
<tr class=”delivery-date”>
<th>Delivery Date:</th>
<td><?php echo date_i18n( ‘d-m-Y’, $document->get_custom_field(‘ywcdd_order_delivery_date’) ); ?></td>
</tr>
<?php
}But now, I am getting following error:
Notice: A non well formed numeric value
encountered in
/home/crudoco/public_html/crudokitchencom/wpincludes/functions.php on line 114
Notice: A non well formed numeric value
encountered in
/home/crudoco/public_html/crudokitchencom/wpincludes/functions.php on line 116
Notice: A non well formed numeric value
encountered in
/home/crudoco/public_html/crudokitchencom/wpincludes/functions.php on line 118
Notice: A non well formed numeric value
encountered in
/home/crudoco/public_html/crudokitchencom/wpincludes/functions.php on line 119I am using PHP 7.2
Would you please help me?
Thanks!
AjayThe page I need help with: [log in to see the link]
- The topic ‘Urgent** Delivery date on Invoice – help please’ is closed to new replies.