• Resolved optimalprime

    (@optimalprime)


    Client has bought the pro version. On the creditnote of the pro version after the total amount, there is an “included Vat” line… I set it to html and try do display none it. you helped me before on the styling to do so on the invoice so how to do this for the creditnote…

    i tried this but i guess the document_type needs an addition right? :

    /**
     * Hide the order number from the invoices
     */
    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 );
    function wpo_wcpdf_custom_styles ( $document_type, $document ) {
    	if ( $document_type == 'invoice' ) {
    		?>
                    .order-date {
    			display: none;
    		}
    small.includes_tax {
        display: none;
    }
    	table.head {
        margin-bottom: 22mm;
    }
    		<?php
    	}
    }

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘delete some style from creditnote’ is closed to new replies.