Support » Plugin: Print Invoice & Delivery Notes for WooCommerce » User notes do not get transferred to delivery note

  • Hi,

    Some of our client’s customers add delivery instructions into the notes section on the checkout. Is it possible to have these copied to the delivery notes?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support kenil802

    (@kenil802)

    Hi @edworthymedia,

    Regarding the query, yes it is possible to copy that instruction to delivery notes if the field in which the customers add the instructions is custom meta field.If it is custom meta filed then try adding it like this :

    Code:
    /**
    * Add this code snippet in functions.php file of your currently active theme.
    * An example that adds a ‘VAT’ and ‘Customer Number’ field to the end of the list.
    */
    function example_custom_order_fields( $fields, $order ) {
    $new_fields = array();
    if( get_post_meta( $order->id, ‘your_meta_field_name’, true ) ) {
    $new_fields[‘your_meta_field_name’] = array(
    ‘label’ => ‘VAT’,
    ‘value’ => get_post_meta( $order->id, ‘your_meta_field_name’, true )
    );
    }
    if( get_post_meta( $order->id, ‘your_meta_field_name’, true ) ) {
    $new_fields[‘your_meta_field_name’] = array(
    ‘label’ => ‘Customer Number’,
    ‘value’ => get_post_meta( $order->id, ‘your_meta_field_name’, true )
    );
    }
    return array_merge( $fields, $new_fields );
    }
    add_filter( ‘wcdn_order_info_fields’, ‘example_custom_order_fields’, 10, 2 );

    Please let us know how it goes.

    Regards,
    Kenil Shah

    Hi,

    It is a built-in woocommece field that has the title of: Order notes (optional)

    This doesn’t get sent to the delivery notes so the client is having to go into each order manually to find the notes which isn’t ideal with 100+ orders a day!

    I am having this same issue. Did you get a resolution by chance?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.