• Resolved Roi Webreach


    Hey, is there anyway to override the plugin’s templates?
    i want to change “print-content.php”

    or if there’s any other way to move the telephone field right after the “billing details” it’s ok also.

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


    Hi @roi-webreach,

    To override the “print-content.php” template of our WooCommerce Print Invoice & Delivery Note plugin, you can copy this file and paste it into / wp-content / themes / <Your active theme folder> / woocommerce / create a folder “print-order” / paste “print-content.php”. Then, you can do the modification in the print-content.php file pasted into your theme folder so that your modification will not get override after updating our plugin in the future.

    To move the telephone field under Billing details, you have to copy the below code and paste it under the Billing address div in the print-content.php template.


    <?php foreach( $fields as $field ) : ?>
    					<strong><?php echo apply_filters( 'wcdn_order_info_name', $field['label'], $field ); ?></strong>
    					<span><?php echo apply_filters( 'wcdn_order_info_content', $field['value'], $field ); ?></span>
    			<?php endforeach; ?>

    Here, you will have to add a condition to fetch the telephone field value only, otherwise, all the values will get printed again.

    Priyanka Jagtap

Viewing 1 replies (of 1 total)
  • The topic ‘template override’ is closed to new replies.