Hello Everyone,

In this blog, we will learn about Magento 2 Events and Its Uses.

What are Magento 2 Events?

          Events are dispatched by modules when certain actions are triggered. When an Event is dispatched data is passed to the observer which is configured to watch that particular event.

Events are dispatched at various points in Magento’s workflow (e.g., when a product is saved, a customer logs in, or an order is placed).

For instance, when a customer logs in, an event is dispatched, enabling an observer to execute a predefined action, such as sending a welcome email, recording login activity, or integrating with external systems. Similarly, during checkout, events can be used to customize workflows, such as applying special discounts or triggering third-party API calls.

Without wasting your time, let us guide you straight away. Below is a list of Magento 2 Events.

LIST OF MAGENTO 2 EVENTS

Event NameFile
abstract_search_result_load_aftervendor/magento/framework/Data/AbstractSearchResult.php
abstract_search_result_load_before  vendor/magento/framework/Data/AbstractSearchResult.php
adminhtml_block_eav_attribute_edit_form_init  vendor/magento/module-eav/Block/Adminhtml/Attribute/Edit/Main/AbstractMain.php
adminhtml_block_html_before  vendor/magento/module-customer/Block/Adminhtml/Edit/Tab/Carts.php
adminhtml_block_promo_widget_chooser_prepare_collectionvendor/magento/module-sales-rule/Block/Adminhtml/Promo/Widget/Chooser.php
adminhtml_block_salesrule_actions_prepareformvendor/magento/module-sales-rule/Block/Adminhtml/Promo/Quote/Edit/Tab/Actions.php
adminhtml_cache_flush_allvendor/magento/module-backend/Console/Command/CacheFlushCommand.php
adminhtml_cache_flush_systemvendor/magento/module-backend/Console/Command/CacheCleanCommand.php
adminhtml_cache_refresh_typevendor/magento/module-page-cache/Model/Cache/Type.php
adminhtml_catalog_category_tree_can_add_root_categoryvendor/magento/module-catalog/Block/Adminhtml/Category/Tree.php
adminhtml_catalog_category_tree_can_add_sub_categoryvendor/magento/module-catalog/Block/Adminhtml/Category/Tree.php
adminhtml_catalog_category_tree_is_moveablevendor/magento/module-catalog/Block/Adminhtml/Category/Tree.php
adminhtml_catalog_product_attribute_edit_frontend_prepare_formvendor/magento/module-catalog/Block/Adminhtml/Product/Attribute/Edit/Tab/Front.php
adminhtml_catalog_product_attribute_set_main_html_beforevendor/magento/module-catalog/Block/Adminhtml/Product/Attribute/Set/Main.php
adminhtml_catalog_product_attribute_set_toolbar_main_html_beforevendor/magento/module-catalog/Block/Adminhtml/Product/Attribute/Set/Toolbar/Main.php
adminhtml_catalog_product_edit_element_typesvendor/magento/module-catalog/Block/Adminhtml/Product/Attribute/NewAttribute/Product/Attributes.php
adminhtml_catalog_product_edit_prepare_formvendor/magento/module-catalog/Block/Adminhtml/Product/Attribute/NewAttribute/Product/Attributes.php
adminhtml_catalog_product_edit_tab_attributes_create_html_beforevendor/magento/module-catalog/Block/Adminhtml/Product/Edit/Tab/Attributes.php
adminhtml_catalog_product_form_prepare_excluded_field_listvendor/magento/module-catalog/Block/Adminhtml/Product/Edit/Action/Attribute/Tab/Attributes.php
adminhtml_catalog_product_grid_prepare_massactionvendor/magento/module-catalog/Block/Adminhtml/Product/Grid.php
adminhtml_cmspage_on_deletevendor/magento/module-cms/Controller/Adminhtml/Page/Delete.php
adminhtml_controller_catalogrule_prepare_savevendor/magento/module-catalog-rule/Controller/Adminhtml/Promo/Catalog/Save.php
adminhtml_controller_salesrule_prepare_savevendor/magento/module-sales-rule/Controller/Adminhtml/Promo/Quote/Save.php
adminhtml_customer_orders_add_action_renderervendor/magento/module-sales/Block/Adminhtml/Reorder/Renderer/Action.php
adminhtml_customer_prepare_savevendor/magento/module-customer/Controller/Adminhtml/Index/Save.php
adminhtml_customer_save_aftervendor/magento/module-customer/Controller/Adminhtml/Index/Save.php
adminhtml_product_attribute_typesvendor/magento/module-catalog/Block/Adminhtml/Product/Attribute/Edit/Tab/Main.php
adminhtml_promo_quote_edit_tab_coupons_form_prepare_formvendor/magento/module-sales-rule/Block/Adminhtml/Promo/Quote/Edit/Tab/Coupons/Form.php
adminhtml_sales_order_create_process_datavendor/magento/module-sales/Controller/Adminhtml/Order/Create.php
adminhtml_sales_order_create_process_data_beforevendor/magento/module-sales/Controller/Adminhtml/Order/Create.php
adminhtml_sales_order_create_process_item_aftervendor/magento/module-sales/Controller/Adminhtml/Order/Create.php
adminhtml_sales_order_create_process_item_beforevendor/magento/module-sales/Controller/Adminhtml/Order/Create.php
adminhtml_sales_order_creditmemo_register_beforevendor/magento/module-sales/Controller/Adminhtml/Order/CreditmemoLoader.php
adminhtml_store_edit_form_prepare_formvendor/magento/module-backend/Block/System/Store/Edit/AbstractForm.php
adminhtml_system_config_advanced_disableoutput_render_beforevendor/magento/module-config/Block/System/Config/Form/Fieldset/Modules/DisableOutput.php
adminhtml_widget_grid_filter_collectionvendor/magento/module-reports/Block/Adminhtml/Grid.php
admin_permissions_role_prepare_savevendor/magento/module-user/Controller/Adminhtml/User/Role/SaveRole.php
admin_system_config_changed_section_currencyvendor/magento/module-currency-symbol/Model/System/Currencysymbol.php
admin_system_config_changed_section_currency_before_reinitvendor/magento/module-currency-symbol/Model/System/Currencysymbol.php
admin_system_config_changed_section_designvendor/magento/module-theme/Model/Design/Config/Plugin.php
admin_system_config_savevendor/magento/module-config/controller/Adminhtml/System/Config/save.php
admin_user_authenticate_aftervendor/magento/module-user/Model/User.php
admin_user_authenticate_beforevendor/magento/module-user/Model/User.php
assigned_theme_changedvendor/magento/module-theme/Observer/CheckThemeIsAssignedObserver.php
assign_theme_to_stores_aftervendor/magento/module-theme/Model/Config.php
backend_auth_user_login_failedvendor/magento/module-backend/Model/Auth.php
backend_auth_user_login_successvendor/magento/module-backend/Model/Auth.php
backend_block_widget_grid_prepare_grid_beforevendor/magento/module-backend/Block/Widget/Grid.php
catalogrule_dirty_noticevendor/magento/module-catalog-rule/Controller/Adminhtml/Promo/Catalog/Index.php
catalogsearch_reset_search_resultvendor/magento/module-catalog-search/Model/ResourceModel/Fulltext.php
catalogsearch_searchable_attributes_load_aftervendor/magento/CatalogSearch/Model/Indexer/Fulltext/Action/DataProvider.php
catalog_block_product_list_collectionvendor/magento/module-catalog/Block/Product/ListProduct.php
catalog_block_product_status_displayvendor/magento/module-catalog/Block/Product/AbstractProduct.php
catalog_category_change_productsvendor/magento/module-catalog/Model/ResourceModel/Category.php
catalog_category_delete_after_donevendor/magento/module-catalog/Model/ResourceModel/Category.php
catalog_category_flat_loadnodes_beforevendor/magento/module-catalog/Model/ResourceModel/Category/Flat.php
catalog_category_prepare_savevendor/magento/module-catalog/Controller/Adminhtml/Category/Save.php
catalog_category_tree_init_inactive_category_idsvendor/magento/module-catalog/Model/ResourceModel/Category/Flat.php
catalog_controller_category_deletevendor/magento/module-catalog/Controller/Adminhtml/Category/Delete.php
catalog_controller_category_init_aftervendor/magento/module-catalog/Controller/Category/View.php
catalog_controller_product_init_aftervendor/magento/module-catalog/Helper/Product.php
catalog_controller_product_init_beforevendor/magento/module-catalog/Helper/Product.php
catalog_controller_product_viewvendor/magento/module-catalog/Helper/Product/View.php
catalog_prepare_price_selectvendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php
catalog_product_attribute_update_beforevendor/magento/module-catalog/Model/Product/Action.php
catalog_product_collection_apply_limitations_aftervendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php
catalog_product_collection_before_add_count_to_categoriesvendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php
catalog_product_collection_load_aftervendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php
catalog_product_compare_add_productvendor/magento/module-catalog/Controller/Product/Compare/Add.php
catalog_product_compare_item_collection_clearvendor/magento/module-catalog/Model/ResourceModel/Product/Compare/Item/Collection.php
catalog_product_compare_remove_productvendor/magento/module-catalog/Controller/Product/Compare/Remove.php
catalog_product_delete_after_donevendor/magento/module-catalog/Model/ResourceModel/Product.php
catalog_product_edit_actionvendor/magento/module-catalog/Controller/Adminhtml/Product/Edit.php
catalog_product_gallery_prepare_layoutvendor/magento/module-catalog/Block/Adminhtml/Product/Helper/Form/Gallery/Content.php
catalog_product_gallery_upload_image_aftervendor/magento/module-catalog/Controller/Adminhtml/Product/Gallery/Upload.php
catalog_product_get_final_pricevendor/magento/module-bundle/Model/Product/Price.php
catalog_product_import_bunch_delete_aftervendor/magento/module-catalog-url-rewrite/etc/events.xml
catalog_product_import_bunch_delete_commit_beforevendor/magento/module-catalog-import-export/Model/Import/Product.php
catalog_product_import_bunch_save_aftervendor/magento/module-catalog-import-export/Model/Import/Product.php
catalog_product_import_finish_beforevendor/magento/module-catalog-import-export/Model/Import/Product.php
catalog_product_is_salable_aftervendor/magento/module-catalog/Model/Product.php
catalog_product_is_salable_beforevendor/magento/module-catalog/Model/Product.php
catalog_product_new_actionvendor/magento/module-catalog/Controller/Adminhtml/Product/NewAction.php
catalog_product_option_price_configuration_aftervendor/magento/module-bundle/Block/Catalog/Product/View/Type/Bundle.php
catalog_product_prepare_index_selectvendor/magento/module-bundle/Model/ResourceModel/Indexer/Price.php
catalog_product_to_website_changevendor/magento/module-catalog/Controller/Adminhtml/Product/Action/Attribute/Save.php
catalog_product_upsellvendor/magento/module-catalog/Block/Product/ProductList/Upsell.php
catalog_product_validate_variations_beforevendor/magento/module-configurable-product/Model/Product/Validator/Plugin.php
catalog_product_view_configvendor/magento/module-catalog/Block/Product/View.php
category_movevendor/magento/module-catalog/Model/Category.php
category_prepare_ajax_responsevendor/magento/module-catalog/Controller/Adminhtml/Category.php
catelogsearch_searchable_attributes_load_aftervendor/magento/module-catalog-search/Model/Indexer/Fulltext/Action/DataProvider.php
checkout_allow_guestvendor/magento/module-checkout/Helper/Data.php
checkout_cart_add_product_completevendor/magento/module-checkout/Controller/Cart/Add.php
checkout_cart_product_add_beforevendor/magento/Checkout/Model/Cart.php
checkout_cart_product_update_aftervendor/magento/module-checkout/Model/Cart.php
checkout_cart_save_aftervendor/magento/module-checkout/Model/Cart.php
checkout_cart_save_beforevendor/magento/module-checkout/Model/Cart.php
checkout_cart_update_items_aftervendor/magento/module-checkout/Model/Cart.php
checkout_cart_update_items_beforevendor/magento/module-checkout/Model/Cart.php
checkout_cart_update_item_completevendor/magento/module-checkout/Controller/Cart/UpdateItemOptions.php
checkout_controller_multishipping_shipping_postvendor/magento/module-multishipping/Controller/Checkout/ShippingPost.php
checkout_controller_onepage_saveOrdervendor/magento/module-checkout/Controller/Onepage/SaveOrder.php
checkout_multishipping_refund_allvendor/magento/module-multishipping/Model/Checkout/Type/Multishipping.php
checkout_onepage_controller_success_actionvendor/magento/module-checkout/Controller/Onepage/Success.php
checkout_quote_destroyvendor/magento/module-checkout/Model/Session.php
checkout_quote_initvendor/magento/module-checkout/Model/Session.php
checkout_submit_all_aftervendor/magento/module-checkout/Model/Type/Onepage.php
checkout_submit_beforevendor/magento/module-quote/Model/QuoteManagement.php
checkout_type_multishipping_create_orders_singlevendor/magento/module-multishipping/Model/Checkout/Type/Multishipping.php
checkout_type_multishipping_set_shipping_itemsvendor/magento/module-multishipping/Model/Checkout/Type/Multishipping.php
checkout_type_onepage_save_order_aftervendor/magento/module-checkout/Model/Type/Onepage.php
clean_cache_after_reindexvendor/magento/module-indexer/Model/Processor/CleanCache.php
clean_cache_by_tagsvendor/magento/framework/Model/AbstractModel.php
clean_catalog_images_cache_aftervendor/magento/module-backend/Controller/Adminhtml/Cache/CleanImages.php
clean_media_cache_aftervendor/magento/module-backend/Controller/Adminhtml/Cache/CleanMedia.php
clean_static_files_cache_aftervendor/magento/module-backend/Controller/Adminhtml/Cache/CleanStaticFiles.php
cms_controller_router_match_beforevendor/magento/module-cms/Controller/Router.php
cms_page_prepare_savevendor/magento/module-cms/Controller/Adminhtml/Page/Save.php
cms_page_rendervendor/magento/module-cms/Helper/Page.php
cms_wysiwyg_images_static_urls_allowedvendor/magento/module-cms/Helper/Wysiwyg/Images.php
controller_action_catalog_product_save_entity_aftervendor/magento/module-catalog/Controller/Adminhtml/Product/Save.php
controller_action_inventory_populate_source_with_datavenodor/magento/module-InventoryAdminUi/Controller/Adminhtml/Source/Save.php
controller_action_inventory_populate_stock_with_datavenodor/magento/module-InventoryAdminUi/Controller/Adminhtml/Source/Save.php
controller_action_inventory_source_save_aftervenodor/magento/module-InventoryAdminUi/Controller/Adminhtml/Source/Save.php
controller_action_layout_render_beforevendor/magento/framework/App/View.php
controller_action_nocookiesvendor/magento/module-cookie/Controller/Index/NoCookies.php
controller_action_noroutevendor/magento/framework/Controller/Noroute/Index.php
controller_action_postdispatchvendor/magento/framework/App/Action/Action.php
controller_action_predispatchvendor/magento/framework/App/Action/Action.php
controller_front_send_response_beforevendor/magento/framework/App/Http.php
core_collection_abstract_load_aftervendor/magento/framework/Model/ResourceModel/Db/Collection/AbstractCollection.php
core_collection_abstract_load_beforevendor/magento/framework/Model/ResourceModel/Db/Collection/AbstractCollection.php
core_layout_block_create_aftervendor/magento/framework/View/Layout/Generator/Block.php
core_layout_render_elementvendor/magento/framework/View/Layout.php
cron_job_runvendor/magento/Cron/Observer/ProcessCronQueueObserver.php
currency_display_options_formingvendor/magento/framework/Locale/Currency.php
customer_account_editedvendor/magento/module-customer/Controller/Account/EditPost.php
customer_address_formatvendor/magento/module-customer/Model/Address/AbstractAddress.php
customer_customer_authenticatedvendor/magento/module-customer/Model/AccountManagement.php
customer_data_object_loginvendor/magento/module-customer/Model/AccountManagement.php
customer_loginvendor/magento/module-customer/Model/Session.php
customer_logoutvendor/magento/module-customer/Model/Session.php

Final Thoughts:

So this was the easiest way which we have told you in this blog. This is a List of Magento 2 Events. Hope you liked the blog.

So quickly go to the comment box and tell me how you like this blog?

Stay tuned with us on our site to get new updates of Magento.

Thanks for reading and visiting our site.

Leave a Reply

Your email address will not be published. Required fields are marked *