I think your shippingcalculator.cfc should probably be a singleton. You
should not need to have more than one instance of the object in memory- all
you are doing is running a cart through it and returning shipping costs,
right? 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Will Tomlinson
Sent: Saturday, February 25, 2006 10:53 AM
To: [email protected]
Subject: Re: [CFCDev] cart objects


I dunno dude. It sounds good, but is kinda over my head right now. :)

Thanks much,
Will

Baz wrote:

>Hey Will,
>
>I would guess that the shippingcalculator.cfc should be passed into the 
>checkout.cfc at init(). That way you can easily re-use it in other 
>places (which is common for a shipping calculator). You would also 
>probably want to pass in the cart object so you can use the data stored 
>in it for the checkout. Other than that you would have the checkout cfc 
>perform the checkout functions specific to your app (add order, notify 
>someone, update some setting, etc...)
>
>What do u think?
>
>Baz
>
> 
>
>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On 
>Behalf Of Will Tomlinson
>Sent: Saturday, February 25, 2006 6:50 AM
>To: [email protected]
>Subject: [CFCDev] cart objects
>
>Hey,
>
>I'm having some trouble grasping what methods belong where in my cart
>application.
>
>cart.cfc has the usual suspects:
>add()
>update()
>remove()
>showCart()
>getCartSubTotal()
>getCartProdCount()
>getShipWeight()
>etc...
>
>I also have a checkout.cfc, but what goes in it exactly? I had built a
>shipping calculator.cfc that adds shipping but I'm guessing that needs 
>to go in checkout.cfc instead?
>
>addShipping()
>addPaymentType()
>??
>
>Thanks,
>Will
>
>
>
>
>----------------------------------------------------------
>You are subscribed to cfcdev. To unsubscribe, send an email to 
>[email protected] with the words 'unsubscribe cfcdev' as the subject 
>of the email.
>
>CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
>(www.cfxhosting.com).
>
>An archive of the CFCDev list is available at 
>www.mail-archive.com/[email protected]
>
>
>
>
>
>----------------------------------------------------------
>You are subscribed to cfcdev. To unsubscribe, send an email to 
>[email protected] with the words 'unsubscribe cfcdev' as the subject 
>of the email.
>
>CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
>(www.cfxhosting.com).
>
>An archive of the CFCDev list is available at 
>www.mail-archive.com/[email protected]
>
>
>
>
>  
>

-- 
Will Tomlinson
Phone: 336.230.1123

"Custom software development for the web"
*******************************************************
ColdFusion Programming
Database Design
HTML
XHTML
XML
Javascript
Flash
SQL
MySQL
Microsoft SQL Server
Microsoft Access
3D modeling
Custom graphics

www.winstoncourtsports.com *NEW*
www.artistneedle.com 
www.wtomlinson.com
www.singinginfo.com
www.priceequipment.com
www.uniquetool.net
www.kennedyshipyards.com
www.virtualautosystem.com



----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
[email protected] with the words 'unsubscribe cfcdev' as the subject of the
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).

An archive of the CFCDev list is available at
www.mail-archive.com/[email protected]






----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to 
[email protected] with the words 'unsubscribe cfcdev' as the subject of the 
email.

CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting 
(www.cfxhosting.com).

An archive of the CFCDev list is available at 
www.mail-archive.com/[email protected]


Reply via email to