Support » Plugin: WooCommerce Print Invoice & Delivery Note » Change Invoice Title for order status

  • Hi would it be possible to change the invoice title depending on the order status?

    If the order status is not paid (pending payment, on hold) then the title should display Proforma Invoice.

    Once the order is paid and updated (processing or completed) then the title invoice would be displayed.

    The page I need help with: [log in to see the link]

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

    (@priyankajagtap)

    Hi @gilesytheking,

    Thank you for sharing your site URL.

    Currently, it is not possible in our plugin to change the invoice title based on WooCommerce order status. But you can manually replace the below-provided code on line 50 in the “print-content.php” file of our plugin. This will change the invoice title based on the order status.

    Code:

    <h2>
    			<?php 
    
    			if( 'processing' !== $order->get_status() ) {
    	                echo 'Proforma Invoice';
    	            }else {
    	                echo 'Invoice';
    	        }
    
    			?>
    		</h2>

    Please see this screenshot with the updated code: https://www.screencast.com/t/mTWPXJSRLO

    You can add/change the status in the above code as per your requirement. Please check and let us know whether the provided code is working according to your requirement or not.

    Regards,
    Priyanka Jagtap

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