PHP Classes

Faucart: Manage the items of a shopping cart

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 66%Total: 2,814 All time: 1,341 This week: 43Up
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: 170 Up7 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 (1)  
  • faucart.gif
  Files folder image Files (5)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,814
This week:0
All time:1,341
This week:43Up
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:541
 
It could have more methods like counting items.
16 years ago (Webmaster Ideias)
72%StarStarStarStar