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

    (@yordansoares)

    Hi @devhelemaaldebom,

    The easiest way to achieve this, is using the?customizer, included in the?Premium Templates?extension, since it allows you to customize the labels within all the blocks, like this:

    However, if you are willing to try with some PHP code, I have written the following code snippet for you:

    /**
     * PDF Invoices & Packing Slips for WooCommerce:
     * Customize the VAT label on the PDF documents.
     */
    add_filter( 'wpo_wcpdf_woocommerce_totals',  function( $totals, $order, $document_type ) {
    	$totals['tax']['label'] = __( 'BTW', 'woocommerce' );
    	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

Viewing 1 replies (of 1 total)
  • The topic ‘Replace text’ is closed to new replies.