PHP Basket Class with OOP
One shopping solution of many is a session solution with classes (OOP). Standard features: Cookie control, presentation of products, basket handling (add, remove, increase, reduce quantity, zero result handling, subtotal and total), session check plus detection of string manipulations. The handling of the orders is done by the basket class. That for we need two sessions: one for the basket with the orders and one for the quantities of orders (which are identified through arrays and the product id). In the next step we control, if the user takes the same order more then once. Whith a control variable (+/-) and a foreach loop we increase or reduce the quantity. The shopping basket is a combination between a while-list-each- and a database-query. If quantity result is zero, order will be removed from basket. Security feature: Intrudors will be recognized by a explode script that determines string manipulations (in this example a table name, but also very usefull for other strings).
- Visit Site:
- PHP Basket Class with OOP
- Version:
- eCSess_01_07
- Filed in:
-
PHP / Scripts & Programs / E-Commerce / Miscellaneous
- Platforms:
-
- Date Added:
- Feb 16, 2009
- Last Updated:
- Feb 16, 2009
License and Pricing Information
Freeware
Price: $0.00 USD
| Publisher site visits: | 389 |
|---|---|
| Average rating: | 0.00 |
| Total ratings: | 0 |
Publisher Info
- Author:
- Claudio Biesele
Other listings by this publisher
- PHP calendar with AJAX driven agenda
- Breadcrumbs navigation with PHP 5, SimpleXML, XPath and class
- Menu Handling Class with SimpleXML and PHP
- Advanced Form Handling with PHP
- Combine XML, Files and SQLite with PHP 5
- Web safety with AJAX and PHP 5
- PHP Multipurpose Forms with data binding and cross table
- Handle remote data with PHP 5 and REST Web service
- Small Reservation CMS with setup file for easy installation
