Version

1.125.2.23.2.17.2.50.2.148 (checked in on 2008/06/12 at 17:34:03 by brmassa)

Description

store.module The store module provides the core e-Commerce functionality. It provides many pages for transaction and general e-Commerce site management.

@todo: Add a store_set_workflow($txnid, $state) and store_get_workflow($txnid). Function must use store_transaction_save(array('txnid' => $txnid, 'workflow' => N)) to ensure hooks are called properly. See payment_set_status() for more information.

Constants

Namesort iconDescription
ECMAIL_TYPE_ASK_CUSTOMER
ECMAIL_TYPE_CANCEL_TXN
ECMAIL_TYPE_CUSTOMER_INVOICE@name e-Commerce Mail Types
ECMAIL_TYPE_PROCESSING_ERROR
EC_ALLOC_COMPLETED
EC_ALLOC_PART
EC_ALLOC_PENDING@name Transaction allocation statuses
EC_WORKFLOW_CANCELED
EC_WORKFLOW_COMPLETED
EC_WORKFLOW_INVOICED
EC_WORKFLOW_PACKAGED
EC_WORKFLOW_RECEIVED@name Workflow statuses
EC_WORKFLOW_SECURITY_VIOLATION
EC_WORKFLOW_SHIPPED
EC_WORKFLOW_WAITING_RESPONSE
MAILVAR_ASK_CUSTOMER
MAILVAR_CANCEL_TXN
MAILVAR_CUSTOMER_INVOICE@name e-Commerce Mail Callbacks
MAILVAR_PROCESSING_ERROR
STORE_TOKEN_TYPEe-Commerce token type used to define tokens.See alsostore_token_list(), store_token_values()

Functions

Namesort iconDescription
store_adjust_miscAdd all the invisible miscellaneous transaction to an item
store_allocation_infoImplementation of hook_allocation_info()
store_alloc_allocation
store_alloc_build_items
store_alloc_get_addressGet the billing or shipping address from a transaction
store_alloc_get_currency
store_alloc_get_customerGet all customer data from a transaction
store_alloc_get_customer_namesGet the customer name from a given transaction. If it was not previously defined into first and last names, it must be extracted thru Regex
store_alloc_get_invoice_no
store_alloc_get_items
store_alloc_get_payment_dataImplementation of hook_alloc_get_payment_data()
store_alloc_get_payment_formImplmentation of hook_alloc_get_payment_form()
store_alloc_get_payment_typeImplmentation of hook_alloc_get_payment_type()
store_alloc_get_totalImplmentation of hook_alloc_get_total()
store_alloc_loadImplementation of hook_alloc_load()
store_alloc_set_payment_dataImplementation of hook_alloc_set_payment_data()
store_cronImplementation of hook_cron().
store_ec_transactionapiImplementation of hook_ec_transactionapi().
store_ec_transaction_postImplementation of hook_ec_transaction_post()
store_ec_txn_workflowImplementation of hook_ec_txn_workflow()
store_ec_widgetsImplementation of hook_ec_widgets().
store_form_alterImplementation of hook_form_alter()
store_get_countryGet the country name from the Id
store_get_country_idSearch for the Id of a country.
store_helpImplementation of hook_help().
store_invoiceA wrapper for theme('store_invoice')
store_invoiceapiImplementation of hook_invoiceapi()
store_invoke_ec_transactionapiInvoke a hook_ec_transactionapi() operation in all modules.
store_linkImplementation of hook_link()
store_menuImplementation of hook_menu().
store_name_measureGet a currently configured measure label. Pass 'weight' and KG to get Kilograms If you leave $measure empty, the saved value is used.
store_quicklist_headerGet a quick html header for printable pages.
store_recalc_transactionRecalc product prices and associated charges on the transaction.
store_search_miscLook for a miscellaneous items on a transaction.
store_token_listImplements hook_token_list() from the token module.
store_token_valuesImplements hook_token_values() from the token module.
store_transaction_address_fieldsReturn the fields of the transaction_address table.
store_transaction_allocationReturns an array of allocation status IDs and corresponding descriptions.
store_transaction_cachestore_transaction_cache()
store_transaction_calc_grossCalculate the total of the invoice
store_transaction_cancel
store_transaction_fieldsReturn the fields of the transaction table.
store_transaction_loadLoad a transaction.
store_transaction_misc_fieldsReturn the fields of the transaction_misc table.
store_transaction_product_fieldsReturn the fields of the transaction_product table.
store_transaction_saveSave a transaction to the database.
store_transaction_save_miscSave Miscellaneous transactions
store_transaction_workflowReturns an array of workflow status IDs and corresponding descriptions.
transaction_get_allocationGet the descriptive name of an allocation ID.
transaction_get_workflowGet the descriptive name of an workflow ID.
transaction_get_workflow_idLegacy, get a workflow ID by descriptive name.
transaction_set_workflowSets the workflow state of the given transation to the state given. This function accepts both the textual state and the numeric state. If a textual state (valid values are in store_transaction_workflow()) is given it will be converted to the...
transaction_valid_workflowLegacy; determine if a passed workflow id is valid.