Support » Plugin: WooCommerce Print Invoice & Delivery Note » template override

  • 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.
    thanks

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

    (@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.

    Code:

    <?php foreach( $fields as $field ) : ?>
    				<li>
    					<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>
    				</li>
    			<?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.

    Regards,
    Priyanka Jagtap

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