VbzCart/docs/pieces/cart: Difference between revisions
Jump to navigation
Jump to search
imported>Woozle (data tables) |
imported>Woozle (→data tables: sorted; explanations) |
||
Line 10: | Line 10: | ||
==data tables== | ==data tables== | ||
* {{l/same|tables/shop_cart}} | * {{l/same|tables/shop_cart}} | ||
** {{l/same|tables/ | ** {{l/same|tables/shop_cart_data}}: contact information for payment and shipping | ||
** {{l/same|tables/shop_cart_event}} | ** {{l/same|tables/shop_cart_event}}: cart-specific event log | ||
** {{l/same|tables/ | ** {{l/same|tables/shop_cart_line}}: cart contents |
Revision as of 18:24, 16 February 2013
A cart is a temporary holder for a collection of items to be ordered plus any order-fulfillment data (contact/shipping info, payment). The contents of a cart may be used to create a new order, or may be abandoned. They cannot currently be added to an existing order, although this might be useful functionality.
Cart functionality is defined in:
PHP files
- VbzCart/code/files/cart.php -- basic business logic
- VbzCart/code/files/cart-data.php -- non-item data stored in cart
- VbzCart/code/files/cart-lines.php -- handles content items
- VbzCart/code/files/admin.cart.php -- administration
- VbzCart/code/files/page-cart.php -- public user interface (i.e. displays carts for customers)
data tables
- tables/shop_cart
- tables/shop_cart_data: contact information for payment and shipping
- tables/shop_cart_event: cart-specific event log
- tables/shop_cart_line: cart contents