Include delivery date & time in the invoice
-
Hi guys,
Thank you so much for adding the option to select delivery date & time range, it’s one of the more sought after WooCommerce options and I’ve personally spent many hours looking for a good solution.
I’m using the quite popular WooCommerce Print Invoice & Delivery Note plugin to print out invoices and for some reason, it won’t include the delivery date & time generated by your plugin (while it did work with the other plugin I was using for date & time range).
That plugin is no longer supported and I’ve found the following piece of code which I’m supposed to add to my functions.php, could you tell me which fields from your plugin do I need to include?
function example_custom_order_fields( $fields, $order ) { $new_fields = array(); // replace sample_field with your custom field name if( get_post_meta( $order->id, 'sample_field', true ) ) { $new_fields['sample_field'] = array( 'label' => 'Example Field', 'value' => get_post_meta( $order->id, 'sample_field', true ) ); } return array_merge( $fields, $new_fields ); } add_filter( 'wcdn_order_info_fields', 'example_custom_order_fields', 10, 2 );
Thank you very much for the time you put into developing this great plugin.
宜しくお願い致します
- The topic ‘Include delivery date & time in the invoice’ is closed to new replies.