Foxee Extension Hooks
Use our Forums to find examples and answers to your questions. If you have advanced requirements for your project, contact us and our staff can help you find a solution.
Extension Hooks for Foxee 041
mcp.foxee.php
foxee_mcp_method - in method Foxee_CP method
// -------------------------------------------
// 'foxee_mcp_method' hook.
// - take over the method call
//
if ($EXT->active_hook('foxee_mcp_method') === TRUE) {
$edata = $EXT->call_extension('foxee_mcp_method', $this);
if( $EXT->end_script === TRUE ) return;
}
//
// -------------------------------------------
foxee_build_nav_arr - in method build_nav
// -------------------------------------------
// 'foxee_build_nav_arr' hook.
// - change the nav array
//
if ($EXT->active_hook('foxee_build_nav_arr') === TRUE) {
$nav_arr = $EXT->call_extension('foxee_build_nav_arr', $nav_arr);
if( $EXT->end_script === TRUE ) return;
}
//
// -------------------------------------------
foxee_add_general_setting_link - in method settings
// -------------------------------------------
// 'foxee_add_general_setting_link' hook.
// - add additional links in the general settings page.
//
if ($EXT->active_hook('foxee_add_general_setting_link') === TRUE) {
$edata = $EXT->call_extension('foxee_add_general_setting_link');
if( $EXT->end_script === TRUE ) return;
}
//
// -------------------------------------------
foxee_manageactivememberships_loop - in method manageactivememberships
// -------------------------------------------
// 'foxee_manageactivememberships_loop' hook.
// - edit membership data
//
if ($EXT->active_hook('foxee_manageactivememberships_loop') === TRUE) {
$hook = 'foxee_manageactivememberships_loop';
$item = $EXT->call_extension($hook, $item);
if( $EXT->end_script === TRUE ) return TRUE;
}
//
// -------------------------------------------
foxee_manageorders_types_params - in method manageorders
// -------------------------------------------
// 'foxee_manageorders_types_params' hook.
// - add to the product types params
//
if ($EXT->active_hook('foxee_manageorders_types_params') === TRUE) {
$hook = 'foxee_manageorders_types_params';
$types = $EXT->call_extension($hook, $types);
if( $EXT->end_script === TRUE ) return TRUE;
}
//
// -------------------------------------------
foxee_manageorders_types_select - in method manageorders
// -------------------------------------------
// 'foxee_manageorders_types_select' hook.
// - add to the product types selector
//
if ($EXT->active_hook('foxee_manageorders_types_select') === TRUE) {
$edata = $EXT->call_extension('foxee_manageorders_types_select');
if( $EXT->end_script === TRUE ) return TRUE;
}
//
// -------------------------------------------
foxee_manageorders_types - in method manageorders_types
// -------------------------------------------
// 'foxee_manageorders_types' hook.
// - add to the product types description
//
if ($EXT->active_hook('foxee_manageorders_types') === TRUE) {
$hook = 'foxee_manageorders_types';
$t = $EXT->call_extension($hook, $t, $item);
if( $EXT->end_script === TRUE ) return TRUE;
}
//
// -------------------------------------------
foxee_deleteorder_post - in method deleteorder
// -------------------------------------------
// 'foxee_deleteorder_post' hook.
// - perform additonal processing on order delete
//
if ($EXT->active_hook('foxee_deleteorder_post') === TRUE) {
$edata = $EXT->call_extension('foxee_deleteorder_post', $order['id']);
if( $EXT->end_script === TRUE ) return $edata;
}
//
// -------------------------------------------
foxee_updateorder_post - in method updateorder
// -------------------------------------------
// 'foxee_updateorder_post' hook.
// - perform additonal processing on order edit
//
if ($EXT->active_hook('foxee_updateorder_post') === TRUE) {
$edata = $EXT->call_extension('foxee_updateorder_post');
if( $EXT->end_script === TRUE ) return $edata;
}
//
// -------------------------------------------
mod.foxee.php
foxee_add_js_headers - in method headers
/* -------------------------------------
/* 'foxee_add_js_headers' hook.
/* - add in additional javascript headers
*/
if( $EXT->active_hook('foxee_add_js_headers') === TRUE)
{
$str = $EXT->call_extension('foxee_add_js_headers', $str);
if( $EXT->end_script === TRUE ) return;
}
/*
/* -------------------------------------*/
foxee_transaction_history_params - in method transaction_history
// -------------------------------------------
// 'foxee_transaction_history_params' hook.
// - change the parameters for the transaction_history tag
//
if ($EXT->active_hook('foxee_transaction_history_params') === TRUE) {
$params = $EXT->call_extension('foxee_transaction_history_params', $params);
if( $EXT->end_script === TRUE ) return TRUE;
}
//
// -------------------------------------------
foxee_addtocart_begin - in method addtocart
// -------------------------------------------
// 'foxee_addtocart_begin' hook.
// - take over the addtocart method.
//
if ($EXT->active_hook('foxee_addtocart_begin') === TRUE) {
$edata = $EXT->call_extension('foxee_addtocart_begin', $this);
if( $EXT->end_script === TRUE ) return;
}
//
// -------------------------------------------
foxee_addtocart_product_data_loop_end - in method addtocart
// -------------------------------------------
// 'foxee_addtocart_product_data_loop_end' hook.
// - add additional or change product data parameters
//
if($EXT->active_hook('foxee_addtocart_product_data_loop_end') === TRUE) {
$product_data = $EXT->call_extension('foxee_addtocart_product_data_loop_end', $product, $product_data);
if($EXT->end_script === TRUE) return;
}
//
// -------------------------------------------
foxee_addtocart_product_data_end - in method addtocart
// -------------------------------------------
// 'foxee_addtocart_product_data_end' hook.
// - add additional or change product data parameters
//
if($EXT->active_hook('foxee_addtocart_product_data_end') === TRUE) {
$product_params = $EXT->call_extension('foxee_addtocart_product_data_end', $this, $product_params);
if($EXT->end_script === TRUE) return;
}
//
// -------------------------------------------
foxee_addtocart_add_html - in method addtocart
// -------------------------------------------
// 'foxee_addtocart_add_html' hook.
// - add additional html to a product addto
//
if ($EXT->active_hook('foxee_addtocart_add_html') === TRUE) {
$str .= $EXT->call_extension('foxee_addtocart_add_html');
if( $EXT->end_script === TRUE ) return;
}
//
// -------------------------------------------
foxee_addtocart_custom_begin - in method addtocart_custom
// -------------------------------------------
// 'foxee_addtocart_custom_begin' hook.
// - take over the addtocart_custom method.
//
if ($EXT->active_hook('foxee_addtocart_custom_begin') === TRUE) {
$edata = $EXT->call_extension('foxee_addtocart_custom_begin', $this);
if( $EXT->end_script === TRUE ) return $edata;
}
//
// -------------------------------------------
foxee_addtocart_custom_form_begin - in method addtocart_custom
// -------------------------------------------
// 'foxee_addtocart_custom_form_begin' hook.
// - sends the object and the beginning form.
// - take over the addtocart_custom method.
//
if ($EXT->active_hook('foxee_addtocart_custom_form_begin') === TRUE) {
$edata = $EXT->call_extension('foxee_addtocart_custom_form_begin', $this, $form_begin);
if( $EXT->end_script === TRUE ) return $edata;
}
//
// -------------------------------------------
foxee_addtocart_custom_products_loop_end - in method addtocart_custom
// -------------------------------------------
// 'foxee_addtocart_custom_products_loop_end' hook.
// - take over the addtocart method.
//
if ($EXT->active_hook('foxee_addtocart_custom_products_loop_end') === TRUE) {
$edata = $EXT->call_extension('foxee_addtocart_custom_products_loop_end', $this, $index);
if( $EXT->end_script === TRUE ) return;
}
//
// -------------------------------------------
foxee_ajax_request - in method AjaxRequest
/* -------------------------------------
/* 'foxee_ajax_request' hook.
/* - execute an external ajaxrequest script
*/
if( $EXT->active_hook('foxee_ajax_request') === TRUE)
{
$edata = $EXT->call_extension('foxee_ajax_request');
if( $EXT->end_script === TRUE ) return;
}
/*
/* -------------------------------------*/
foxee_download_action_approved - in method DownloadFile
// -------------------------------------------
// 'foxee_download_action_approved' hook.
// - add additional processing for a download request.
//
if ($EXT->active_hook('foxee_download_action_approved') === TRUE) {
$edata = $EXT->call_extension('foxee_download_action_approved');
if( $EXT->end_script === TRUE ) return;
}
//
// -------------------------------------------
foxee_shared_auth_begin - in method shared_auth
// -------------------------------------------
// 'foxee_shared_auth_begin' hook.
// - take over the shared auth request.
//
if ($EXT->active_hook('foxee_shared_auth_begin') === TRUE) {
$edata = $EXT->call_extension('foxee_shared_auth_begin');
if( $EXT->end_script === TRUE ) return;
}
//
// -------------------------------------------
foxee_js_include_file_mime_type - in method js_include
/* -------------------------------------
/* 'foxee_js_include_file_mime_type' hook.
/* - set the mime type of the js include file
*/
if( $EXT->active_hook('foxee_js_include_file_mime_type') === TRUE)
{
$type = $EXT->call_extension('foxee_js_include_file_mime_type', $type);
if( $EXT->end_script === TRUE ) return;
}
/*
/* -------------------------------------*/
foxee_js_include_string - in method js_include
/* -------------------------------------
/* 'foxee_js_include_string' hook.
/* - set the JS string to something else.
*/
if( $EXT->active_hook('foxee_js_include_string') === TRUE)
{
$JS = $EXT->call_extension('foxee_js_include_string', $JS);
if( $EXT->end_script === TRUE ) return;
}
/*
/* -------------------------------------*/
foxee_build_hidden_fields - in method build_hidden_field string
// -------------------------------------------
// 'foxee_build_hidden_fields' hook.
// - make changes to the fields generated
//
if ($EXT->active_hook('foxee_build_hidden_fields') === TRUE) {
$fields = $EXT->call_extension('foxee_build_hidden_fields',
$this,
$fields);
if( $EXT->end_script === TRUE ) return;
}
//
// -------------------------------------------
foxee_order_parse_begin - in method order_parse
// -------------------------------------------
// 'foxee_order_parse_begin' hook.
// - take over orders loop parse
//
if ($EXT->active_hook('foxee_order_parse_begin') === TRUE) {
$edata = $EXT->call_extension('foxee_order_parse_begin', $this);
if( $EXT->end_script === TRUE ) return TRUE;
}
//
// -------------------------------------------
foxee_order_parse_end - in method order_parse
// -------------------------------------------
// 'foxee_order_parse_end' hook.
// - more parsing for the orders loop
//
if ($EXT->active_hook('foxee_order_parse_end') === TRUE) {
$edata = $EXT->call_extension('foxee_order_parse_end', $this);
if( $EXT->end_script === TRUE ) return TRUE;
}
//
// -------------------------------------------
foxee_order_detail_parse_begin - in method order_detail_parse
// -------------------------------------------
// 'foxee_order_detail_parse_begin' hook.
// - take over the order details parsing
//
if ($EXT->active_hook('foxee_order_detail_parse_begin') === TRUE) {
$edata = $EXT->call_extension('foxee_order_detail_parse_begin', $this);
if( $EXT->end_script === TRUE ) return TRUE;
}
//
// -------------------------------------------
classes/Fe_email.php
foxee_add_order_email_parse_body - in method add_order_email
// -------------------------------------------
// 'foxee_add_order_email_parse_body' hook.
// - perform additional processing for completed orders
//
if($EXT->active_hook('foxee_add_order_email_parse_body') === TRUE) {
$body = $EXT->call_extension('foxee_add_order_email_parse_body',
$oid,
$body);
if( $EXT->end_script === TRUE ) return;
}
//
// -------------------------------------------
foxee_add_order_email_parse_subject - in method add_order_email
// -------------------------------------------
// 'foxee_add_order_email_parse_subject' hook.
// - perform additional processing for completed orders
//
if($EXT->active_hook('foxee_add_order_email_parse_subject') === TRUE) {
$subject = $EXT->call_extension(
'foxee_add_order_email_parse_subject',
$oid,
$subject);
if( $EXT->end_script === TRUE ) return;
}
//
// -------------------------------------------
classes/Fe_subscription.php
foxee_subscription_new_end - in method new_subscription
// -------------------------------------------
// 'foxee_subscription_new_end' hook.
// - perform additional processing on a new subscription add
//
if ($EXT->active_hook('foxee_subscription_new_end') === TRUE) {
$edata = $EXT->call_extension('foxee_subscription_new_end', $this);
if( $EXT->end_script === TRUE ) return;
}
//
// -------------------------------------------
foxee_subscription_cancel_end - in method cancel_subscription
// -------------------------------------------
// 'foxee_subscription_cancel_end' hook.
// - perform additional processing on a cancel subscription
//
if ($EXT->active_hook('foxee_subscription_cancel_end') === TRUE) {
$edata = $EXT->call_extension('foxee_subscription_cancel_end', $this);
if( $EXT->end_script === TRUE ) return;
}
//
// -------------------------------------------
foxee_subscription_expire_now_end - in method expire_notification_now
// -------------------------------------------
// 'foxee_subscription_expire_now_end' hook.
// - perform additional processing on a expire_now subscription
//
if ($EXT->active_hook('foxee_subscription_expire_now_end') === TRUE) {
$edata = $EXT->call_extension('foxee_subscription_expire_now_end', $this);
if( $EXT->end_script === TRUE ) return;
}
//
// -------------------------------------------
foxee_subscription_renew_end - in method renew_subscription
// -------------------------------------------
// 'foxee_subscription_renew_end' hook.
// - perform additional processing on a renew subscription
//
if ($EXT->active_hook('foxee_subscription_renew_end') === TRUE) {
$edata = $EXT->call_extension('foxee_subscription_renew_end', $this);
if( $EXT->end_script === TRUE ) return;
}
//
// -------------------------------------------
foxee_payment_expire_end - in method process_payment_expire
// -------------------------------------------
// 'foxee_payment_expire_end' hook.
// - perform additional processing on a payment expire
//
if ($EXT->active_hook('foxee_payment_expire_end') === TRUE) {
$edata = $EXT->call_extension('foxee_payment_expire_end', $this);
if( $EXT->end_script === TRUE ) return;
}
//
// -------------------------------------------
foxee_subscription_group_switch_to_old - in method switch_member_group
// -------------------------------------------
// 'foxee_subscription_group_switch_to_old' hook.
// - change whether we are switch to old group or not
//
$hook = 'foxee_subscription_group_switch_to_old';
if($EXT->active_hook($hook) === TRUE) {
$switch_to_old = $EXT->call_extension($hook, $this, $switch_to_old);
if( $EXT->end_script === TRUE ) return $edata;
}
//
// -------------------------------------------
foxee_subscription_group_switch_end - in method switch_member_group
// -------------------------------------------
// 'foxee_subscription_group_switch_end' hook.
// - perform additional processing for group switching
//
$hook = 'foxee_subscription_group_switch_end';
if($EXT->active_hook($hook) === TRUE) {
$edata = $EXT->call_extension($hook, $this, $switch_to_old);
if( $EXT->end_script === TRUE ) return $edata;
}
//
// -------------------------------------------
classes/Fe_order_process.php
foxee_process_order_skip_error_check - in method process_orders
// -------------------------------------------
// 'foxee_process_order_skip_error_check' hook.
// - skip the error checking done for products.
//
$hook = 'foxee_process_order_skip_error_check';
if ($EXT->active_hook($hook) === TRUE) {
$check_error = $EXT->call_extension($hook);
if( $EXT->end_script === TRUE ) return;
}
//
// -------------------------------------------
foxee_process_order_error_check - in method process_orders
// -------------------------------------------
// 'foxee_process_order_error_check' hook.
// - change the status of order and other stuff.
//
$hook = 'foxee_process_order_error_check';
if ($EXT->active_hook($hook) === TRUE) {
$order = $EXT->call_extension($hook,$order,$odetail,$item);
if( $EXT->end_script === TRUE ) return;
}
//
// -------------------------------------------
foxee_process_order_pricing_option_inventory - in method process_orders
// -------------------------------------------
// 'foxee_process_order_pricing_option_inventory' hook.
// - change the pricing option inventory
//
if ($EXT->active_hook('foxee_process_order_pricing_option_inventory') === TRUE) {
$opt_inven = $EXT->call_extension('foxee_process_order_pricing_option_inventory', $opt_inven, $item['id'], $odetail['product_quantity']);
if( $EXT->end_script === TRUE ) return;
}
//
// -------------------------------------------
foxee_process_order_product_inventory - in method process_orders
// -------------------------------------------
// 'foxee_process_order_product_inventory' hook.
// - change the product inventory
//
if ($EXT->active_hook('foxee_process_order_product_inventory') === TRUE) {
$inv = $EXT->call_extension('foxee_process_order_product_inventory', $inv, $item['id'], $odetail['product_quantity']);
if( $EXT->end_script === TRUE ) return;
}
//
// -------------------------------------------
foxee_process_order_begin_loop_end - in method process_orders
// -------------------------------------------
// 'foxee_process_order_begin_loop_end' hook.
// - change order data that is update on the record
//
if ($EXT->active_hook('foxee_process_order_begin_loop_end') === TRUE) {
$order = $EXT->call_extension('foxee_process_order_begin_loop_end', $order);
if( $EXT->end_script === TRUE ) return;
}
//
// -------------------------------------------
foxee_process_orders_end - in method process_orders_end
// -------------------------------------------
// 'foxee_process_orders_end' hook.
// - perform additional processing for completed orders
//
if ($EXT->active_hook('foxee_process_orders_end') === TRUE) {
$edata = $EXT->call_extension('foxee_process_orders_end', $orders_to_process_end);
if( $EXT->end_script === TRUE ) return $edata;
}
//
// -------------------------------------------
foxee_process_subscriptions_begin - in method process_subscriptions
// -------------------------------------------
// 'foxee_process_subscriptions_begin' hook.
// - take over all processing of subscriptions
//
if ($EXT->active_hook('foxee_process_subscriptions_begin') === TRUE) {
$edata = $EXT->call_extension('foxee_process_subscriptions_begin', $this);
if( $EXT->end_script === TRUE ) return;
}
//
// -------------------------------------------
classes/Foxee_ee_sql.php
foxee_sql_select_build_fields - in method build_select_query
// -------------------------------------------
// 'foxee_sql_select_build_fields' hook.
// - alter the fields array for the select statement
//
if ($EXT->active_hook('foxee_sql_select_build_fields') === TRUE) {
$edata = $EXT->call_extension('foxee_sql_select_build_fields',
$fields);
if( is_array($edata) )
$fields = $edata;
if( $EXT->end_script === TRUE ) return TRUE;
}
//
// -------------------------------------------
foxee_sql_select_build_constraints - in method build_select_query
// -------------------------------------------
// 'foxee_sql_select_build_constraints' hook.
// - alter the constraints array for the select statement
//
if ($EXT->active_hook('foxee_sql_select_build_constraints') === TRUE) {
$edata = $EXT->call_extension(
'foxee_sql_select_build_constraints',
$constraints);
if( is_array($edata) )
$constraints = $edata;
if( $EXT->end_script === TRUE ) return TRUE;
}
//
// -------------------------------------------
foxee_sql_select_build_from - in method build_select_query
// -------------------------------------------
// 'foxee_sql_select_build_from' hook.
// - alter the from string for the select statement
//
if ($EXT->active_hook('foxee_sql_select_build_from') === TRUE) {
$from = $EXT->call_extension('foxee_sql_select_build_from', $from);
if( is_string($edata) AND $edata != '' ) {
$from = $edata;
}
if( $EXT->end_script === TRUE ) return TRUE;
}
//
// -------------------------------------------
foxee_sql_select_build_logic - in method build_select_query
// -------------------------------------------
// 'foxee_sql_select_build_logic' hook.
// - alter the logic array for the select statement
//
if ($EXT->active_hook('foxee_sql_select_build_logic') === TRUE) {
$edata = $EXT->call_extension('foxee_sql_select_build_logic',
$logic_arr);
if( is_array($edata) )
$logic_arr = $edata;
if( $EXT->end_script === TRUE ) return TRUE;
}
//
// -------------------------------------------
