Version

1.1.2.4.2.15.2.47 (checked in on 2008/03/23 at 11:18:08 by sime)

Description

ec_anon.module Enables user account provision when products are purchased. @author Sammy Spets (thanks to Synerger Pty Ltd, Australia)

@todo: get blocked user purchasing working @todo: provide access to invoice via token @todo: provide access to order status via token @todo: When processing a login the cart contents need to be recalculated for member specials @todo: Add hook_delete() for the feature api to remove the ec_anon when the node is deleted @todo: Upgrades from 4.7 that use address or civicrm modules need this module installed during the upgrade. Explore if this is possible. @todo: (5.0) Upgrade adds email addresses for the uid != 0 transactions @todo: (5.0) Admin display must show both the email address at time of transaction and the user's current email address @todo: (5.0) Add hook to obtain the email address for the transaction hook_transactionapi($txn, 'get email', [true for current, false for time of transaction]) @todo: (5.0) Overhaul payment system to allow blocked users to pay for their order. Does this need to happen with the token system in place?

Constants

Namesort iconDescription
ECANON_POLICY_ALWAYS
ECANON_POLICY_DEFAULT
ECANON_POLICY_NEVER
ECANON_POLICY_OPTIONAL
ECANON_POLICY_UNSET
ECANON_TOKEN_LENGTH

Functions

Namesort iconDescription
ec_anon_blankUsed to display a blank page.
ec_anon_checkoutapiImplements hook_checkoutapi()
ec_anon_customer_get_idImplementation of hook_customer_get_id()
ec_anon_customer_get_info
ec_anon_customer_get_name
ec_anon_customer_infoImplementation of hook_customer_info()
ec_anon_customer_searchImplementation of hook_customer_search()
ec_anon_disableImplementation of hook_disable()
ec_anon_ec_checkout_validate_itemImplementation of hook_cart_add_item()
ec_anon_ec_transactionapiImplementation of hook_transactionapi()
ec_anon_enableImplementation of hook_enable()
ec_anon_feature_infoImplementation of hook_feature_info()
ec_anon_form_alterImplementation of hook_form_alter().
ec_anon_generate_tokenGenerates a token that gives anonymous customers direct access to their order status etc.
ec_anon_helpImplementation of hook_help().
ec_anon_insertImplementation of hook_insert()
ec_anon_loadImplementation of hook_load()
ec_anon_load_productLoads the product policy information into the product node.
ec_anon_login_allowedThis function returns true if the customer can either register or login for the given transaction. The decision is made according to the anonymous purchasing policies on products and the site-wide anonymous purchasing policy.
ec_anon_menuImplementation of hook_menu().
ec_anon_policy_description
ec_anon_policy_getReturns the policy for the given product. If the product has no policy set this function returns the site-wide policy.
ec_anon_policy_listReturns an associative array of policies for use on form select elements.
ec_anon_product_allowed_in_cartReturns true if the given product is allowed in the cart of the given user.
ec_anon_product_form_alterImplementation of hook_product_form_alter().
ec_anon_product_typesImplementation of hook_product_types()
ec_anon_registration_confirm_sentDisplays a message to the user after registration has completed. Accepts $reg_type of 'standard' or 'express' (logintoboggan).
ec_anon_save_productSaves the user account provision information contained in the given node. Returns true if the save was successful. Otherwise it returns false. The system is designed to remove records where the policy setting is ECANON_POLICY_UNSET.
ec_anon_settingsAnonymous customer Settings
ec_anon_updateImplementation of hook_update()
ec_anon_user
ec_anon_validate_mail
theme_ec_anon_review_formInsert the email field in case the user is not logged