PHP Classes

Faucart: Manage the items of a shopping cart

Recommend this page to a friend!
  Info   Screenshots Screenshots   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 66%Total: 2,812 This week: 1All time: 1,343 This week: 560Up
Version License Categories
faucart 1.0FreewareE-Commerce
Description 

Author

FauCart is a package that can manage the items of a shopping cart of an e-commerce site.

There is one call for managing the whole shopping cart and another for managing individual shopping items. The items are added to the a cart by creating item objects and calling a function of the cart class to add items.

The cart class also has functions for locating or removing items by position or identifier number, get all items, empty the cart, update the quantities of an item, compute the total price of all items in the cart.

Picture of fausto
Name: fausto <contact>
Classes: 1 package by
Country: Italy Italy
Age: ???
All time rank: 113644 in Italy Italy
Week rank: 411 Up18 in Italy Italy Up

Details

### Very small and lightweight e-commerce cart ### ### by Fausto Iannuzzi - 2005 ### ################################################ # # Faucart Library # # by Fausto Iannuzzi - 2005 - free to use # # for any question please write to fauian@tin.it # ################################################ A very short description ------------------------ FauCart is a free PHP shopping cart class for your ecommerce web site. It can be the main component of your PHP based online store. It's designed in PHP 4 in a very simple way. Developers may find it very simple to implement in their source code. The use of faucart is very simple. Instructions ------------ First of all, you have to include the main class inside your source code: require_once "faucart.lib.php"; then is possibile to add your item to our new shopping cart $cart_object->addItem(new faucartelement("Tower Computer","Very big computer",1240.12)); $cart_object->addItem(new faucartelement("Chicken","chicken on the grill",5)); if you want to delete an element from chart: $element = new faucartelement("Compact disc player","supporting both dvds and cds",45); $cart_object->addItem($element); $cart_object->delItem($element); after that you can also change the quantity of a product $cart_object->updateQuantity($element,3); or calculate the total cost $cart_object->total(); or simply delete all items: $cart_object->emptyCart(); if you want your cart is session persistent, you have to start your session with the php functions "session_start", before including faucart.lib.php session_start(); require_once "faucart.lib.php"; and then if you want to save to session your updated shopping cart, you have to call the fuction: toSession(); at the end of your php page. NOTE ---- Please run demo files to see faucart in action. CONTACTS -------- For any question please write to fauian@tin.it

Screenshots  
  • faucart.gif
  Files folder image Files  
File Role Description
Plain text file faucart.lib.php Class main class
Plain text file faucart_demo1.php Example class test file
Plain text file faucart_demo2.php Example Main demo script
Plain text file readme.txt Doc. a very short documentation

 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,812
This week:1
All time:1,343
This week:560Up
User Ratings User Comments (1)
 All time
Utility:86%StarStarStarStarStar
Consistency:84%StarStarStarStarStar
Documentation:68%StarStarStarStar
Examples:79%StarStarStarStar
Tests:-
Videos:-
Overall:66%StarStarStarStar
Rank:545
 
It could have more methods like counting items.
15 years ago (Webmaster Ideias)
72%StarStarStarStar