1.1.2.4.2.15.2.47 (checked in on 2008/03/23 at 11:18:08 by sime)
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?
| Name | Description |
|---|---|
| ECANON_POLICY_ALWAYS | |
| ECANON_POLICY_DEFAULT | |
| ECANON_POLICY_NEVER | |
| ECANON_POLICY_OPTIONAL | |
| ECANON_POLICY_UNSET | |
| ECANON_TOKEN_LENGTH |
| Name | Description |
|---|---|
| ec_anon_blank | Used to display a blank page. |
| ec_anon_checkoutapi | Implements hook_checkoutapi() |
| ec_anon_customer_get_id | Implementation of hook_customer_get_id() |
| ec_anon_customer_get_info | |
| ec_anon_customer_get_name | |
| ec_anon_customer_info | Implementation of hook_customer_info() |
| ec_anon_customer_search | Implementation of hook_customer_search() |
| ec_anon_disable | Implementation of hook_disable() |
| ec_anon_ec_checkout_validate_item | Implementation of hook_cart_add_item() |
| ec_anon_ec_transactionapi | Implementation of hook_transactionapi() |
| ec_anon_enable | Implementation of hook_enable() |
| ec_anon_feature_info | Implementation of hook_feature_info() |
| ec_anon_form_alter | Implementation of hook_form_alter(). |
| ec_anon_generate_token | Generates a token that gives anonymous customers direct access to their order status etc. |
| ec_anon_help | Implementation of hook_help(). |
| ec_anon_insert | Implementation of hook_insert() |
| ec_anon_load | Implementation of hook_load() |
| ec_anon_load_product | Loads the product policy information into the product node. |
| ec_anon_login_allowed | This 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_menu | Implementation of hook_menu(). |
| ec_anon_policy_description | |
| ec_anon_policy_get | Returns the policy for the given product. If the product has no policy set this function returns the site-wide policy. |
| ec_anon_policy_list | Returns an associative array of policies for use on form select elements. |
| ec_anon_product_allowed_in_cart | Returns true if the given product is allowed in the cart of the given user. |
| ec_anon_product_form_alter | Implementation of hook_product_form_alter(). |
| ec_anon_product_types | Implementation of hook_product_types() |
| ec_anon_registration_confirm_sent | Displays a message to the user after registration has completed. Accepts $reg_type of 'standard' or 'express' (logintoboggan). |
| ec_anon_save_product | Saves 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_settings | Anonymous customer Settings |
| ec_anon_update | Implementation of hook_update() |
| ec_anon_user | |
| ec_anon_validate_mail | |
| theme_ec_anon_review_form | Insert the email field in case the user is not logged |