is that an array or structure?

tony weeg
uncertified advanced cold fusion developer
tony at navtrak dot net
www.navtrak.net
office 410.548.2337
fax 410.860.2337


-----Original Message-----
From: Robert Orlini [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 8:56 AM
To: CF-Talk
Subject: RE: grand total


Sorry for the vagueness of my email. seesion.cart[i][2] holds the
quantity info multiplied by the price or session.cart[i][3].

Robert O.

-----Original Message-----
From: Tony Weeg [mailto:[EMAIL PROTECTED]
Sent: Friday, July 11, 2003 8:56 AM
To: CF-Talk
Subject: RE: grand total


question:
session.cart[i][2] is an array called cart? and its set to a session
var? and here you would be pulling the 2nd position from that array, on
the iteration number that "I" resolves to?

tony weeg
uncertified advanced cold fusion developer
tony at navtrak dot net
www.navtrak.net
office 410.548.2337
fax 410.860.2337


-----Original Message-----
From: Robert Orlini [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 11, 2003 8:48 AM
To: CF-Talk
Subject: grand total


Hello,

I'm still a newbie on CF so please bear with me. I had a co-worker help
me with some CF programming for a shopping cart. 

This code gives me the totalprice: <CFSET
totalprice=decimalformat(session.cart[i][2]) *
session.cart[i][3]>#dollarformat(totalprice)#

How can I calculate a grand total adding up all the results of each
total price generated in the session?

So far I have: <CFSET grandtotalprice=decimalformat(totalprice) + ?????
>#dollarformat(grandtotalprice#

Any help appreciated. Thanks as always.

Robert Orlini
HW Wilson
718-588-8400 x2656
���




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. 
http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to