Support » Plugin: WooCommerce PDF Invoices & Packing Slips » change total name

  • Resolved pipoulito



    On the invoice i would like to add a string after the wor TOTAL.
    is there a hook for that ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ewout


    Yes, you can either change it in WooCommerce using woocommerce_get_order_item_totals or in PDF invoices specifically using wpo_wcpdf_woocommerce_totals

    Thread Starter pipoulito


    thanks but when wpo_wcpdf_woocommerce_totals is it fired because some invoices have been generated and nothing happened ?
    Ineed to trace $total to see what is inside how to add a string text.

    // define the wpo_wcpdf_woocommerce_totals callback
    function filter_wpo_wcpdf_woocommerce_totals( $totals, $wpo_wcpdf ) {
    mail (‘myemailadress’ , ‘test’ , print_r ($total,true) );
    return $totals;

    // add the filter
    add_filter( ‘wpo_wcpdf_woocommerce_totals’, ‘filter_wpo_wcpdf_woocommerce_totals’, 10, 2 );

    Plugin Author Ewout


    If this is not fired, you may be using a custom template that doesn’t use the default totals? Are you using the default Simple template?
    (note that you are mailing $total to yourself but that should be $totals.
    I recommend hiring a developer if you need more help with this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘change total name’ is closed to new replies.