Hi @whode
Yes, its is possible to add “invoice date” in our invoice. Please add the below code in your active theme’s functions.php file or use a plugin like Code Snippets:
function example_custom_order_fields( $fields, $order ) {
$new_fields = array();
$new_fields['_invoice_date'] = array(
'label' => 'Invoice Date:',
'value' => date( 'Y-m-d H:s:i', current_time( 'timestamp' ) ),
);
return array_merge( $fields, $new_fields );
}
add_filter( 'wcdn_order_info_fields', 'example_custom_order_fields', 10, 2 );
Please let us know if you need any other help.
Regards,Moksha.
Thread Starter
whode
(@whode)
Thank you very much for the reliable solution and quick answer !
-
This reply was modified 3 years, 2 months ago by
whode.
Hi @whode
Good to know that your problem is resolved.
It would be great if you can give a review for the plugin & the support on https://ww.wp.xz.cn/support/plugin/woocommerce-delivery-notes/reviews/#new-post. That would be very helpful.
Regards, Moksha.