Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Find total and id of an order, esp to use with an affiliate tracking pixel/tool

Find total and id of an order, esp to use with an affiliate tracking pixel/tool

Locked

Started by backstage on 11 Jul 2009, 11:12 PM · Views: 1,657

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
11 Jul 2009, 11:12 PM
#1
backstage avatar

backstage

Zen Follower

Join Date:
Jan 2006
Posts:
108
Plugin Contributions:
0

Post #1 by backstage

Hi

I need to find the total cost without tax, and the id of and order, and save those in 2 different variables

Can somebody help how to do that.

$totalamountwitouttax = ????
$order_id = ????

Please help me

Thank you

Kind Regards
Kim :)

12 Jul 2009, 2:28 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

Several variables are available when in the tpl_checkout_success_default.php page:

$order_summary['order_number']
$order_summary['order_subtotal']
$order_summary['credits_applied']
$order_summary['order_total']
$order_summary['commissionable_order']
$order_summary['commissionable_order_formatted']
$order_summary['coupon_code']

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.