PHP Classes

DB Cart Class: Manage a shopping cart stored in a MySQL database

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 70%Total: 9,845 All time: 144 This week: 16Up
Version License Categories
db_cart 1.0.0BSD LicenseDatabases, E-Commerce
Description 

Author

This class can manage a shopping cart with the details stored in a MySQL database.

It can be integrated with existing MySQL databases that contain the information about the products and customers. The cart can also be used without any existing customer information.

Currently it can perform several operations on shopping carts like adding items, display the cart contents, the VAT amount and the order totals, updating quantities or empty the cart.

It can all take care of the checkout process tasks like setting or updating the shipping address and send an order confirmation message to the customer.

It's possible recover the last "open" order for an existing customer during a limited time periode.

Since version 1.10 its possible to use this class with product data where the stock value is variable.

Picture of Olaf Lederer
  Performance   Level  
Name: Olaf Lederer is available for providing paid consulting. Contact Olaf Lederer .
Classes: 11 packages by
Country: The Netherlands The Netherlands
Age: 53
All time rank: 41 in The Netherlands The Netherlands
Week rank: 170 Down5 in The Netherlands The Netherlands Down
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

  Files folder image Files (15)  
File Role Description
Accessible without login Image file add2cart.gif Icon the add to cart image used by an example file
Plain text file db_cart_4stock.php Class this extenstion is used to handle carts where the "on stock" amount is important
Accessible without login Plain text file db_cart_changes.txt Doc. log file about bug fixes and updates
Accessible without login Plain text file db_cart_checkout_example.php Example DB_cart "checkout" expample
Accessible without login Plain text file db_cart_checkout_stock_example.php Appl. example file to check out an order with stock values (products)
Plain text file db_cart_class.php Class The class file with all methods an variables
Accessible without login Plain text file db_cart_confirm.php Example DB_cart "confirmation" expample
Accessible without login Plain text file db_cart_example.php Example DB_cart expample (order form)
Accessible without login Plain text file db_cart_example.sql Data Example tabels (products and customer)
Accessible without login Plain text file db_cart_example_btn_only.php Example A more simple example product list
Accessible without login HTML file db_cart_readme.htm Doc. Readme and usage information
Accessible without login Plain text file db_cart_required.sql Data Database structure
Accessible without login Plain text file db_cart_stock_confirm.php Appl. an example that shows a confirmation and updates the stock value
Accessible without login Plain text file db_cart_stock_example.php Appl. example file to build an order page with products and stock values
Accessible without login Plain text file db_config.php Conf. Database and application variables

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:9,845
This week:0
All time:144
This week:16Up
 User Ratings  
 
 All time
Utility:89%StarStarStarStarStar
Consistency:89%StarStarStarStarStar
Documentation:85%StarStarStarStarStar
Examples:85%StarStarStarStarStar
Tests:-
Videos:-
Overall:70%StarStarStarStar
Rank:247