• Resolved jmarc4312

    (@jmarc4312)


    On invoice and packing slips:

    How do I change or remove the thick black line that has “Product, Quantity and Price”
    Image of what I’m referring to.

    On inkjet printers this uses up a LOT of ink and I would prefer these items to just be regular bold black text with one simple solid underline below them.

    I’ve looked at the scripts but can’t seem to find where/what to change.

    Any help would be appreciated!!

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

    (@yordansoares)

    Hi @jmarc4312,

    You can customize the table header by adding this code snippet in your site:

    /**
     * PDF Invoices & Packing Slips for WooCommerce:
     * Add custom styles to the PDF invoice
     */
    add_action( 'wpo_wcpdf_custom_styles', function( $document_type, $document ) {	
    	if ( $document_type == 'invoice' ) {
    		?>
    		.order-details thead th {
    			color: black;
    			background-color: transparent;
    			border-color: #ccc;
    			border-top: 0;
    		}
    		<?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 you managed to set it up! ??

    Thread Starter jmarc4312

    (@jmarc4312)

    Hi and I add the above posted script into my functions.php correct and I must include

    ?>

    at the end, correct?

    Thanks

    • This reply was modified 2 years ago by jmarc4312.
    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @jmarc4312,

    No, adding ?> is not necessary.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing the thick black line that has “Product, Quantity, etc”’ is closed to new replies.