Viewing 5 replies - 1 through 5 (of 5 total)
  • Did you try adding custom CSS

    .price{
    display: none;
    }

    another way would be:

    as suggested on product FAW page:

    How do I create my own custom template?
    Copy the files from wp-content/plugins/woocommerce-pdf-invoices-packing-slips/templates/pdf/Simple/ to your (child) theme in wp-content/themes/yourtheme/woocommerce/pdf/yourtemplate and customize them there. The new template will show up as ‘yourtemplate’ (the folder name) in the settings panel.

    Thread Starter amandathewebdev

    (@amandathewebdev)

    Hi yoga, thanks for the suggestions. I can’t add CSS to a PDF. Your second suggestion, I did think of, but there’s a lot of PHP that talks about price. It’s commented pretty well but I felt like it was a lot to try and remove.

    Plugin Contributor Ewout

    (@pomegranate)

    Hi Amanda,
    You can actually add CSS, as the PDF is created from HTML+CSS!
    Documentation: Using custom styles
    Here’s what should do the trick:

    th.price, td.price, table.totals, .order-details tfoot tr:last-child { display: none; }

    Hope that helps!
    Ewout

    Thread Starter amandathewebdev

    (@amandathewebdev)

    yoga1103 and Ewout, thank you! That did it 🙂 I combined the CSS you provided with a function from another thread, so I didn’t have to modify anything but my functions.php file:

    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles' );
    function wpo_wcpdf_custom_styles () {
        ?>
        th.price, td.price, table.totals, .order-details tfoot tr:last-child { display: none; }
        <?php
    }
Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Hide price on free version?’ is closed to new replies.