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:

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/
Thanks. How does the code look if I want to hide it from the shipping line also?
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 4 years, 2 months ago by
Darren Peyou.
Hi @katrineds,
Were you able to reach your goal?
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
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