Support » Plugin: WooCommerce Print Invoice & Delivery Note » notes in the order for printed invoice

Viewing 3 replies - 1 through 3 (of 3 total)
  • kartikparmar

    (@kartikparmar)

    Hi @roskosh030

    You can use “wcdn_before_template” action hook. Below is the code snippet I have shared. Hopefully, that will help.

    function wcdn_before_template_call() {
    	// wcdn_get_orders() function to get the information of the order being printed.
    }
    add_action( "wcdn_before_template", "wcdn_before_template_callback" );

    Please let us if the provided information was useful or not.

    roskosh030

    (@roskosh030)

    Something does not work ((

    Plugin Author priyankajagtap

    (@priyankajagtap)

    Hi @roskosh030,

    This is Priyanka colleague of Kartik.

    I just checked the code provided to you in the last reply and observed that there is a small mistake in the provided code. The function name should be wcdn_before_template_callback instead of wcdn_before_template_call so please correct it if you have added it in the same way.

    Also, can you please show us the code which you have added in the function? So that we will check your code and see if there is any mistake because of which it is not working.

    Regards,
    Priyanka Jagtap

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