Support » Plugin: PDF Invoices & Packing Slips for WooCommerce » Hide ‘incl. VAT’ from invoice

  • Resolved KatrineDS

    (@katrineds)


    Hi,
    Awesome plugin. But is it possible to hide the green ‘incl. VAT’ from the invoice?
    Can’t seem to find it in settings…
    Thanks in advance.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Darren Peyou

    (@dpeyou)

    Hello @katrineds,

    Is this from the grand total or from the subtotal?

    With the Premium Templates extension of the plugin, you can easily (no-code needed) have more control over how this appears thanks to the Customizer it provides:

    grand-Total-block

    In the free version, you can use this code:

    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_hide_billing_address', 10, 2 );
    function wpo_wcpdf_hide_billing_address ( $document_type, $document ) {
        ?>
    
    	.includes_tax {
    		display: none;
    	}
    
        <?php
    }

    How to use hooks: https://docs.wpovernight.com/general/how-to-use-filters/

    Thread Starter KatrineDS

    (@katrineds)

    Thanks. How does the code look if I want to hide it from the shipping line also?

    Plugin Contributor Darren Peyou

    (@dpeyou)

    Hey @katrineds,

    Do you mean “via shipping”? If yes, that would be:

    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_hide_via_shipping', 10, 2 );
    function wpo_wcpdf_hide_via_shipping ( $document_type, $document ) {
        ?>
    
    	.shipped_via {
    		display: none;
    	}
    
        <?php
    }
    • This reply was modified 1 year, 8 months ago by Darren Peyou.
    Plugin Contributor Darren Peyou

    (@dpeyou)

    Hi @katrineds,

    Were you able to reach your goal?

    Thread Starter KatrineDS

    (@katrineds)

    I believe so. Thanks. One more thing though.
    There’s something weird happening in the footer. We have a link to a return form.
    The word here is the link – but somwhow it’s the word download, that’s clickable (both are underlined like links). Is there a fix for this?
    Please see screengrab here: https://tadaimacph.com/wp-content/uploads/2021/04/invoice-link-issue.png

    Plugin Contributor Darren Peyou

    (@dpeyou)

    Hey @katrineds,

    Since this is a change to your footer, you need to reload your PDF documents with the latest settings.

    WooCommerce PDF Invoices & Packing Slips plugin saves its settings to the WordPress database and some of them are used across all PDF documents, this includes the footer, shop name, shop address, logo, etc. When a PDF is generated it will grab that data from the plugin settings and saves it to the document specific settings. This strategy helps to improve performance and reduce the server overload when opening already generated documents.

    There are 3 methods: https://docs.wpovernight.com/woocommerce-pdf-invoices-packing-slips/show-pdf-documents-with-the-latest-settings/

    I will go ahead & mark this thread as solved.
    If you have issues regarding other things, it is better to create a new thread. 🙂

    I also have the free version and want to hide the VAT due to an arrangement. Where do I add the code?

    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_hide_via_shipping', 10, 2 );
    function wpo_wcpdf_hide_via_shipping ( $document_type, $document ) {
        ?>
    
    	.shipped_via {
    		display: none;
    	}
    
        <?php
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Hide ‘incl. VAT’ from invoice’ is closed to new replies.