• Resolved Kramarz

    (@kramarz)


    Hi there,

    I need to hide any tax info from invoices. Need to only show Total value of the order), so for example:

    Total £32.50
    and NOT Total £32.50 (includes £5.64 Tax)

    Is there any function that I could use, or a way to modify template? I assume it would be this line in template:

    <td class="price"><span class="totals-price"><?php echo $total['value']; ?></span></td>

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi! In the free version, you can hide this with CSS:

    
    .includes_tax { display: none !important; }
    

    More information about ways to add custom css: Using custom styles (scroll down to ‘free version’).

    Alternatively, with our Premium Templates extension you can configure the totals as well as the item prices including/excluding tax and will let you print the grand total without that text added to it.

    Thread Starter Kramarz

    (@kramarz)

    I have actually used “ugly” solution, as I didn’t see any .includes_tax class in html.

    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 );
    function wpo_wcpdf_custom_styles ( $document_type, $document ) {
        ?>
    	.order_total .totals-price {font-size: 0;}
    	.order_total .totals-price .woocommerce-Price-amount.amount:first-of-type {font-size: 9pt;}
        <?php
    }

    Will try your suggestion though!

    So, in free version CSS is the only way?

    • This reply was modified 3 years, 3 months ago by Kramarz.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Need to hide (includes £XXX Tax) Info’ is closed to new replies.