Zen Cart Logo
Forums / General Questions / Where to find total order value in send_order_email function?

Where to find total order value in send_order_email function?

Locked

Views: 1,021

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
21 Feb 2010, 3:02 PM
#1
takoda avatar

takoda

New Zenner

Join Date:
Nov 2009
Location:
France
Posts:
26
Plugin Contributions:
0

Where to find total order value in send_order_email function?

I need to find the total value of the order in the send_order_email function, in order.php.

I think it's in the $order_totals array somewhere, but nothing I've tried works.

Thanks in advance.

22 Feb 2010, 4:48 PM
#2
takoda avatar

takoda

New Zenner

Join Date:
Nov 2009
Location:
France
Posts:
26
Plugin Contributions:
0

Re: Where to find total order value in send_order_email function?

Fine, don't help me then!!

Have found the answer by adding:

echo "<pre>", print_r($order_totals, true), "</pre>";
echo "<pre>", print_r($this,true), "</pre>";
die();

to the top of the email function.

This (as lots of you probably already know :blush:) prints out neatly on screen all values in an array.

Took the hint by the existing commented out debug bit. In fact, that little bit of code is going to be SO useful everywhere, for finding out what's going on.