Magento Events Cheat Sheet (1.3.2.4)
Magento uses a fantastic event hooking system, following the Observer Design Pattern , allowing additional functionality to be plugged in and out without modifying the core code.
This list of events is automagically extracted directly from the Magento codebase. It's pretty unlikely that anything was missed but if you do notice something, get in touch.
File | Line | Event |
---|---|---|
cron.php | 44 | default |
Mage/Paypal/controllers/ExpressController.php | 207 | checkout_type_onepage_save_order |
Mage/Paypal/Model/Express/Review.php | 127 | checkout_type_onepage_save_order |
Mage/Adminhtml/controllers/Cms/PageController.php | 136 | cms_page_prepare_save |
Mage/Adminhtml/controllers/Cms/PageController.php | 186 | adminhtml_cmspage_on_delete |
Mage/Adminhtml/controllers/Cms/PageController.php | 191 | adminhtml_cmspage_on_delete |
Mage/Adminhtml/controllers/Sales/Order/CreditmemoController.php | 217 | adminhtml_sales_order_creditmemo_register_before |
Mage/Adminhtml/controllers/Sales/Order/CreateController.php | 217 | adminhtml_sales_order_create_process_data |
Mage/Adminhtml/controllers/System/ConfigController.php | 148 | admin_system_config_changed_section_{$section} |
Mage/Adminhtml/controllers/System/StoreController.php | 184 | store_group_save |
Mage/Adminhtml/controllers/System/StoreController.php | 206 | $eventName |
Mage/Adminhtml/controllers/System/StoreController.php | 404 | store_delete |
Mage/Adminhtml/controllers/CustomerController.php | 201 | adminhtml_customer_prepare_save |
Mage/Adminhtml/controllers/CustomerController.php | 229 | adminhtml_customer_save_after |
Mage/Adminhtml/controllers/Catalog/CategoryController.php | 258 | catalog_category_prepare_save |
Mage/Adminhtml/controllers/Catalog/CategoryController.php | 304 | category_move |
Mage/Adminhtml/controllers/Catalog/CategoryController.php | 330 | catalog_controller_category_delete |
Mage/Adminhtml/controllers/Catalog/ProductController.php | 171 | catalog_product_new_action |
Mage/Adminhtml/controllers/Catalog/ProductController.php | 200 | catalog_product_edit_action |
Mage/Adminhtml/controllers/Catalog/ProductController.php | 535 | catalog_product_prepare_save |
Mage/Adminhtml/controllers/Catalog/ProductController.php | 746 | catalog_controller_product_delete |
Mage/Adminhtml/controllers/Catalog/Product/Action/AttributeController.php | 154 | catalog_product_to_website_change |
Mage/Adminhtml/controllers/ReportController.php | 80 | on_view_report |
Mage/Adminhtml/controllers/Permissions/RoleController.php | 130 | admin_permissions_role_prepare_save |
Mage/Adminhtml/Model/Sales/Order/Create.php | 211 | sales_convert_order_to_quote |
Mage/Adminhtml/Model/Sales/Order/Create.php | 300 | sales_convert_order_item_to_quote_item |
Mage/Adminhtml/Controller/Action.php | 129 | adminhtml_controller_action_predispatch_start |
Mage/Adminhtml/Block/Template.php | 80 | adminhtml_block_html_before |
Mage/Adminhtml/Block/Report/Grid.php | 172 | adminhtml_widget_grid_filter_collection |
Mage/Adminhtml/Block/Catalog/Category/Tree.php | 281 | adminhtml_catalog_category_tree_is_moveable |
Mage/Adminhtml/Block/Catalog/Category/Tree.php | 318 | adminhtml_catalog_category_tree_can_add_root_category |
Mage/Adminhtml/Block/Catalog/Category/Tree.php | 338 | adminhtml_catalog_category_tree_can_add_sub_category |
Mage/Adminhtml/Block/Catalog/Category/Tabs.php | 149 | adminhtml_catalog_category_tabs |
Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes/Create.php | 85 | adminhtml_catalog_product_edit_tab_attributes_create_html_before |
Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes.php | 106 | adminhtml_catalog_product_edit_prepare_form |
Mage/Adminhtml/Block/Catalog/Product/Edit/Tab/Attributes.php | 125 | adminhtml_catalog_product_edit_element_types |
Mage/Adminhtml/Block/Catalog/Product/Edit/Action/Attribute/Tab/Attributes.php | 48 | adminhtml_catalog_product_form_prepare_excluded_field_list |
Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Main.php | 298 | adminhtml_catalog_product_attribute_set_main_html_before |
Mage/Adminhtml/Block/Catalog/Product/Attribute/Set/Toolbar/Main.php | 68 | adminhtml_catalog_product_attribute_set_toolbar_main_html_before |
Mage/Adminhtml/Block/Catalog/Product/Attribute/New/Product/Attributes.php | 64 | adminhtml_catalog_product_edit_prepare_form |
Mage/Adminhtml/Block/Catalog/Product/Attribute/New/Product/Attributes.php | 80 | adminhtml_catalog_product_edit_element_types |
Mage/Adminhtml/Block/Catalog/Product/Attribute/Edit/Tab/Main.php | 156 | adminhtml_product_attribute_types |
Mage/Adminhtml/Block/Widget/Container.php | 224 | adminhtml_widget_container_html_before |
Mage/PaypalUk/controllers/ExpressController.php | 201 | checkout_type_onepage_save_order |
Mage/PaypalUk/Model/Express/Review.php | 126 | checkout_type_onepage_save_order |
Mage/Sales/Model/Order/Invoice.php | 262 | sales_order_invoice_pay |
Mage/Sales/Model/Order/Invoice.php | 310 | sales_order_invoice_cancel |
Mage/Sales/Model/Order/Payment.php | 106 | sales_order_payment_place_start |
Mage/Sales/Model/Order/Payment.php | 191 | sales_order_payment_place_end |
Mage/Sales/Model/Order/Payment.php | 207 | sales_order_payment_capture |
Mage/Sales/Model/Order/Payment.php | 231 | sales_order_payment_pay |
Mage/Sales/Model/Order/Payment.php | 250 | sales_order_payment_cancel_invoice |
Mage/Sales/Model/Order/Payment.php | 292 | sales_order_payment_void |
Mage/Sales/Model/Order/Payment.php | 315 | sales_order_payment_refund |
Mage/Sales/Model/Order/Payment.php | 328 | sales_order_payment_cancel_creditmemo |
Mage/Sales/Model/Order/Payment.php | 339 | sales_order_payment_cancel |
Mage/Sales/Model/Order/Creditmemo.php | 321 | sales_order_creditmemo_refund |
Mage/Sales/Model/Order/Creditmemo.php | 364 | sales_order_creditmemo_cancel |
Mage/Sales/Model/Order/Item.php | 311 | sales_order_item_cancel |
Mage/Sales/Model/Mysql4/Sale/Collection.php | 98 | sales_sale_collection_query_before |
Mage/Sales/Model/Mysql4/Quote/Item/Collection.php | 173 | sales_quote_item_collection_products_after_load |
Mage/Sales/Model/Quote.php | 629 | sales_quote_remove_item |
Mage/Sales/Model/Quote.php | 645 | sales_quote_add_item |
Mage/Sales/Model/Quote.php | 892 | $this->_eventPrefix . '_collect_totals_before |
Mage/Sales/Model/Quote.php | 960 | $this->_eventPrefix . '_collect_totals_after |
Mage/Sales/Model/Quote.php | 1142 | $this->_eventPrefix . '_merge_before |
Mage/Sales/Model/Quote.php | 1177 | $this->_eventPrefix . '_merge_after |
Mage/Sales/Model/Order.php | 572 | sales_order_place_before |
Mage/Sales/Model/Convert/Quote.php | 105 | sales_convert_quote_to_order |
Mage/Sales/Model/Convert/Quote.php | 147 | sales_convert_quote_address_to_order |
Mage/Sales/Model/Convert/Quote.php | 181 | sales_convert_quote_address_to_order_address |
Mage/Sales/Model/Convert/Quote.php | 217 | sales_convert_quote_payment_to_order_payment |
Mage/Sales/Model/Convert/Quote.php | 274 | sales_convert_quote_item_to_order_item |
Mage/Sales/Model/Convert/Order.php | 95 | sales_convert_order_to_quote |
Mage/Sales/Model/Quote/Payment.php | 78 | $this->_eventPrefix . '_import_data_before |
Mage/Sales/Model/Quote/Item.php | 177 | sales_quote_item_qty_set_after |
Mage/Sales/Model/Quote/Item.php | 239 | sales_quote_item_set_product |
Mage/Sales/Model/Quote/Address/Total/Discount.php | 80 | sales_quote_address_discount_item |
Mage/Sales/Model/Quote/Address/Total/Discount.php | 111 | sales_quote_address_discount_item |
Mage/Bundle/Model/Mysql4/Price/Index.php | 355 | catalog_product_prepare_index_select |
Mage/Bundle/Model/Product/Price.php | 76 | catalog_product_get_final_price |
Mage/Bundle/Block/Catalog/Product/View/Type/Bundle.php | 101 | bundle_product_view_config |
Mage/Review/controllers/ProductController.php | 73 | review_controller_product_init_before |
Mage/Review/controllers/ProductController.php | 96 | review_controller_product_init |
Mage/Review/Model/Mysql4/Review/Collection.php | 188 | review_review_collection_load_before |
Mage/Customer/Model/Customer.php | 105 | customer_customer_authenticated |
Mage/Customer/Model/Session.php | 56 | customer_session_init |
Mage/Customer/Model/Session.php | 167 | customer_login |
Mage/Customer/Model/Session.php | 176 | customer_login |
Mage/Customer/Model/Session.php | 191 | customer_login |
Mage/Customer/Model/Session.php | 205 | customer_logout |
Mage/Customer/Helper/Data.php | 268 | customer_registration_is_allowed |
Mage/Sendfriend/controllers/ProductController.php | 93 | sendfriend_product |
Mage/SalesRule/Model/Validator.php | 223 | salesrule_validator_process |
Mage/Rule/Model/Environment.php | 40 | rule_environment_collect |
Mage/Core/Model/Resource.php | 150 | resource_get_tablename |
Mage/Core/Model/Mysql4/Collection/Abstract.php | 192 | core_collection_abstract_load_before |
Mage/Core/Model/Mysql4/Collection/Abstract.php | 209 | core_collection_abstract_load_after |
Mage/Core/Model/Abstract.php | 229 | model_load_after |
Mage/Core/Model/Abstract.php | 230 | $this->_eventPrefix.'_load_after |
Mage/Core/Model/Abstract.php | 270 | model_save_before |
Mage/Core/Model/Abstract.php | 271 | $this->_eventPrefix.'_save_before |
Mage/Core/Model/Abstract.php | 291 | model_save_after |
Mage/Core/Model/Abstract.php | 292 | $this->_eventPrefix.'_save_after |
Mage/Core/Model/Abstract.php | 325 | model_delete_before |
Mage/Core/Model/Abstract.php | 326 | $this->_eventPrefix.'_delete_before |
Mage/Core/Model/Abstract.php | 361 | model_delete_after |
Mage/Core/Model/Abstract.php | 362 | $this->_eventPrefix.'_delete_after |
Mage/Core/Model/Locale.php | 136 | core_locale_set_locale |
Mage/Core/Model/App.php | 1091 | application_clean_cache |
Mage/Core/Model/Layout/Update.php | 270 | core_layout_update_updates_get_after |
Mage/Core/Controller/Varien/Action.php | 258 | controller_action_layout_load_before |
Mage/Core/Controller/Varien/Action.php | 276 | controller_action_layout_generate_xml_before |
Mage/Core/Controller/Varien/Action.php | 295 | controller_action_layout_generate_blocks_before |
Mage/Core/Controller/Varien/Action.php | 307 | controller_action_layout_generate_blocks_after |
Mage/Core/Controller/Varien/Action.php | 341 | controller_action_layout_render_before |
Mage/Core/Controller/Varien/Action.php | 342 | controller_action_layout_render_before_'.$this->getFullActionName( |
Mage/Core/Controller/Varien/Action.php | 454 | controller_action_predispatch |
Mage/Core/Controller/Varien/Action.php | 460 | controller_action_predispatch_'.$this->getFullActionName( |
Mage/Core/Controller/Varien/Action.php | 475 | controller_action_postdispatch_'.$this->getFullActionName( |
Mage/Core/Controller/Varien/Action.php | 479 | controller_action_postdispatch_'.$this->getRequest( |
Mage/Core/Controller/Varien/Action.php | 483 | controller_action_postdispatch |
Mage/Core/Controller/Varien/Action.php | 492 | controller_action_noroute |
Mage/Core/Controller/Varien/Action.php | 512 | controller_action_nocookies |
Mage/Core/Controller/Varien/Front.php | 113 | controller_front_init_before |
Mage/Core/Controller/Varien/Front.php | 132 | controller_front_init_routers |
Mage/Core/Controller/Response/Http.php | 80 | http_response_send_before |
Mage/Core/Block/Abstract.php | 198 | core_block_abstract_prepare_layout_before |
Mage/Core/Block/Abstract.php | 629 | core_block_abstract_to_html_before |
Mage/Core/Block/Abstract.php | 652 | core_block_abstract_to_html_after |
Mage/Tag/Model/Mysql4/Product/Collection.php | 369 | tag_tag_product_collection_load_after |
Mage/Checkout/controllers/MultishippingController.php | 301 | checkout_controller_multishipping_shipping_post |
Mage/Checkout/controllers/CartController.php | 179 | checkout_cart_add_product_complete |
Mage/Checkout/controllers/OnepageController.php | 196 | checkout_onepage_controller_success_action |
Mage/Checkout/controllers/OnepageController.php | 319 | checkout_controller_onepage_save_shipping_method |
Mage/Checkout/Model/Cart.php | 235 | checkout_cart_product_add_after |
Mage/Checkout/Model/Cart.php | 295 | checkout_cart_update_items_before |
Mage/Checkout/Model/Cart.php | 314 | checkout_cart_update_items_after |
Mage/Checkout/Model/Type/Multishipping.php | 222 | checkout_type_multishipping_set_shipping_items |
Mage/Checkout/Model/Type/Multishipping.php | 393 | checkout_type_multishipping_create_orders_single |
Mage/Checkout/Model/Type/Onepage.php | 513 | checkout_type_onepage_save_order |
Mage/Checkout/Model/Type/Onepage.php | 561 | checkout_type_onepage_save_order_after |
Mage/Checkout/Model/Session.php | 71 | checkout_quote_init |
Mage/Checkout/Model/Session.php | 174 | checkout_quote_destroy |
Mage/Checkout/Helper/Data.php | 277 | checkout_allow_guest |
Mage/CatalogInventory/Model/Stock/Item.php | 457 | cataloginventory_stock_item_save_before |
Mage/Wishlist/controllers/IndexController.php | 124 | wishlist_add_product |
Mage/Wishlist/controllers/IndexController.php | 391 | wishlist_share |
Mage/Log/Model/Mysql4/Visitor/Collection.php | 299 | log_visitor_collection_load_before |
Mage/Log/Model/Mysql4/Log.php | 56 | log_log_clean_before |
Mage/Log/Model/Mysql4/Log.php | 64 | log_log_clean_after |
Mage/CatalogSearch/Model/Mysql4/Fulltext.php | 225 | catalogsearch_reset_search_result |
Mage/Catalog/controllers/CategoryController.php | 43 | catalog_controller_category_init_before |
Mage/Catalog/controllers/CategoryController.php | 59 | catalog_controller_category_init_after |
Mage/Catalog/controllers/ProductController.php | 42 | catalog_controller_product_init_before |
Mage/Catalog/controllers/ProductController.php | 80 | catalog_controller_product_init |
Mage/Catalog/controllers/ProductController.php | 139 | catalog_controller_product_view |
Mage/Catalog/controllers/Product/CompareController.php | 80 | catalog_product_compare_add_product |
Mage/Catalog/controllers/Product/CompareController.php | 114 | catalog_product_compare_remove_product |
Mage/Catalog/Model/Product.php | 152 | $this->_eventPrefix.'_validate_before |
Mage/Catalog/Model/Product.php | 154 | $this->_eventPrefix.'_validate_after |
Mage/Catalog/Model/Product.php | 935 | catalog_model_product_duplicate |
Mage/Catalog/Model/Product.php | 1108 | catalog_product_is_salable_before |
Mage/Catalog/Model/Product.php | 1118 | catalog_product_is_salable_after |
Mage/Catalog/Model/Product.php | 1234 | $this->_eventPrefix.'_delete_after_done |
Mage/Catalog/Model/Resource/Eav/Mysql4/Category/Flat.php | 142 | catalog_category_tree_init_inactive_category_ids |
Mage/Catalog/Model/Resource/Eav/Mysql4/Category/Tree.php | 170 | catalog_category_tree_init_inactive_category_ids |
Mage/Catalog/Model/Resource/Eav/Mysql4/Category/Tree.php | 324 | catalog_category_tree_move_before |
Mage/Catalog/Model/Resource/Eav/Mysql4/Category/Tree.php | 359 | catalog_category_tree_move_after |
Mage/Catalog/Model/Resource/Eav/Mysql4/Category/Flat/Collection.php | 109 | $this->_eventPrefix . '_load_before |
Mage/Catalog/Model/Resource/Eav/Mysql4/Category/Flat/Collection.php | 121 | $this->_eventPrefix . '_load_after |
Mage/Catalog/Model/Resource/Eav/Mysql4/Category/Flat/Collection.php | 196 | $this->_eventPrefix . '_add_is_active_filter |
Mage/Catalog/Model/Resource/Eav/Mysql4/Category/Collection.php | 127 | $this->_eventPrefix . '_load_before |
Mage/Catalog/Model/Resource/Eav/Mysql4/Category/Collection.php | 139 | $this->_eventPrefix . '_load_after |
Mage/Catalog/Model/Resource/Eav/Mysql4/Category/Collection.php | 301 | $this->_eventPrefix . '_add_is_active_filter |
Mage/Catalog/Model/Resource/Eav/Mysql4/Category.php | 356 | catalog_category_change_products |
Mage/Catalog/Model/Resource/Eav/Mysql4/Product/Flat/Indexer.php | 324 | catalog_product_flat_prepare_columns |
Mage/Catalog/Model/Resource/Eav/Mysql4/Product/Flat/Indexer.php | 385 | catalog_product_flat_prepare_indexes |
Mage/Catalog/Model/Resource/Eav/Mysql4/Product/Flat/Indexer.php | 758 | catalog_product_flat_rebuild |
Mage/Catalog/Model/Resource/Eav/Mysql4/Product/Flat/Indexer.php | 991 | catalog_product_flat_update_product |
Mage/Catalog/Model/Resource/Eav/Mysql4/Product/Collection.php | 332 | catalog_product_collection_load_before |
Mage/Catalog/Model/Resource/Eav/Mysql4/Product/Collection.php | 355 | catalog_product_collection_load_after |
Mage/Catalog/Model/Resource/Eav/Mysql4/Product/Collection.php | 714 | catalog_product_collection_before_add_count_to_categories |
Mage/Catalog/Model/Resource/Eav/Mysql4/Product/Collection.php | 1322 | catalog_product_collection_apply_limitations_after |
Mage/Catalog/Model/Convert/Adapter/Product.php | 733 | catalog_product_import_after |
Mage/Catalog/Model/Product/Status.php | 220 | catalog_product_status_update |
Mage/Catalog/Model/Product/Type/Price.php | 68 | catalog_product_get_final_price |
Mage/Catalog/Model/Product/Website.php | 70 | catalog_product_website_update |
Mage/Catalog/Model/Product/Website.php | 98 | catalog_product_website_update |
Mage/Catalog/Helper/Output.php | 38 | catalog_helper_output_construct |
Mage/Catalog/Block/Product/View.php | 140 | catalog_product_view_config |
Mage/Catalog/Block/Product/List/Upsell.php | 70 | catalog_product_upsell |
Mage/Catalog/Block/Product/List.php | 163 | catalog_block_product_list_collection |
Mage/Admin/Model/User.php | 257 | admin_user_authenticate_after |
Mage/Admin/Model/Session.php | 82 | admin_session_user_login_success |
Mage/Admin/Model/Session.php | 92 | admin_session_user_login_failed |
Mage/Eav/Model/Entity/Attribute.php | 192 | eav_attribute_get_backend_type_by_input |
Mage/Eav/Model/Entity/Attribute.php | 236 | eav_attribute_get_default_value_by_input |
Mage/Eav/Model/Entity/Collection/Abstract.php | 779 | eav_collection_abstract_load_before |
Mage/CatalogRule/Model/Mysql4/Rule.php | 403 | catalogrule_before_apply |
Mage/CatalogRule/Model/Mysql4/Rule.php | 595 | catalogrule_after_apply |
Mage/Api/Model/User.php | 172 | api_user_authenticated |
Mage/Tax/Model/Calculation/Rate.php | 71 | tax_settings_change_after |
Mage/Tax/Model/Calculation/Rate.php | 83 | tax_settings_change_after |
Mage/Tax/Model/Calculation/Rate.php | 127 | tax_settings_change_after |
Mage/Tax/Model/Calculation/Rule.php | 62 | tax_settings_change_after |
Mage/Tax/Model/Calculation/Rule.php | 74 | tax_settings_change_after |
Mage/Tax/Model/Calculation.php | 103 | tax_rate_data_fetch |
Mage/CatalogIndex/Model/Mysql4/Price.php | 88 | catalogindex_prepare_price_select |
Mage/CatalogIndex/Model/Mysql4/Price.php | 119 | catalogindex_prepare_price_select |
Mage/CatalogIndex/Model/Mysql4/Price.php | 163 | catalogindex_prepare_price_select |
Mage/CatalogIndex/Model/Mysql4/Price.php | 203 | catalogindex_prepare_price_select |
Mage/CatalogIndex/Model/Indexer.php | 352 | catalogindex_plain_reindex_after |
Mage/CatalogIndex/Model/Indexer.php | 612 | catalogindex_prepare_price_select |