Re: Creating an OO Shopping Cart

From: Date: Fri, 21 Apr 2006 10:09:49 +0000
Subject: Re: Creating an OO Shopping Cart
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-234468@lists.php.net to get a copy of this message
Nicolas Verhaeghe wrote:
[snip]
I'm creating my own Object Oriented PHP Shopping Cart.
Okaaaaaaay.
...
To answer our friend, he seems to have to learn to develop simple applications before starting building something as complex as a shopping cart. Not only complex, but also sensitive, because the end of the process is to handle credit card numbers, and I would not trust a beginner to handle that type of information.
get ready for a 'Richard Lynching' with regard to the CC statement. ;-) unless your name is VISA (or somethin gin a similar vein) you don't ever touch a creditcard number - ever, ever, ever. this saves you getting sued, your house being sold from underneath and consequently your wife leaving you. Richard Lynch has given very detailed responses to the issues of handling credit cards on numerous occasions on this list - do yourself a favor and search the archives and read what he had to say - his is sound advice imho.
Functions that perform operations such as manipulating objects (a shopping cart is an object, after all, so are the items, and the client's information) are simply performed at the top and the functions which display the changes or prompts the buyer for operations are shown at the bottom, it's all very straight and linear.


« previous php.general (#234468) next »