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]
