• Resolved digitalezaken

    (@digitalezaken)


    Hello, I have added VAT nr and IBAN and kvK to the shop address, but I would like to know how to remove these shop details (VAT number, IBAN etc) from the packing slip, keeping the shop address. On the invoice we need this information. So is there a way to put certain details on the invoice, but NOT on the packing slip? Thanks in advance.

Viewing 1 replies (of 1 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Yes, there is! Just wrap the data you want to hide in the packing slip in a div container, like this:

    <div class="extra-shop-data">
    VAT Number: 12345679
    Kvk nr: 12345679
    IBAN: XX00 1234 1111 99 1234567890
    </div>

    Then add this code snippet to your site in order to hide this data on the packing slip:

    /**
     * Hide extra shop info on packing slip
     */
    add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) {	
    	?>
    	.packing-slip .extra-shop-data {
    	display: none;
    	}
    	<?php
    }, 10, 2 );

    If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters

    Let me know if it worked!

Viewing 1 replies (of 1 total)
  • The topic ‘Adjust shop address on packing slip’ is closed to new replies.