Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor alexmigf

    (@alexmigf)

    Hi @roberto22

    Could you please try enabling the “Test mode” under WooCommerce > PDF Invoices > General and open the PDF again? It should now hide the date.

    For the billing address, you need to add the code snippet below:

    add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) {
    	?>
    	.invoice .billing-address {
    		display: none;
    	}
    	<?php
    }, 10, 2 );

    If you never worked with actions/filters, please read this documentation page: How to use filters

    Thread Starter roberto22

    (@roberto22)

    Hi,

    Enabling test mode hides the invoice date. Do i have to leave it enable?

    And the snippet also hide the clients name, phone number and email address. Is there a way to hide just de address and show the rest of the info. https://prnt.sc/1lwmaon

    Thanks again!

    Plugin Contributor kluver

    (@kluver)

    Hi @roberto22,

    Test mode should only be enabled when reloading old invoices to see changes appearing. After that it is best to switch this off. Leaving this enabled will mean that if you change your company name or address in the future, previously generated documents will also be affected.

    Unfortunately it is not possible to hide the billing address but only leave the email and phone fields with just CSS. Your best option here is to change the billing address format so it only displays email and phone: Changing the address format

    Thread Starter roberto22

    (@roberto22)

    Hi,

    Ok, thanks for the help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Invoice date’ is closed to new replies.