PHP Basket Class with OOP eCSess_01_07

One shopping solution of many is a session solution with classes (OOP).

Standard Features of PHP Basket Class with OOP:
- 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 of PHP Basket Class with OOP:
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).

License type: Freeware
Date added: 8 years, 4 months 20 days ago | Last updated: 8 years, 4 months 20 days ago

More popular E-Commerce

This is actually one of the most advanced image hosting script. The imagetize key features: SEO, Ads Ready, Admin

Listing Files

  • basketOOP_3.gif
  • 36.8 KB
  • 11/20/2007 07:47:14
  • basketOOP_2.gif
  • 11.2 KB
  • 11/20/2007 07:49:14
  • basketOOP_6.gif
  • 12.8 KB
  • 11/20/2007 08:33:24
  • basketOOP_4.gif
  • 9.6 KB
  • 11/20/2007 07:48:48
  • basketOOP_5.gif
  • 9.9 KB
  • 11/20/2007 08:32:22
  • basketOOP_1.gif
  • 43.6 KB
  • 11/20/2007 07:41:46
Hot Scripts