Magento Events / variables and modules

This table has been extracted from the Magento Wiki. I’ll be adding a new column for description.

Module Event Name Parameters Description
Admin admin_session_user_login_success array(‘user’=>$user)
Admin admin_session_user_login_failed array(‘user_name’=>$username, ‘exception’ => $e)
Admin admin_user_authenticate_after array(‘username’ => $username,’password’ => $password,’user’ => $this,’result’ => $result)
Adminhtml adminhtml_block_html_before array(‘block’ => $this)
Adminhtml adminhtml_catalog_category_tabs array(‘tabs’ => $this)
Adminhtml adminhtml_catalog_category_tree_is_moveable array(‘options’=>$options)
Adminhtml adminhtml_catalog_category_tree_can_add_root_category array(‘category’ => $this->getCategory(),’options’ => $options,’store’ => $this->getStore()->getId())
Adminhtml adminhtml_catalog_category_tree_can_add_sub_category array(‘category’ => $this->getCategory(),’options’ => $options,’store’ => $this->getStore()->getId())
Adminhtml adminhtml_product_attribute_types array(‘response’=>$response)
Adminhtml adminhtml_catalog_product_edit_prepare_form array(‘form’=>$form)
Adminhtml adminhtml_catalog_product_edit_element_types array(‘response’=>$response)
Adminhtml adminhtml_catalog_product_attribute_set_main_html_before array(‘block’ => $this)
Adminhtml adminhtml_catalog_product_attribute_set_toolbar_main_html_before array(‘block’ => $this)
Adminhtml adminhtml_catalog_product_form_prepare_excluded_field_list array(‘object’=>$this)
Adminhtml adminhtml_catalog_product_edit_prepare_form array(‘form’=>$form)
Adminhtml adminhtml_catalog_product_edit_element_types array(‘response’=>$response)
Adminhtml adminhtml_catalog_product_edit_tab_attributes_create_html_before array(‘block’ => $this)
Adminhtml adminhtml_cms_page_edit_tab_content_prepare_form array(‘form’ => $form)
Adminhtml adminhtml_cms_page_edit_tab_design_prepare_form array(‘form’ => $form)
Adminhtml adminhtml_cms_page_edit_tab_main_prepare_form array(‘form’ => $form)
Adminhtml adminhtml_cms_page_edit_tab_meta_prepare_form array(‘form’ => $form)
Adminhtml adminhtml_widget_grid_filter_collection array(‘collection’ => $this->getCollection(), ‘filter_values’ => $this->_filterValues)
Adminhtml adminhtml_widget_container_html_before array(‘block’ => $this)
Adminhtml adminhtml_controller_action_predispatch_start array()
Adminhtml adminhtml_customer_prepare_save array(‘customer’ => $customer, ‘request’ => $this->getRequest())
Adminhtml adminhtml_customer_save_after array(‘customer’ => $customer)
Adminhtml on_view_report array(‘report’ => ‘search’)
Adminhtml catalog_category_prepare_save array(‘category’ => $category,’request’ => $this->getRequest())
Adminhtml catalog_controller_category_delete array(‘category’=>$category)
Adminhtml catalog_product_new_action array(‘product’ => $product)
Adminhtml catalog_product_edit_action array(‘product’ => $product)
Adminhtml catalog_product_prepare_save array(‘product’ => $product, ‘request’ => $this->getRequest())
Adminhtml catalog_controller_product_delete array(‘product’ => $product)
Adminhtml catalog_product_to_website_change array(
Adminhtml cms_page_prepare_save array(‘page’ => $model, ‘request’ => $this->getRequest())
Adminhtml adminhtml_cmspage_on_delete array(‘title’ => $title, ‘status’ => ‘success’)
Adminhtml adminhtml_cmspage_on_delete array(‘title’ => $title, ‘status’ => ‘fail’)
Adminhtml admin_permissions_role_prepare_save array(‘object’ => $role, ‘request’ => $this->getRequest())
Adminhtml adminhtml_controller_catalogrule_prepare_save array(‘request’ => $this->getRequest())
Adminhtml adminhtml_controller_salesrule_prepare_save array(‘request’ => $this->getRequest())
Adminhtml adminhtml_sales_order_create_process_data $eventData
Adminhtml adminhtml_sales_order_creditmemo_register_before $args
Adminhtml admin_system_config_changed_section_{$section} array(‘website’ => $website, ‘store’ => $store)
Adminhtml store_group_save array(‘group’ => $groupModel)
Adminhtml store_edit array(‘store’=>$storeModel)
Adminhtml store_add array(‘store’=>$storeModel)
Adminhtml store_delete array(‘store’ => $model)
Adminhtml sales_convert_order_to_quote array(‘order’ => $order,’quote’ => $this->getQuote())
Adminhtml sales_convert_order_item_to_quote_item array(‘order_item’ => $orderItem,’quote_item’ => $item)
Api api_user_authenticated array(‘model’ => $this,’api_key’ => $apiKey)
Bundle bundle_product_view_config $args
Bundle prepare_catalog_product_index_select array(‘select’ => $select,’entity_field’ => new Zend_Db_Expr(‘e.entity_id’),’website_field’ => new Zend_Db_Expr(‘cw.website_id’),’store_field’ => new Zend_Db_Expr(‘cs.store_id’))
Bundle prepare_catalog_product_price_index_table array(‘index_table’ => array(‘i’ => $this->_getDefaultFinalPriceTable()),’select’ => $select,’entity_id’ => ‘i.entity_id
Bundle catalog_product_prepare_index_select array(‘website’ => $website,’select’ => $select)
Bundle catalog_product_get_final_price array(‘product’=>$product) It is possible to modify the product final price/special price using this observer.
Catalog catalog_block_product_list_collection array(‘collection’=>$this->_getProductCollection(),)
Catalog catalog_product_view_config array(‘response_object’=>$responseObject)
Catalog catalog_product_upsell array(‘product’ => $product,’collection’ => $this->_itemCollection,’limit’ => $this->getItemLimit())
Catalog catalog_controller_category_init_before array(‘controller_action’=>$this)
Catalog catalog_controller_category_init_after array(‘category’=>$category, ‘controller_action’=>$this)
Catalog catalog_controller_product_init_before array(‘controller_action’=>$this)
Catalog catalog_controller_product_init array(‘product’=>$product)
Catalog catalog_controller_product_init_after array(‘product’=>$product, ‘controller_action’ => $this)
Catalog catalog_controller_product_view array(‘product’=>$product)
Catalog catalog_product_compare_add_product array(‘product’=>$product)
Catalog catalog_product_compare_remove_product array(‘product’=>$item)
Catalog catalog_helper_output_construct array(‘helper’=>$this)
Catalog catalog_category_tree_move_before $eventParams
Catalog $this->_eventPrefix.’_move_before’ $eventParams
Catalog $this->_eventPrefix.’_move_after’ $eventParams
Catalog catalog_category_tree_move_after $eventParams
Catalog category_move $eventParams
Catalog $this->_eventPrefix.’_validate_before’ array($this->_eventObject=>$this)
Catalog $this->_eventPrefix.’_validate_after’ array($this->_eventObject=>$this)
Catalog catalog_model_product_duplicate array(‘current_product’=>$this, ‘new_product’=>$newProduct)
Catalog catalog_product_is_salable_before array(‘product’ => $this)
Catalog catalog_product_is_salable_after array(‘product’ => $this,’salable’ => $object)
Catalog $this->_eventPrefix.’_delete_after_done’ array($this->_eventObject=>$this)
Catalog catalog_product_import_after array()
Catalog catalog_product_website_update_before array(‘website_ids’ => $websiteIds,’product_ids’ => $productIds,’action’ => $type)
Catalog catalog_product_website_update array(‘website_ids’ => $websiteIds,’product_ids’ => $productIds,’action’ => $type)
Catalog catalog_product_status_update array(‘product_id’ => $productId,’store_id’ => $storeId,’status’ => $value)
Catalog catalog_product_get_final_price array(‘product’=>$product)
Catalog catalog_category_change_products array(‘category’ => $category,’product_ids’ => $productIds)
Catalog $this->_eventPrefix . ‘_load_before’ array($this->_eventObject => $this)
Catalog $this->_eventPrefix . ‘_load_after’ array($this->_eventObject => $this)
Catalog $this->_eventPrefix . ‘_add_is_active_filter’ array($this->_eventObject => $this)
Catalog catalog_category_tree_init_inactive_category_ids array(‘tree’=>$this)
Catalog catalog_category_tree_init_inactive_category_ids array(‘tree’=>$this)
Catalog catalog_category_tree_move_before array(‘category’ => $category,’prev_parent’ => $prevNode,’parent’ => $newParent)
Catalog catalog_category_tree_move_after array(‘category’ => $category,’prev_node’ => $prevNode,’parent’ => $newParent)
Catalog $this->_eventPrefix . ‘_load_before’ array($this->_eventObject => $this)
Catalog $this->_eventPrefix . ‘_load_after’ array($this->_eventObject => $this)
Catalog $this->_eventPrefix . ‘_add_is_active_filter’ array($this->_eventObject => $this)
Catalog catalogindex_prepare_price_select $eventArgs
Catalog catalog_prepare_price_select $eventArgs
Catalog catalog_product_collection_load_before array(‘collection’=>$this)
Catalog catalog_product_collection_load_after array(‘collection’=>$this)
Catalog catalog_product_collection_before_add_count_to_categories array(‘collection’=>$this)
Catalog catalog_product_collection_apply_limitations_after array(‘collection’ => $this)
Catalog catalog_product_compare_item_collection_clear’
Catalog catalog_product_flat_prepare_columns array(‘columns’ => $columnsObject)
Catalog catalog_product_flat_prepare_indexes array(‘indexes’ => $indexesObject)
Catalog catalog_product_flat_rebuild array(‘store_id’ => $store,’table’ => $this->getFlatTableName($store))
Catalog catalog_product_flat_update_product array(‘store_id’ => $store,’table’ => $this->getFlatTableName($store),’product_ids’ => $productIds)
Catalog prepare_catalog_product_index_select array(‘select’ => $select,’entity_field’ => new Zend_Db_Expr(‘pid.entity_id’),’website_field’ => new Zend_Db_Expr(‘cs.website_id’),’store_field’ => new Zend_Db_Expr(‘cs.store_id’))
Catalog prepare_catalog_product_index_select array(‘select’ => $select,’entity_field’ => new Zend_Db_Expr(‘pvd.entity_id’),’website_field’ => new Zend_Db_Expr(‘cs.website_id’),’store_field’ => new Zend_Db_Expr(‘cs.store_id’))
Catalog prepare_catalog_product_index_select array(‘select’ => $select,’entity_field’ => new Zend_Db_Expr(‘l.parent_id’),’website_field’ => new Zend_Db_Expr(‘cs.website_id’),’store_field’ => new Zend_Db_Expr(‘cs.store_id’))
Catalog prepare_catalog_product_index_select array(‘select’ => $select,’entity_field’ => new Zend_Db_Expr(‘e.entity_id’),’website_field’ => new Zend_Db_Expr(‘cw.website_id’),’store_field’ => new Zend_Db_Expr(‘cs.store_id’))
Catalog prepare_catalog_product_price_index_table array(‘index_table’ => array(‘i’ => $this->_getDefaultFinalPriceTable()),’select’ => $select,’entity_id’ => ‘i.entity_id
Catalog prepare_catalog_product_price_index_select array(‘select’ => $select,’entity_field’ => new Zend_Db_Expr(‘e.entity_id’),’website_field’ => new Zend_Db_Expr(‘cw.website_id’),’store_field’ => new Zend_Db_Expr(‘cs.store_id’))
CatalogIndex catalogindex_plain_reindex_after array(‘products’ => $products)
CatalogIndex catalogindex_prepare_price_select $args
CatalogIndex catalogindex_get_minimal_price $eventData
CatalogIndex catalogindex_prepare_price_select $args
CatalogIndex catalogindex_prepare_price_select $args
CatalogIndex catalogindex_prepare_price_select $args
CatalogIndex catalogindex_prepare_price_select $args
CatalogRule catalogrule_before_apply array(‘resource’=>$this)
CatalogRule catalogrule_after_apply array(‘product’=>$product,’product_condition’ => $productCondition)
CatalogSearch catalogsearch_reset_search_result’
Checkout checkout_cart_add_product_complete array(‘product’ => $product, ‘request’ => $this->getRequest(), ‘response’ => $this->getResponse()) This event is launched after adding a product to the cart.
Checkout checkout_controller_multishipping_shipping_post array(‘request’=>$this->getRequest(), ‘quote’=>$this->_getCheckout()->getQuote())
Checkout checkout_multishipping_controller_success_action’
Checkout checkout_onepage_controller_success_action’
Checkout checkout_controller_onepage_save_shipping_method array(‘request’=>$this->getRequest(), ‘quote’=>$this->getOnepage()->getQuote())
Checkout checkout_allow_guest array(‘quote’ => $quote,’store’ => $store,’result’ => $result)
Checkout checkout_cart_product_add_after array(‘quote_item’=>$result, ‘product’=>$product)
Checkout checkout_cart_update_items_before array(‘cart’=>$this, ‘info’=>$data)
Checkout checkout_cart_update_items_after array(‘cart’=>$this, ‘info’=>$data)
Checkout checkout_cart_info_item_unset_product_before array(
Checkout checkout_quote_init array(‘quote’=>$quote)
Checkout checkout_quote_destroy array(‘quote’=>$this->getQuote())
Checkout checkout_type_multishipping_set_shipping_items array(‘quote’=>$this->getQuote())
Checkout checkout_type_multishipping_create_orders_single array(‘order’=>$order, ‘address’=>$address)
Checkout checkout_type_onepage_save_order array(‘order’=>$order, ‘quote’=>$this->getQuote())
Checkout checkout_type_onepage_save_order_after array(‘order’=>$order, ‘quote’=>$this->getQuote())
Cms cms_controller_router_match_before array(‘router’ => $this,’condition’ => $condition)
Cms cms_page_get_available_statuses array(‘statuses’ => $statuses)
Core core_block_abstract_prepare_layout_before array(‘block’ => $this)
Core core_block_abstract_prepare_layout_after array(‘block’ => $this)
Core core_block_abstract_to_html_before array(‘block’ => $this)
Core core_block_abstract_to_html_after array(‘block’ => $this)
Core http_response_send_before array(‘response’=>$this)
Core controller_action_layout_load_before array(‘action’=>$this, ‘layout’=>$this->getLayout())
Core controller_action_layout_generate_xml_before array(‘action’=>$this, ‘layout’=>$this->getLayout())
Core controller_action_layout_generate_blocks_before array(‘action’=>$this, ‘layout’=>$this->getLayout())
Core controller_action_layout_generate_blocks_after array(‘action’=>$this, ‘layout’=>$this->getLayout())
Core controller_action_layout_render_before’
Core controller_action_layout_render_before_’.$this->getFullActionName()
Core controller_action_predispatch array(‘controller_action’=>$this)
Core controller_action_predispatch_’.$this->getRequest()->getRouteName() array(‘controller_action’=>$this)
Core controller_action_predispatch_’.$this->getFullActionName() array(‘controller_action’=>$this)
Core controller_action_postdispatch_’.$this->getFullActionName() array(‘controller_action’=>$this)
Core controller_action_postdispatch_’.$this->getRequest()->getRouteName() array(‘controller_action’=>$this)
Core controller_action_postdispatch array(‘controller_action’=>$this)
Core controller_action_noroute array(‘action’=>$this, ‘status’=>$status)
Core controller_action_nocookies array(‘action’ => $this,’redirect’ => $redirect)
Core controller_front_init_before array(‘front’=>$this)
Core controller_front_init_routers array(‘front’=>$this)
Core model_load_after array(‘object’=>$this)
Core $this->_eventPrefix.’_load_after’ array($this->_eventObject=>$this)
Core model_save_commit_after array(‘object’=>$this)
Core $this->_eventPrefix.’_save_commit_after’ array($this->_eventObject=>$this)
Core model_save_before array(‘object’=>$this)
Core $this->_eventPrefix.’_save_before’ array($this->_eventObject=>$this)
Core model_save_after array(‘object’=>$this)
Core $this->_eventPrefix.’_save_after’ array($this->_eventObject=>$this)
Core model_delete_before array(‘object’=>$this)
Core $this->_eventPrefix.’_delete_before’ array($this->_eventObject=>$this)
Core model_delete_after array(‘object’=>$this)
Core $this->_eventPrefix.’_delete_after’ array($this->_eventObject=>$this)
Core model_delete_commit_after array(‘object’=>$this)
Core $this->_eventPrefix.’_delete_commit_after’ array($this->_eventObject=>$this)
Core application_clean_cache array(‘tags’ => $tags)
Core core_locale_set_locale array(‘locale’=>$this)
Core resource_get_tablename array(‘resource’ => $this, ‘model_entity’ => $modelEntity, ‘table_name’ => $tableName)
Core core_layout_update_updates_get_after array(‘updates’ => $updatesRoot)
Core core_layout_update_updates_get_after array(‘updates’ => $updatesRoot)
Core core_collection_abstract_load_before array(‘collection’ => $this)
Core core_collection_abstract_load_after array(‘collection’ => $this)
Customer customer_registration_is_allowed array(‘result’ => $result)
Customer customer_customer_authenticated array(‘model’ => $this,’password’ => $password,)
Customer customer_session_init array(‘customer_session’=>$this)
Customer customer_login array(‘customer’=>$customer)
Customer customer_login array(‘customer’=>$customer)
Customer customer_login array(‘customer’=>$customer)
Customer customer_logout array(‘customer’ => $this->getCustomer())
Eav adminhtml_block_eav_attribute_edit_form_init array(‘form’ => $this->getForm())
Eav eav_attribute_get_backend_type_by_input array(‘model’=>$this, ‘type’=>$type)
Eav eav_attribute_get_default_value_by_input array(‘model’=>$this, ‘type’=>$type)
Eav eav_collection_abstract_load_before array(‘collection’ => $this)
GoogleCheckout google_checkout_discount_item_price array(‘quote’ => $this->getQuote(), ‘discount_item’ => $discountItem)
Log log_log_clean_before array(‘log’ => $object)
Log log_log_clean_after array(‘log’ => $object)
Log log_visitor_collection_load_before array(‘collection’ => $this)
Oscommerce store_add array(‘store’=>$storeModel)
Payment payment_method_is_active array(‘result’ => $checkResult,’method_instance’ => $this,’quote’ => $quote,)
Paypal checkout_type_onepage_save_order array(‘order’=>$order, ‘quote’=>$this->getReview()->getQuote())
Paypal checkout_type_onepage_save_order array(‘order’=>$order, ‘quote’=>$this->getQuote())
PaypalUk checkout_type_onepage_save_order array(‘order’=>$order, ‘quote’=>$this->getReview()->getQuote())
PaypalUk checkout_type_onepage_save_order array(‘order’=>$order, ‘quote’=>$this->getQuote())
Review review_controller_product_init_before array(‘controller_action’=>$this)
Review review_controller_product_init array(‘product’=>$product)
Review review_controller_product_init_after array(‘product’=>$product, ‘controller_action’ => $this)
Review review_review_collection_load_before array(‘collection’ => $this)
Rss rss_catalog_category_xml_callback $args
Rss rss_catalog_new_xml_callback $args
Rss rss_catalog_special_xml_callback $args
Rss rss_catalog_tagged_item_xml_callback $args
Rss rss_order_new_collection_select array(‘collection’ => $collection)
Rule rule_environment_collect array(‘env’=>$this)
Sales sales_order_place_before array(‘order’=>$this)
Sales sales_order_place_after array(‘order’=>$this)
Sales sales_quote_remove_item array(‘quote_item’ => $item)
Sales sales_quote_add_item array(‘quote_item’ => $item)
Sales $this->_eventPrefix . ‘_collect_totals_before’ array($this->_eventObject=>$this)
Sales $this->_eventPrefix . ‘_collect_totals_after’ array($this->_eventObject=>$this)
Sales $this->_eventPrefix . ‘_merge_before’ array($this->_eventObject=>$this,’source’=>$quote)
Sales $this->_eventPrefix . ‘_merge_after’ array($this->_eventObject=>$this,’source’=>$quote)
Sales sales_convert_order_to_quote array(‘order’=>$order, ‘quote’=>$quote)
Sales sales_convert_quote_to_order array(‘order’=>$order, ‘quote’=>$quote)
Sales sales_convert_quote_address_to_order array(‘address’=>$address, ‘order’=>$order)
Sales sales_convert_quote_address_to_order_address array(‘address’ => $address, ‘order_address’ => $orderAddress)
Sales sales_convert_quote_payment_to_order_payment array(‘order_payment’ => $orderPayment, ‘quote_payment’ => $payment)
Sales sales_convert_quote_item_to_order_item array(‘order_item’=>$orderItem, ‘item’=>$item)
Sales sales_quote_item_collection_products_after_load array(‘product_collection’=>$productCollection)
Sales sales_sale_collection_query_before array(‘collection’ => $this)
Sales sales_order_creditmemo_refund array($this->_eventObject=>$this)
Sales sales_order_creditmemo_cancel array($this->_eventObject=>$this)
Sales sales_order_invoice_pay array($this->_eventObject=>$this)
Sales sales_order_invoice_cancel array($this->_eventObject=>$this)
Sales sales_order_item_cancel array(‘item’=>$this)
Sales sales_order_payment_place_start array(‘payment’ => $this)
Sales sales_order_payment_place_end array(‘payment’ => $this)
Sales sales_order_payment_capture array(‘payment’ => $this, ‘invoice’ => $invoice)
Sales sales_order_payment_pay array(‘payment’ => $this, ‘invoice’ => $invoice)
Sales sales_order_payment_cancel_invoice array(‘payment’ => $this, ‘invoice’ => $invoice)
Sales sales_order_payment_void array(‘payment’ => $this, ‘invoice’ => $document)
Sales sales_order_payment_refund array(‘payment’ => $this, ‘creditmemo’ => $creditmemo)
Sales sales_order_payment_cancel_creditmemo array(‘payment’ => $this, ‘creditmemo’ => $creditmemo)
Sales sales_order_payment_cancel array(‘payment’ => $this)
Sales sales_quote_item_qty_set_after array(‘item’=>$this)
Sales sales_quote_item_set_product array(‘product’ => $product,’quote_item’=>$this)
Sales $this->_eventPrefix . ‘_import_data_before’ array($this->_eventObject=>$this,’input’=>$data,)
Sales sales_quote_address_discount_item $eventArgs
Sales sales_quote_address_discount_item $eventArgs
SalesRule salesrule_validator_process array(‘rule’ => $rule,’item’ => $item,’address’ => $address,’quote’ => $quote,’qty’ => $qty,’result’ => $result,)
SalesRule sales_quote_address_discount_item $eventArgs
SalesRule sales_quote_address_discount_item $eventArgs
SalesRule salesrule_rule_condition_combine array(‘additional’ => $additional)
Sendfriend sendfriend_product array(‘product’ => $product)
Tag tag_tag_product_collection_load_after array(‘collection’ => $this)
Tax tax_rate_data_fetch array(‘request’=>$this)
Tax tax_settings_change_after’
Tax tax_settings_change_after’
Tax tax_settings_change_after’
Tax tax_settings_change_after’
Tax tax_settings_change_after’
Wishlist wishlist_add_product array(‘wishlist’=>$wishlist, ‘product’=>$product)
Wishlist wishlist_share array(‘wishlist’=>$wishlist)