Support » Plugin: WooCommerce Print Invoice & Delivery Note » Move Order Notes

  • Possible to move the customer’s order notes higher in the template?
    Looked at unsetting the fields, but I don’t think that’s the route.

    [Updated – modified print-content.php] Would be nice to have this as a filter?

Viewing 1 replies (of 1 total)
  • Plugin Author priyankajagtap


    Hi @bdbolin,

    I apologize for the late reply.

    >>Possible to move the customer’s order notes higher in the template?
    : Yes, it is possible to move the customer note higher in the template but for this, you will need to modify our template file “print-content.php”. But the changes done in the plugin file will get removed after every update. So what you can do is, you can copy the “print-content.php” template file of our plugin and paste it into / wp-content / themes / <Your active theme folder> / woocommerce / create a folder “print-order” / paste “print-content.php”. And then you can do the modification as mentioned below for displaying the customer note above in the template.

    From the print-content.php file of our plugin, you will need to cut the below lines of code from its current place:

    <div class="order-notes">
    		<?php if( wcdn_has_customer_notes( $order ) ) : ?>
    			<h4><?php _e( 'Customer Note', 'woocommerce-delivery-notes' ); ?></h4>
    			<?php wcdn_customer_notes( $order ); ?>
    		<?php endif; ?>
    		<?php do_action( 'wcdn_after_notes', $order ); ?>
    	</div><!-- .order-notes -->

    And paste it after this block of code:

    <?php do_action( 'wcdn_after_addresses', $order ); ?>
    	</div><!-- .order-addresses -->

    See this screenshot for your reference:

    The print-content.php file is located at the following path: wp-content\plugins\woocommerce-delivery-notes\templates\print-order\print-content.php.

    Please do the same and let us know whether it is working as per your requirement or not.

    Priyanka Jagtap

Viewing 1 replies (of 1 total)
  • The topic ‘Move Order Notes’ is closed to new replies.