• Resolved vishal98

    (@vishal98)


    Hello everyone,

    I just want two add two variable in my pdf invoice template.

    $line1 = ((string)$item['line_total']); //return $11.75												 
     $line2 = ((string)$item['line_tax']); // return $1.75
     $x = ((string)str_replace(get_woocommerce_currency_symbol(),'',$line1)); // remove $ sign from $line1
     $y = ((string)str_replace(get_woocommerce_currency_symbol(),'',$line2)); // remove $ sign from $line2
    echo $x + $y;

    // add $x and $y values But it return “0”

    plz help me to solve this plz

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    Hi there! Can you please specify which is the exact place you would like to do this? We would appreciate it if you can share a screenshot so that we can have a better understanding.

    Cheers!

    Roxy

    (@roxannestoltz)

    Hi @vishal98 ,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Add two values in pdf invoice’ is closed to new replies.