• While opening pdf invoice from order page of woocommerce, Full address is not displaying in pdf and packing invoice.

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

Viewing 1 replies (of 1 total)
  • Plugin Contributor kluver

    (@kluver)

    Hi @sakthi1987,

    You can enable the displaying of the shipping address via the plugin settings (WooCommerce > PDF Invoicea > Documents > Invoice > Display shipping address). This will only display the shipping address if it differs from the billing address.

    If you always want to display the shipping address even if it is the same as the billing address you can do so via a small code snippet:

    add_filter( 'wpo_wcpdf_ships_to_different_address', 'wpo_wcpdf_always_show_shipping_address_on_invoice', 10, 3 );
    function wpo_wcpdf_always_show_shipping_address_on_invoice( $condition, $order, $document ) {
    	if ( $document->type == 'invoice' ) {
    		$condition = true;
    	}
    	return $condition;
    }

    This code snippet should be added to the functions.php of your child theme or via a plugin like ‘Code Snippets’.

    • This reply was modified 4 years, 6 months ago by kluver.
Viewing 1 replies (of 1 total)
  • The topic ‘Complete shipping address not displaying in pdf and packing invoice woocommerce’ is closed to new replies.