Recommend this page to a friend! |
Download .zip |
Info | Screenshots | View files (4) | Download .zip | Reputation | Support forum (1) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2005-04-09 (11 years ago) | 66% | Total: 2,779 | All time: 1,310 This week: 1,068 |
Version | License | Categories | ||||
faucart 1.0 | Freeware | E-Commerce |
Description | Author | |
FauCart is a package that can manage the items of a shopping cart of an e-commerce site. |
### 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 | ||
Files |
File | Role | Description |
---|---|---|
faucart.lib.php | Class | main class |
faucart_demo1.php | Example | class test file |
faucart_demo2.php | Example | Main demo script |
readme.txt | Doc. | a very short documentation |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
User Ratings | User Comments (1) | ||||||||||||||||||||||||||||||||||
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.