PHP Classes

Shopping Cart: Manipulate the item of a shopping cart using AJAX

Recommend this page to a friend!

  Author Author  
Name: Ashraf Gheith <contact>
Classes: 9 packages by
Country: Bosnia and Herzegovina Bosnia and Herzegovina
Age: 35
All time rank: 191 in Bosnia and Herzegovina Bosnia and Herzegovina
Week rank: 2 Up1 in Bosnia and Herzegovina Bosnia and Herzegovina Equal
Innovation award
Innovation award
Nominee: 1x

  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This class can be used to manipulate the items of a shopping cart using AJAX to avoid making the user leave the current page.

The class can generate HTML and Javascript to show the list of items in the shopping cart.

The list has form submit buttons to trigger the execution of AJAX requests that can add or remove items from the shopping cart.

The list of shopping cart items is stored in a session variable.

The actions of adding and removing items are also tracked by storing the action details in a MySQL database table.

  Classes of Ashraf Gheith  >  Shopping Cart  >  Download Download .zip .tar.gz  >  Support forum Support forum (1)  >  Blog Blog (2)  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Shopping Cart
Base name: session_cart
Description: Manipulate the item of a shopping cart using AJAX
Version: 5
PHP version: 5.0
License: The PHP License
All time users: 8758 users
All time rank: 174
Week users: 7 users
Week rank: 36 Up
  Groups   Screenshots Screenshots   Rate classes User ratings   Applications   Files Files  

Group folder image E-Commerce Online stores, shopping baskets and payment methods View top rated classes
Group folder image AJAX Interact with the Web server without page reloading View top rated classes

  Files folder image Screenshots  
File Role Description
Accessible without login Image file cart.jpg Screen A screenshot of the cart show function..


Store and show shopping cart items
I have an existing website that I want to add a shopping cart.

  User ratings  
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: Sufficient (77%) Sufficient (72%) - Not sure (57%) - - Not sure (51%) 2162
Month: Not yet rated by the users

  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Plain text file cart.php Class The Main Class
Plain text file cart.sql Data SQL file
Plain text file config.php Conf. Configuration file
Plain text file ajax.php Example AJAX file
Plain text file index.php Example Index file
Plain text file show-cart.php Example Show cart elements
Plain text file main.js Data JS script

Install with Composer Install with Composer - Download Download all files: session_cart.tar.gz
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.