Databases: DB Cart Class
Olaf Lederer (contact me)
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.
| Utility
| Consistency
| Docs
| Examples
| Tests
| Videos
| Overall
| Rank
|
| Good (89.6%)
| Good (89.6%)
| Good (87.5%)
| Good (87.5%)
| -
| -
| Sufficient (71.2%)
| 123 |
Click here for detailed information about this class on phpclasses.org
Icon
the add to cart image used by an example file
Class
this extenstion is used to handle carts where the "on stock" amount is important
Doc.
log file about bug fixes and updates
Example
DB_cart "checkout" expample
Appl.
example file to check out an order with stock values (products)
Class
The class file with all methods an variables
Example
DB_cart "confirmation" expample
Example
DB_cart expample (order form)
Data
Example tabels (products and customer)
Example
A more simple example product list
Doc.
Readme and usage information
Appl.
an example that shows a confirmation and updates the stock value
Appl.
example file to build an order page with products and stock values