• Resolved fafa24

    (@fafa24)


    Hi,

    We have the free version. Is it possible to have in the PDF invoice for each item not displaying the word “exkl. MWST”

    I hope that you can open the link with the pictures.

    Thanks,
    Edy

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter fafa24

    (@fafa24)

    picture

    Sorry this link should be better

    • This reply was modified 3 years, 2 months ago by fafa24.
    Plugin Contributor dwpriv

    (@dwpriv)

    Hi Edy,

    It seems that this issue is related to a price suffix setting in Woocommerce, or possibly a third party plugin.

    The below code snippet should help you:

    <?php
    /**
     * Hide the tax label in line subtotal
     */
    add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 );
    function wpo_wcpdf_custom_styles ( $document_type, $document ) {
    	if ( $document_type == 'invoice' ) {
    		?>
    		table.order-details .price .woocommerce-Price-taxLabel {
    			display: none;
    		}
    		<?php
    	}
    }

    Also, Premium Templates extension to the free plugin lets you configure the price columns independently from the WooCommerce, so this gives you more control over whether the including or excluding tax price is shown (by default without any suffix).

    Best regards

    Thread Starter fafa24

    (@fafa24)

    Hi,

    Thanks for your snippet. it works fine and is exactly what I was looking for. I have a small cosmetic thing. Is it possible to right-align the amount?

    Thanks,
    Edy

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @fafa24,

    Yes, it is! Please replace the code snippet above for this one, to apply both customizations:

    /**
     * Hide the tax label in line subtotal & right-align the price
     */
    add_action( 'wpo_wcpdf_custom_styles', function ( $document_type, $document ) {
    	if ( $document_type == 'invoice' ) {
    		?>
    		table.order-details .price .woocommerce-Price-taxLabel {
    			display: none;
    		}
    		td.price {
    			text-align: right;
    		}
    		<?php
    	}
    }, 10, 2 );
    Thread Starter fafa24

    (@fafa24)

    Perfect!! Thank you! Appreciate your speedy support

    Cheers
    Edy

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘no tax information for each item’ is closed to new replies.