1.133.2.14.2.10.2.24.2.114 (checked in on 2008/06/08 at 00:58:19 by gordon)
@author e-Commerce Dev Team cart.module Manage the user selected products (cart), the checkout pages and the checkout review screen.
| Name | Description |
|---|---|
| EC_CART_AJAX | |
| EC_CART_HIDE_EMPTY | |
| EC_CART_ITEM_ADDED | |
| EC_CART_ITEM_REMOVED | |
| EC_CART_ITEM_UPDATED | |
| EC_CART_SHOW |
| Name | Description |
|---|---|
| cart_add | Add item to cart and return to destination (default: cart/view). Passing data from $_REQUEST if it exists. |
| cart_ajax_add | Add an item to the cart via ajax |
| cart_ajax_load | Load the Cart block onto the page |
| cart_block | Implementation of hook_block(). The shopping cart block. |
| cart_checkout | Main transition between cart and checkout. Will keep the user on cart/view if there are errors, but will send to checkout/process and initialize the cart otherwise. |
| cart_cron | Implementation of hook_cron(). |
| cart_current | Get the results of cart_get_cart() for current user. |
| cart_delete | Delete item from cart and goto to destination. |
| cart_display_block | Prepares the cart block for theme_cart_display_block(). Is also used by ajax_cart_load() |
| cart_display_block_item | Prepares the cart block line item theme_cart_display_block_item(). |
| cart_ec_transactionapi | Implementation of hook_ec_transactionapi() Empty cart when transaction is completed and inserted |
| cart_edit | Edit (update) an item in cart and goto to destination. Passing data from $_REQUEST if it exists. |
| cart_empty | Remove all items from the cart. |
| cart_exit | Implementation of hook_exit(). |
| cart_form_alter | Implementation of hook_form_alter() for modifying the checkout product form. |
| cart_get_cart | Grab the items of a shopping cart for a user, which can also provide the data for an individual product. |
| cart_get_item_total | Get an item total. This will correct quantity per product_has_quantity(). |
| cart_get_total | Get the total of all items in the cart. |
| cart_help | Implementation of the hook_help(). |
| cart_item_nodify | Take a cart item and add node data. |
| cart_link | Implementation of hook_link(). |
| cart_menu | Implementation of hook_menu(). |
| cart_nodeapi | Implementation of hook_nodeapi() |
| cart_product_form_submit | The "Add to cart" form with Quantity |
| cart_update_item | Update an item in the cart. Use for add, remove, update items and check the return value to find out what happened. No messages are set in this function, making it useful to call dynamically. |
| cart_update_qty | Update quantity only (preserve $data on cart item). This is a convenient wrapper for cart_update_item. |
| cart_user | Implementation of hook_user(). |
| cart_view | The cart view page. Handles adding, editing, and deleting items from cart. |
| cart_view_cart_to_move | |
| cart_view_form | This is a form to handle the cart view |
| cart_view_form_submit | Implements the _submit hook for the cart_view form |
| cart_view_form_validate | Validate cart updates |
| theme_cart_display_block | Themes the cart block. Called by cart_display_block(). |
| theme_cart_display_block_item | Themes the cart block item |
| theme_cart_display_block_title | Themes the cart block title |
| theme_cart_empty | Tall user that their cart is empty |
| theme_cart_view_form | Returns a themed shopping cart form. |
| _cart_form_filter_extra | Utility for theme_cart_view_form() |
| _cart_load | An internal function that loads the cart items of a particular user. |
| _cart_save | An internal function that updates an item in the cart. |