Version

1.133.2.14.2.10.2.24.2.114 (checked in on 2008/06/08 at 00:58:19 by gordon)

Description

@author e-Commerce Dev Team cart.module Manage the user selected products (cart), the checkout pages and the checkout review screen.

Constants

Namesort iconDescription
EC_CART_AJAX
EC_CART_HIDE_EMPTY
EC_CART_ITEM_ADDED
EC_CART_ITEM_REMOVED
EC_CART_ITEM_UPDATED
EC_CART_SHOW

Functions

Namesort iconDescription
cart_addAdd item to cart and return to destination (default: cart/view). Passing data from $_REQUEST if it exists.
cart_ajax_addAdd an item to the cart via ajax
cart_ajax_loadLoad the Cart block onto the page
cart_blockImplementation of hook_block(). The shopping cart block.
cart_checkoutMain 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_cronImplementation of hook_cron().
cart_currentGet the results of cart_get_cart() for current user.
cart_deleteDelete item from cart and goto to destination.
cart_display_blockPrepares the cart block for theme_cart_display_block(). Is also used by ajax_cart_load()
cart_display_block_itemPrepares the cart block line item theme_cart_display_block_item().
cart_ec_transactionapiImplementation of hook_ec_transactionapi() Empty cart when transaction is completed and inserted
cart_editEdit (update) an item in cart and goto to destination. Passing data from $_REQUEST if it exists.
cart_emptyRemove all items from the cart.
cart_exitImplementation of hook_exit().
cart_form_alterImplementation of hook_form_alter() for modifying the checkout product form.
cart_get_cartGrab the items of a shopping cart for a user, which can also provide the data for an individual product.
cart_get_item_totalGet an item total. This will correct quantity per product_has_quantity().
cart_get_totalGet the total of all items in the cart.
cart_helpImplementation of the hook_help().
cart_item_nodifyTake a cart item and add node data.
cart_linkImplementation of hook_link().
cart_menuImplementation of hook_menu().
cart_nodeapiImplementation of hook_nodeapi()
cart_product_form_submitThe "Add to cart" form with Quantity
cart_update_itemUpdate 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_qtyUpdate quantity only (preserve $data on cart item). This is a convenient wrapper for cart_update_item.
cart_userImplementation of hook_user().
cart_viewThe cart view page. Handles adding, editing, and deleting items from cart.
cart_view_cart_to_move
cart_view_formThis is a form to handle the cart view
cart_view_form_submitImplements the _submit hook for the cart_view form
cart_view_form_validateValidate cart updates
theme_cart_display_blockThemes the cart block. Called by cart_display_block().
theme_cart_display_block_itemThemes the cart block item
theme_cart_display_block_titleThemes the cart block title
theme_cart_emptyTall user that their cart is empty
theme_cart_view_formReturns a themed shopping cart form.
_cart_form_filter_extraUtility for theme_cart_view_form()
_cart_loadAn internal function that loads the cart items of a particular user.
_cart_saveAn internal function that updates an item in the cart.