• Resolved mdglenn

    (@mdglenn)


    I would like to be able to change the wording “Invoice” to “Quote” and have the invoice number reference the Woocommerece order number. Is that possible?

Viewing 1 replies (of 1 total)
  • moksha shah

    (@mokshasharmila13)

    Hi @mdglenn,

    It is not possible to change the wording “Invoice” to “Quote” because it is difficult to replace it. And for the Invoice number reference to the WooCommerce order number, please add the below code in your active theme’s functions.php file or use a plugin like Code Snippets:

    add_filter('wcdn_order_invoice_number', 'get_same_order_number', 10, 2);
    function get_same_order_number($invoice_number){
        global $wcdn;
    	if ( isset( $wcdn->print->orders ) ){
    		$order_id = key($wcdn->print->orders);
    		$order_obj = $wcdn->print->orders[$order_id];
    		$invoice_number = $order_obj->get_order_number();
    	}
    	return $invoice_number;
    }

    To apply this fix on your site, please download the files from the below links and replace them with the mentioned path:-
    File path : WooCommerce-delivery-notes/includes/.
    File:- https://www.dropbox.com/s/wpdrc6h0o8omd0g/class-wcdn-writepanel.php?dl=0.

    Please take a backup of the existing plugin before you replace the above files.

    Regards,
    Moksha.

    • This reply was modified 2 years, 9 months ago by moksha shah.
Viewing 1 replies (of 1 total)
  • The topic ‘Change “Invoice” Text’ is closed to new replies.