PHP Classes
elePHPant
Icontem

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

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog (2)    
Last Updated Ratings Unique User Downloads Download Rankings
2015-07-12 (3 years ago) RSS 2.0 feedStarStarStar 51%Total: 8,831 This week: 6All time: 171 This week: 74Up
Version License PHP version Categories
session_cart 5The PHP License5.0E-Commerce, AJAX
Description Author

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.

Recommendations

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

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

Screenshots  
  • cart.jpg
  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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:8,831
This week:6
All time:171
This week:74Up
User Ratings User Comments (1)
 All time
Utility:77%StarStarStarStar
Consistency:72%StarStarStarStar
Documentation:-
Examples:57%StarStarStar
Tests:-
Videos:-
Overall:51%StarStarStar
Rank:2172
 
Thank you, Good Job Good luck Ayoub Bekkey
5 years ago (Ayoub Bekkey)
52%StarStarStar