PHP Classes

Shopping Cart by satya and Deepak: Manage shopping carts that are kept between visits

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 38%Total: 2,685 All time: 1,421 This week: 455Up
Version License PHP version Categories
satya 1.0Freeware4.0Databases, E-Commerce


This class can be used to manage shopping carts that preserve the items between visits. Recommended for Smarty template.

It stores the cart items in a MySQL database table, so the items are not lost after the session on which the items were added is not lost.

The cart items are associated to a session identifier that can be stored in a persistent cookie to allow recovering the cart items later.

The class can add items to a cart, check if the item was already added, update the quantity of an item, clear all the cart items, calculate the cart items total cost, dispĺay all the cart items, etc..

Picture of Satya Prakash
Name: Satya Prakash <contact>
Classes: 1 package by
Country: India India
Age: 43
All time rank: 118265 in India India
Week rank: 259 Up16 in India India Up

  • cart.jpg
  Files folder image Files  
File Role Description
Plain text file cart.php Example Example how the class can be used
Plain text file checkout.php Example Example script for checkout
Plain text file class.cart.php Class Class File
Plain text file db_class Class Class file for database connectivity
Plain text file shopping Aux. Query for the cart table

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:1,421
This week:455Up
User Ratings User Comments (1)
 All time