• Resolved questulent

    (@questulent)


    HI,

    Fantastic plugin. Is there a way I might be able to add some extra data to the packing slip printout?

    I’m using WooCommerce’s Flat Rate Box Shipping plugin. It’d be super to be able to print out which boxes to use on the packing slip. According to the developers, the box data is “stored in both an ‘order note’ and also ‘custom order meta fields’, so it would be extremely easy for them to add to the plugin for you.”

    Any advice on how to incorporate this, or is this a possible addition to a future release of the plugin?

    Thanks!

    https://www.ads-software.com/plugins/woocommerce-delivery-notes/

Viewing 7 replies - 1 through 7 (of 7 total)
  • hi there and i’m glad you like it. you can add custom fields to your print out.the only thing you need to know is what the custom meta field name is. an example with a field called ‘my_field’. paste the code in your functions.php and replace ‘my_field’ with your meta field name:

    function example_custom_order_fields( $fields, $order ) {
    	$new_fields = array();
    
    	// replace my_field with our custom field name
    	if( get_post_meta( $order->id, 'my_field', true ) ) {
            $new_fields['my_field'] = array(
                'label' => 'Example Field',
                'value' => get_post_meta( $order->id, 'my_field', true )
            );
        }
    
    	return array_merge( $fields, $new_fields );
    }
    add_filter( 'wcdn_order_info_fields', 'example_custom_order_fields', 10, 2 );

    Do you know how i can find the custom meta field name for a plugin? Been struggling with this for days and can’t seem to reach some of the plugin authors.

    Thanks for your help

    Sorry I can’t, I would have to buy the plugin to find out the names.

    But you are paying for customer support. It would be best to ask them if they could build in support in a future version. Or at least give you the exact names.

    Hi PPP,

    If I give you log in details (in your email) to access my plugins would you be able to identify the custom meta field and help me get the order delivery date to show on my invoice and delivery notes? The Plugin author is taking ages to get back to me.

    Thanks

    Sorry that I’m a little stubborn here but I can’t support you. You are paying the plugin author but are asking me to make the work.

    Thread Starter questulent

    (@questulent)

    Hi PPP – thanks. I’ve requested the meta field name from the plugin devs and will let you know as soon as I can get it working!

    Thread Starter questulent

    (@questulent)

    Hi PPP – where on the packing slip will the new field display?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Include Box Data from WooCommerce Flat Rate Shipping plugin on Packing Slip’ is closed to new replies.