Re: Best method to store shopping cart contents

From: Date: Fri, 28 Jan 2005 15:06:26 +0000
Subject: Re: Best method to store shopping cart contents
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-207594@lists.php.net to get a copy of this message
Bosky, Dave wrote:
I've written some nice shopping carts in Cold Fusion that use a session variable to hold an array of structures. I need to convert the shopping cart to PHP but I'm unsure of how to store the cart's contents using PHP. Should I create a multi-dimensional array and store it a session variable?
I currently store an object (called Basket ;-) in the Session (for one of my projects) which is in effect the same thing - works great - just remember that if you have objects stored in your session then you must include the class definitions _before_ you start the session.
Any good tutorials/examples on creating shopping cart apps using PHP?
if your a list member then you should have received an email from Richard Lynch - he posted a link to a page he setup that lists pro/cons for LOTS of commerce apps. that would be a good place to start looking!
Thanks, Dave HTC Disclaimer: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you.
not if you send to a mailing list it aint ;-)

« previous php.general (#207594) next »