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

    (@yordansoares)

    Hi @dellindia,

    Could you display the total’s area of the PDF invoice for the order related with this screenshot?:

    Thread Starter dellindia

    (@dellindia)

    Thanks for the reply i hope i have sent u right pics now

    Checkout page Pic: https://ibb.co/qCjWmsy

    PDF Pic: https://ibb.co/GV0RhfF

    Thread Starter dellindia

    (@dellindia)

    I need some Code Snippets to display (Incl. of all taxes) text in the PDF invoice where total amount is displayed

    Total ?5,425.65

    Total ?5,425.65 (Incl. of all taxes). ——> i want like this

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Thanks for sending those screenshots, @dellindia.

    Our free version follows the WooCommerce tax settings, therefore, if you include tax to the prices:

    a72529d89e7d7a3d507c25aaf0cd7251.png

    …the Simple template will display the Tax this way:

    d720ccfa0124fb05ff8dbf05f1535838.png

    If you are showing the prices excluding taxes, the PDF invoice will look like this (in a separated line):

    be4c599afdcb32a977166dc15d751271.png

    In addition, if you choose to display the tax totals itemized:

    b42a7819e94c19850e46c4a1c980eb15.png

    …the tax rates will be itemized in the total’s area too, if you have more than one tax rate:

    eed4aa15ce14c3ac53ee8ec5281b1412.png

    With the?Premium Templates?extension, you can use the customizer and tailor your PDF documents, without depending on the WooCommerce tax settings.

    That said, you can add that specific VAT sentence next to the total on the PDF documents, by activating this code snippet in your site:

    /**
     * PDF Invoices & Packing Slips for WooCommerce:
     * Add a custom VAT sentence next to the total amount on the PDF invoice
     */
    add_filter( 'wpo_wcpdf_woocommerce_totals', function( $totals, $order, $document_type ) {
        if ( $document_type == 'invoice' ) {
            $totals['order_total']['value'] .= ' <small class="includes_tax">(Incl. of all taxes)</small>.';
        }
    	return $totals;
    }, 10, 3 );

    If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters

    Thread Starter dellindia

    (@dellindia)

    thank you for the inputs and it’s working perfectly as I requested, thank you for your time and your help.

    Keep Supporting like this for people like us your genius.

    • This reply was modified 1 year, 7 months ago by dellindia.
    Plugin Contributor Yordan Soares

    (@yordansoares)

    Thanks for your kind words, @dellindia! ??

    If you don’t mind and have the time, do you think you could leave us a review?

    Thanks in advance and all the best with your store!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to show (Incl. of all taxes) TEXT in PDF invoice’ is closed to new replies.