Difference between revisions of "VbzCart/pieces/cart"
Jump to navigation
Jump to search
(→PHP files: repointing to GitHub repository) |
(list of classes) |
||
Line 1: | Line 1: | ||
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 {{l/same|order}}, or may be abandoned. They cannot currently be added to an existing order, although this might be useful functionality. | 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 {{l/same|order}}, or may be abandoned. They cannot currently be added to an existing order, although this might be useful functionality. | ||
+ | ==Code== | ||
Cart functionality is defined in: | Cart functionality is defined in: | ||
− | ==PHP files== | + | ===PHP files=== |
* {{vbzcart/code|shop.php}} -- customer-facing shopping support | * {{vbzcart/code|shop.php}} -- customer-facing shopping support | ||
* {{vbzcart/code|cart.php}} -- basic business logic | * {{vbzcart/code|cart.php}} -- basic business logic | ||
** {{vbzcart/code|cart-data.php}} -- non-item data stored in cart | ** {{vbzcart/code|cart-data.php}} -- non-item data stored in cart | ||
+ | *** {{vbzcart/code|cart-data-handler.php}} | ||
+ | ** {{vbzcart/code|cart-display.php}} -- rendering classes for different contexts | ||
** {{vbzcart/code|cart-lines.php}} -- handles content items | ** {{vbzcart/code|cart-lines.php}} -- handles content items | ||
* {{vbzcart/code|mw/admin.cart.php}} -- MediaWiki-based administration (not supported as of 2015-01-25) | * {{vbzcart/code|mw/admin.cart.php}} -- MediaWiki-based administration (not supported as of 2015-01-25) | ||
Line 11: | Line 14: | ||
* {{vbzcart/code|vbz-page-ckout.php}} -- handles checkout process / pages | * {{vbzcart/code|vbz-page-ckout.php}} -- handles checkout process / pages | ||
− | ==data tables== | + | ===data tables=== |
* {{vbzcart|table|shop_cart}} | * {{vbzcart|table|shop_cart}} | ||
** {{vbzcart|table|shop_cart_data}}: contact information for payment and shipping | ** {{vbzcart|table|shop_cart_data}}: contact information for payment and shipping | ||
** {{vbzcart|table|shop_cart_event}}: cart-specific event log | ** {{vbzcart|table|shop_cart_event}}: cart-specific event log | ||
** {{vbzcart|table|shop_cart_line}}: cart contents | ** {{vbzcart|table|shop_cart_line}}: cart contents | ||
+ | |||
+ | ===classes=== | ||
+ | * '''clsShopCarts''' ''extends clsTable'' | ||
+ | * '''clsShopCart''' ''extends clsVbzRecs'' | ||
+ | * '''clsShopCartLines''' ''extends clsTable'' | ||
+ | * '''clsShopCartLine''' ''extends clsDataSet'' | ||
+ | * '''cCartDisplay''' | ||
+ | ** '''cCartDisplay_full''' ''abstract'' | ||
+ | *** '''cCartDisplay_full_HTML''' ''abstract'' | ||
+ | **** '''cCartDisplay_full_shop''' - for editable rendering (while shopping) | ||
+ | **** '''cCartDisplay_full_ckout''' - for static rendering (at checkout time) | ||
+ | *** '''cCartDisplay_full_TEXT''' - for plaintext rendering, mainly used for email confirmation | ||
+ | * '''cCartItem''' ''abstract'' | ||
+ | ** '''cCartLine_base''' ''abstract'' | ||
+ | *** '''cCartLine_static''' | ||
+ | **** '''cCartLine_form''' | ||
+ | **** '''cCartLine_text''' | ||
+ | * '''clsCartTotal''' ''abstract'' | ||
+ | ** '''clsCartTotal_shop''' | ||
+ | ** '''clsCartTotal_admin''' | ||
+ | * '''clsCartVars''' ''extends clsTable_indexed'' | ||
+ | * '''clsCartVar''' ''extends clsRecs_indexed'' | ||
+ | * '''clsCartDataGrp''' ''abstract'' | ||
+ | ** '''clsPerson''' ''abstract'' | ||
+ | *** '''clsPerson_Buyer''' | ||
+ | **** '''clsPayment''' | ||
+ | *** '''clsPerson_Recip''' |
Revision as of 15:35, 4 September 2015
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.
Code
Cart functionality is defined in:
PHP files
- REDIRECT Template:l/vc/code -- customer-facing shopping support
- cart.php -- basic business logic
- cart-data.php -- non-item data stored in cart
- cart-display.php -- rendering classes for different contexts
- cart-lines.php -- handles content items
- mw/admin.cart.php -- MediaWiki-based administration (not supported as of 2015-01-25)
- vbz-page-cart.php -- public user interface (i.e. displays carts for customers)
- vbz-page-ckout.php -- handles checkout process / pages
data tables
- shop_cart
- shop_cart_data: contact information for payment and shipping
- shop_cart_event: cart-specific event log
- shop_cart_line: cart contents
classes
- clsShopCarts extends clsTable
- clsShopCart extends clsVbzRecs
- clsShopCartLines extends clsTable
- clsShopCartLine extends clsDataSet
- cCartDisplay
- cCartDisplay_full abstract
- cCartDisplay_full_HTML abstract
- cCartDisplay_full_shop - for editable rendering (while shopping)
- cCartDisplay_full_ckout - for static rendering (at checkout time)
- cCartDisplay_full_TEXT - for plaintext rendering, mainly used for email confirmation
- cCartDisplay_full_HTML abstract
- cCartDisplay_full abstract
- cCartItem abstract
- cCartLine_base abstract
- cCartLine_static
- cCartLine_form
- cCartLine_text
- cCartLine_static
- cCartLine_base abstract
- clsCartTotal abstract
- clsCartTotal_shop
- clsCartTotal_admin
- clsCartVars extends clsTable_indexed
- clsCartVar extends clsRecs_indexed
- clsCartDataGrp abstract
- clsPerson abstract
- clsPerson_Buyer
- clsPayment
- clsPerson_Recip
- clsPerson_Buyer
- clsPerson abstract