Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / How to get total sum of an order on checkout_success page?

How to get total sum of an order on checkout_success page?

Locked

Started by breadfan on 17 Jan 2008, 8:36 PM · Views: 1,701

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
17 Jan 2008, 8:36 PM
#1
breadfan avatar

breadfan

New Zenner

Join Date:
Jul 2007
Posts:
52
Plugin Contributions:
0

Post #1 by breadfan

Hi.

I need to get a total sum of an order on the checkout_success page. I got the order id through $zv_orders_id, but in what variable is the total sum stored?

Thank you very much in advance.

18 Jan 2008, 11:11 AM
#2
breadfan avatar

breadfan

New Zenner

Join Date:
Jul 2007
Posts:
52
Plugin Contributions:
0

Post #2 by breadfan

And I have one more question, if you don't mind. Is it possible to do without directly accessing the database tables?

19 Jan 2008, 2:38 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #3 by ajeh

Did you try:
$orders->fields['order_total']

$orders holds all of the fields from the orders table on the order and is pulled on the checkout_success in the header_php so they are available as needed on the tpl_checkout_success_default.php ,,,

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

19 Jan 2008, 1:03 PM
#4
breadfan avatar

breadfan

New Zenner

Join Date:
Jul 2007
Posts:
52
Plugin Contributions:
0

Post #4 by breadfan

No, I didn't and now I did...and it works!
Thank you very much :hug:

20 Feb 2008, 5:27 PM
#5
barricades avatar

barricades

Inactive

Join Date:
May 2007
Posts:
150
Plugin Contributions:
0

Post #5 by barricades

I'm looking for something similar but I just want the sub-total. What is the equivalent of $orders->fields['order_total'] for the total before Tax and shipping?

Thanks