• Resolved aditya2525

    (@aditya2525)


    how to remove weight of each item from invoices. they are fictional and for shipping purposes only.

    please provide the full css code.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Contributor alexmigf

    (@alexmigf)

    Hello @aditya2525

    The easy was is using our Premium Templates extension and disable the weight under the product column, like below:

    Captura-de-ecra-2020-07-31-a-s-09-14-19

    Alternatively you could use the code snippet below in your theme functions.php file:

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

    If you never worked with actions/filters, please read this documentation page: How to use filters

    • This reply was modified 4 years, 7 months ago by alexmigf.
Viewing 1 replies (of 1 total)
  • The topic ‘remove weight from the invoices’ is closed to new replies.