Cookies setting

Cookies help us enhance your experience on our site by storing information about your preferences and interactions. You can customize your cookie settings by choosing which cookies to allow. Please note that disabling certain cookies might impact the functionality and features of our services, such as personalized content and suggestions. Cookie Policy

Cookie Policy
Essential cookies

These cookies are strictly necessary for the site to work and may not be disabled.

Information
Always enabled
Advertising cookies

Advertising cookies deliver ads relevant to your interests, limit ad frequency, and measure ad effectiveness.

Information
Analytics cookies

Analytics cookies collect information and report website usage statistics without personally identifying individual visitors to Google.

Information
mageplaza.com

Full List of Magento 2 Events & How to Use Them

Vinh Jacker | 12-18-2024

Full List of Magento 2 Events & How to Use Them

This article will provide you with a list of all events in Magento 2. As you know, Magento 2 is using the events-driven architecture which will help too much to extend the Magento functionality. We can understand this event as a kind of flag that rises when a specific situation happens. We will use an example module Mageplaza_HelloWorld to exercise this lesson.

What are Magento 2 Events?

Magento 2 events are designed to execute customized code when a specific Magento 2 event or custom event occurs. Modules dispatch events when specific actions are initiated. Upon dispatching an event, it has the capability to transmit data to any configured observers monitoring that particular event.

Dispatch event

In Magento 2 Events List, we can use the class Magento\Framework\Event\Manager to dispatch event. For example, we create a controller action in Mageplaza_HelloWorld to show the word “Hello World” on the screen:

File: app/code/Mageplaza/HelloWorld/Controller/Index/Test.php

<?php
namespace Mageplaza\HelloWorld\Controller\Index;

class Test extends \Magento\Framework\App\Action\Action
{

	public function execute()
	{
		echo "Hello World";
		exit;
	}
}

Now we want to dispatch a Magento 2 event list which allows another module to change the word displayed. We will change the controller like this:

File: app/code/Mageplaza/HelloWorld/Controller/Index/Test.php

<?php

namespace Mageplaza\HelloWorld\Controller\Index;

class Test extends \Magento\Framework\App\Action\Action
{

	public function execute()
	{
		$textDisplay = new \Magento\Framework\DataObject(array('text' => 'Mageplaza'));
		$this->_eventManager->dispatch('mageplaza_helloworld_display_text', ['mp_text' => $textDisplay]);
		echo $textDisplay->getText();
		exit;
	}
}

The dispatch method will receive 2 arguments: a unique event name and an array of data. In this example, we add the data object to the event and call it back to display the text.

Catch and handle event

Event area

Magento uses area definition to manage the store. We will have a frontend area and an admin area. With the configuration file, they can be put in 3 places:

  • Under etc/ folder is the configuration that can be used in both admin and frontend.
  • Under etc/frontend folder will be used for the frontend area.
  • Under etc/adminhtml folder will be used for the admin area.

The same with the event configuration file. You can create event configuration file for each area like this:

  • Admin area: app/code/Mageplaza/HelloWorld/etc/adminhtml/events.xml
  • Frontend area: app/code/Mageplaza/HelloWorld/etc/frontend/events.xml
  • Global area: app/code/Mageplaza/HelloWorld/etc/events.xml

Create events.xml

In this example, we only catch the event to show the word Mageplaza - Event on the frontend so we should create an events.xml file in etc/frontend folder.

File: app/code/Mageplaza/HelloWorld/etc/frontend/events.xml

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <event name="mageplaza_helloworld_display_text">
        <observer name="mp_display_text" instance="Mageplaza\HelloWorld\Observer\ChangeDisplayText" />
    </event>
</config>

In this file, under config element, we define an event element with the name is the event name that was dispatched above. The class that will execute this event will be defined in the observer element by instance attribute. The name of observer is used to identify this with other observers of this event.

With this events.xml file, Magento will execute class Mageplaza\HelloWorld\Observer\ChangeDisplayText whenever the dispatch method of this event is called on frontend area. Please note that, we place events.xml in the frontend area, so if you dispatch that event in the admin area (like admin controller), it will not run.

Observer

Now we will create a class to execute above event.

Method 1

File: app/code/Mageplaza/HelloWorld/Observer/ChangeDisplayText.php

<?php

namespace Mageplaza\HelloWorld\Observer;

class ChangeDisplayText implements \Magento\Framework\Event\ObserverInterface
{
	public function execute(\Magento\Framework\Event\Observer $observer)
	{
		$displayText = $observer->getData('mp_text');
		echo $displayText->getText() . " - Event </br>";
		$displayText->setText('Execute event successfully.');

		return $this;
	}
}

This class will implement the ObserverInterface and declare the execute method. You can see this simple method to know how it works.

Let’s flush cache and see the result.

Magento 2 events

Method 2:

In Magento, there is another way to capture an event from an action controller. For example: <event name="sales_order_save_after">

<event name="sales_order_save_after">
   <observer name="mpcustomize_sales_order_save_after" instance="Mageplaza\Customize\Observer\OrderSaveAfter"/>
</event>

Here, you can see that the event sales_order_save_after is not initialized from any specific location, yet it can still be called and used.

The rule for calling and using such events must originate from an action controller. The example above is within the sales module’s save controller. The event name must also have either “after” or “before” appended to it.

Related post: How to Create Magento 2 Events & Observers

Magento 2 Events List

Events in PHP Files

</thead>
Event name File
abstract_search_result_load_after vendor/magento/framework/Data/AbstractSearchResult.php
abstract_search_result_load_before vendor/magento/framework/Data/AbstractSearchResult.php
adminhtml_sales_order_create_process_item_after vendor/magento/module-sales/Controller/Adminhtml/Order/Create.php
adminhtml_sales_order_create_process_item_before vendor/magento/module-sales/Controller/Adminhtml/Order/Create.php
adminhtml_sales_order_creditmemo_register_before vendor/magento/module-sales/Controller/Adminhtml/Order/CreditmemoLoader.php
admin_system_config_changed_section_design vendor/magento/User/Module/User.php
amazon_customer_authenticated \Amazon\Login\Helper\Session
amazon_login_authorize_error \Amazon\Login\Controller\Login\Authorize
amazon_login_authorize_validation_error \Amazon\Login\Controller\Login\Authorize
amazon_payment_authorize_before Amazon\Payment\Gateway\Request\AuthorizationRequestBuilder
amazon_payment_pending_authorization_hard_decline_after \Amazon\Payment\Model\PaymentManagement\Authorization
amazon_payment_pending_authorization_soft_decline_after \Amazon\Payment\Model\PaymentManagement\Authorization
assigned_theme_changed vendor/magento/theme/Observer/CheckThemeIsAssignedObserver.php
braintree_googlepay_update_quote_after \PayPal\Braintree\Model\GooglePay\Helper\QuoteUpdater
braintree_googlepay_update_quote_before \PayPal\Braintree\Model\GooglePay\Helper\QuoteUpdater
braintree_paypal_update_quote_after \PayPal\Braintree\Model\Paypal\Helper\QuoteUpdater
braintree_paypal_update_quote_before \PayPal\Braintree\Model\Paypal\Helper\QuoteUpdater
catalogsearch_searchable_attributes_load_after vendor/magento/CatalogSearch/Model/Indexer/Fulltext/Action/DataProvider.php
catalog_product_delete_after_done vendor/magento/Catalog/Model/ResourceModel/Product
vendor/magento/CatalogImportExport/Model/Import/Proxy/Product/ResourceModel
catalog_product_gallery_upload_image_after vendor/magento/module-catalog/Controller/Adminhtml/Product/Gallery/Upload.php
catalog_product_validate_variations_before vendor/magento/module-configurable-product/Model/Product/Validator/Plugin.php
catelogsearch_searchable_attributes_load_after vendor/magento/module-catalog-search/Model/Indexer/Fulltext/Action/DataProvider.php
checkout_cart_product_add_before \Magento\Checkout\Model\Cart
checkout_submit_before vendor/magento/module-quote/Model/QuoteManagement.php
clean_cache_after_reindex vendor/magento/module-indexer/Model/Processor/CleanCache.php
controller_action_inventory_populate_source_with_data vendor/magento/InventoryAdminUi/Controller/Adminhtml/Source/Save
controller_action_inventory_populate_stock_with_data vendor/magento/InventoryAdminUi/Model/Stock/StockSaveProcessor
core_app_init_current_store_after vendor/magento/TestFramework/Store/StoreManager.php
core_layout_block_create_after vendor/magento/Framework/View/Layout/Generator/Block.php
cron_job_run vendor/magento/Cron/Observer/ProcessCronQueueObserver.php
sales_quote_remove_item vendor/magento/Collect/Model/Quote.php
sales_quote_add_item vendor/magento/Collect/Model/Quote.php
sales_quote_product_add_after vendor/magento/Collect/Model/Quote.php
_merge_before vendor/magento/Collect/Model/Quote.php
_merge_after vendor/magento/Collect/Model/Quote.php
sales_quote_item_qty_set_after vendor/magento/Collect/Model/Quote/Item.php
sales_quote_item_set_product vendor/magento/Collect/Model/Quote/Item.php
_import_data_before vendor/magento/Collect/Model/Quote/Payment.php
_load_after vendor/magento/Collect/Model/ResourceModel/Quote/Address/Collection.php
prepare_catalog_product_collection_prices vendor/magento/Collect/Model/ResourceModel/Quote/Item/Collection.php
sales_quote_item_collection_products_after_load vendor/magento/Collect/Model/ResourceModel/Quote/Item/Collection.php
controller_front_send_response_before vendor/magento/framework/App/Http.php
controller_action_layout_render_before vendor/magento/framework/App/View.php
controller_action_layout_render_before_ vendor/magento/framework/App/View.php
controller_action_predispatch vendor/magento/framework/App/Action/Action.php
controller_action_predispatch_ vendor/magento/framework/App/Action/Action.php
controller_action_predispatch_ vendor/magento/framework/App/Action/Action.php
controller_action_postdispatch_ vendor/magento/framework/App/Action/Action.php
controller_action_postdispatch_ vendor/magento/framework/App/Action/Action.php
controller_action_postdispatch vendor/magento/framework/App/Action/Action.php
controller_action_noroute vendor/magento/framework/Controller/Noroute/Index.php
currency_display_options_forming vendor/magento/framework/Locale/Currency.php
model_load_before vendor/magento/framework/Model/AbstractModel.php
_load_before vendor/magento/framework/Model/AbstractModel.php
model_load_after vendor/magento/framework/Model/AbstractModel.php
_load_after vendor/magento/framework/Model/AbstractModel.php
model_save_commit_after vendor/magento/framework/Model/AbstractModel.php
_save_commit_after vendor/magento/framework/Model/AbstractModel.php
model_save_before vendor/magento/framework/Model/AbstractModel.php
_save_before vendor/magento/framework/Model/AbstractModel.php
model_save_after vendor/magento/framework/Model/AbstractModel.php
clean_cache_by_tags vendor/magento/framework/Model/AbstractModel.php
_save_after vendor/magento/framework/Model/AbstractModel.php
model_delete_before vendor/magento/framework/Model/AbstractModel.php
_delete_before vendor/magento/framework/Model/AbstractModel.php
model_delete_after vendor/magento/framework/Model/AbstractModel.php
clean_cache_by_tags vendor/magento/framework/Model/AbstractModel.php
_delete_after vendor/magento/framework/Model/AbstractModel.php
model_delete_commit_after vendor/magento/framework/Model/AbstractModel.php
_delete_commit_after vendor/magento/framework/Model/AbstractModel.php
_clear vendor/magento/framework/Model/AbstractModel.php
_clear vendor/magento/framework/Model/AbstractModel.php
core_collection_abstract_load_before vendor/magento/framework/Model/ResourceModel/Db/Collection/AbstractCollection.php
_load_before vendor/magento/framework/Model/ResourceModel/Db/Collection/AbstractCollection.php
core_collection_abstract_load_after vendor/magento/framework/Model/ResourceModel/Db/Collection/AbstractCollection.php
_load_after vendor/magento/framework/Model/ResourceModel/Db/Collection/AbstractCollection.php
core_layout_render_element vendor/magento/framework/View/Layout.php
view_block_abstract_to_html_before vendor/magento/framework/View/Element/AbstractBlock.php
view_message_block_render_grouped_html_after vendor/magento/framework/View/Element/Messages.php
adminhtml_block_html_before vendor/magento/module-backend/Block/Template.php
adminhtml_store_edit_form_prepare_form vendor/magento/module-backend/Block/System/Store/Edit/AbstractForm.php
backend_block_widget_grid_prepare_grid_before vendor/magento/module-backend/Block/Widget/Grid.php
clean_catalog_images_cache_after vendor/magento/module-backend/Controller/Adminhtml/Cache/CleanImages.php
clean_media_cache_after vendor/magento/module-backend/Controller/Adminhtml/Cache/CleanMedia.php
clean_static_files_cache_after vendor/magento/module-backend/Controller/Adminhtml/Cache/CleanStaticFiles.php
adminhtml_cache_flush_all vendor/magento/module-backend/Controller/Adminhtml/Cache/FlushAll.php
adminhtml_cache_flush_system vendor/magento/module-backend/Controller/Adminhtml/Cache/FlushSystem.php
theme_save_after vendor/magento/module-backend/Controller/Adminhtml/System/Design/Save.php
store_delete vendor/magento/module-backend/Controller/Adminhtml/System/Store/DeleteStorePost.php
store_group_save vendor/magento/module-backend/Controller/Adminhtml/System/Store/Save.php
store_edit vendor/magento/module-backend/Controller/Adminhtml/System/Store/Save.php
store_add vendor/magento/module-backend/Controller/Adminhtml/System/Store/Save.php
backend_auth_user_login_success vendor/magento/module-backend/Model/Auth.php
backend_auth_user_login_failed vendor/magento/module-backend/Model/Auth.php
catalog_product_option_price_configuration_after vendor/magento/module-bundle/Block/Catalog/Product/View/Type/Bundle.php
prepare_catalog_product_collection_prices vendor/magento/module-bundle/Model/Product/Price.php
catalog_product_get_final_price vendor/magento/module-bundle/Model/Product/Price.php
catalog_product_prepare_index_select vendor/magento/module-bundle/Model/ResourceModel/Indexer/Price.php
catalog_product_import_bunch_delete_commit_before vendor/magento/module-catalog-import-export/Model/Import/Product.php
catalog_product_import_bunch_delete_after vendor/magento/module-catalog-import-export/Model/Import/Product.php
catalog_product_import_finish_before vendor/magento/module-catalog-import-export/Model/Import/Product.php
catalog_product_import_bunch_save_after vendor/magento/module-catalog-import-export/Model/Import/Product.php
catalogrule_dirty_notice vendor/magento/module-catalog-rule/Controller/Adminhtml/Promo/Catalog/Index.php
adminhtml_controller_catalogrule_prepare_save vendor/magento/module-catalog-rule/Controller/Adminhtml/Promo/Catalog/Save.php
clean_cache_by_tags vendor/magento/module-catalog-rule/Model/Indexer/AbstractIndexer.php
catalogsearch_reset_search_result vendor/magento/module-catalog-search/Model/ResourceModel/Fulltext.php
shortcut_buttons_container vendor/magento/module-catalog/Block/ShortcutButtons.php
adminhtml_catalog_category_tree_is_moveable vendor/magento/module-catalog/Block/Adminhtml/Category/Tree.php
adminhtml_catalog_category_tree_can_add_root_category vendor/magento/module-catalog/Block/Adminhtml/Category/Tree.php
adminhtml_catalog_category_tree_can_add_sub_category vendor/magento/module-catalog/Block/Adminhtml/Category/Tree.php
adminhtml_catalog_product_grid_prepare_massaction vendor/magento/module-catalog/Block/Adminhtml/Product/Grid.php
product_attribute_grid_build vendor/magento/module-catalog/Block/Adminhtml/Product/Attribute/Grid.php
product_attribute_form_build vendor/magento/module-catalog/Block/Adminhtml/Product/Attribute/Edit/Tab/Advanced.php
product_attribute_form_build_front_tab vendor/magento/module-catalog/Block/Adminhtml/Product/Attribute/Edit/Tab/Front.php
adminhtml_catalog_product_attribute_edit_frontend_prepare_form vendor/magento/module-catalog/Block/Adminhtml/Product/Attribute/Edit/Tab/Front.php
adminhtml_product_attribute_types vendor/magento/module-catalog/Block/Adminhtml/Product/Attribute/Edit/Tab/Main.php
product_attribute_form_build_main_tab vendor/magento/module-catalog/Block/Adminhtml/Product/Attribute/Edit/Tab/Main.php
adminhtml_catalog_product_edit_prepare_form vendor/magento/module-catalog/Block/Adminhtml/Product/Attribute/NewAttribute/Product/Attributes.php
adminhtml_catalog_product_edit_element_types vendor/magento/module-catalog/Block/Adminhtml/Product/Attribute/NewAttribute/Product/Attributes.php
adminhtml_catalog_product_attribute_set_main_html_before vendor/magento/module-catalog/Block/Adminhtml/Product/Attribute/Set/Main.php
adminhtml_catalog_product_attribute_set_toolbar_main_html_before vendor/magento/module-catalog/Block/Adminhtml/Product/Attribute/Set/Toolbar/Main.php
adminhtml_catalog_product_form_prepare_excluded_field_list vendor/magento/module-catalog/Block/Adminhtml/Product/Edit/Action/Attribute/Tab/Attributes.php
adminhtml_catalog_product_edit_prepare_form vendor/magento/module-catalog/Block/Adminhtml/Product/Edit/Tab/Attributes.php
adminhtml_catalog_product_edit_element_types vendor/magento/module-catalog/Block/Adminhtml/Product/Edit/Tab/Attributes.php
catalog_product_gallery_prepare_layout vendor/magento/module-catalog/Block/Adminhtml/Product/Helper/Form/Gallery/Content.php
catalog_block_product_status_display vendor/magento/module-catalog/Block/Product/AbstractProduct.php
catalog_block_product_list_collection vendor/magento/module-catalog/Block/Product/ListProduct.php
catalog_product_view_config vendor/magento/module-catalog/Block/Product/View.php
catalog_product_upsell vendor/magento/module-catalog/Block/Product/ProductList/Upsell.php
catalog_product_option_price_configuration_after vendor/magento/module-catalog/Block/Product/View/Options.php
rss_catalog_category_xml_callback vendor/magento/module-catalog/Block/Rss/Category.php
rss_catalog_new_xml_callback vendor/magento/module-catalog/Block/Rss/Product/NewProducts.php
rss_catalog_special_xml_callback vendor/magento/module-catalog/Block/Rss/Product/Special.php
category_prepare_ajax_response vendor/magento/module-catalog/Controller/Adminhtml/Category.php
catalog_controller_category_delete vendor/magento/module-catalog/Controller/Adminhtml/Category/Delete.php
catalog_category_prepare_save vendor/magento/module-catalog/Controller/Adminhtml/Category/Save.php
catalog_product_edit_action vendor/magento/module-catalog/Controller/Adminhtml/Product/Edit.php
catalog_product_new_action vendor/magento/module-catalog/Controller/Adminhtml/Product/NewAction.php
controller_action_catalog_product_save_entity_after vendor/magento/module-catalog/Controller/Adminhtml/Product/Save.php
catalog_product_to_website_change vendor/magento/module-catalog/Controller/Adminhtml/Product/Action/Attribute/Save.php
catalog_controller_category_init_after vendor/magento/module-catalog/Controller/Category/View.php
catalog_product_compare_add_product vendor/magento/module-catalog/Controller/Product/Compare/Add.php
catalog_product_compare_remove_product vendor/magento/module-catalog/Controller/Product/Compare/Remove.php
catalog_controller_product_init_before vendor/magento/module-catalog/Helper/Product.php
catalog_controller_product_init_after vendor/magento/module-catalog/Helper/Product.php
catalog_controller_product_view vendor/magento/module-catalog/Helper/Product/View.php
_move_before vendor/magento/module-catalog/Model/Category.php
_move_after vendor/magento/module-catalog/Model/Category.php
category_move vendor/magento/module-catalog/Model/Category.php
clean_cache_by_tags vendor/magento/module-catalog/Model/Category.php
_validate_before vendor/magento/module-catalog/Model/Product.php
_validate_after vendor/magento/module-catalog/Model/Product.php
catalog_product_is_salable_before vendor/magento/module-catalog/Model/Product.php
catalog_product_is_salable_after vendor/magento/module-catalog/Model/Product.php
catalog_product_attribute_update_before vendor/magento/module-catalog/Model/Product/Action.php
adminhtml_product_attribute_types vendor/magento/module-catalog/Model/Product/Attribute/Source/Inputtype.php
catalog_product_type_prepare_%s_options vendor/magento/module-catalog/Model/Product/Type/AbstractType.php
catalog_product_get_final_price vendor/magento/module-catalog/Model/Product/Type/Price.php
catalog_category_change_products vendor/magento/module-catalog/Model/ResourceModel/Category.php
catalog_category_delete_after_done vendor/magento/module-catalog/Model/ResourceModel/Category.php
_load_before vendor/magento/module-catalog/Model/ResourceModel/Category/Collection.php
_load_after vendor/magento/module-catalog/Model/ResourceModel/Category/Collection.php
_add_is_active_filter vendor/magento/module-catalog/Model/ResourceModel/Category/Collection.php
catalog_category_tree_init_inactive_category_ids vendor/magento/module-catalog/Model/ResourceModel/Category/Flat.php
catalog_category_flat_loadnodes_before vendor/magento/module-catalog/Model/ResourceModel/Category/Flat.php
catalog_category_tree_init_inactive_category_ids vendor/magento/module-catalog/Model/ResourceModel/Category/Tree.php
_load_before vendor/magento/module-catalog/Model/ResourceModel/Category/Flat/Collection.php
_load_after vendor/magento/module-catalog/Model/ResourceModel/Category/Flat/Collection.php
_add_is_active_filter vendor/magento/module-catalog/Model/ResourceModel/Category/Flat/Collection.php
catalog_prepare_price_select vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php
catalog_product_collection_load_after vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php
catalog_product_collection_before_add_count_to_categories vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php
catalog_product_collection_apply_limitations_after vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php
catalog_product_compare_item_collection_clear vendor/magento/module-catalog/Model/ResourceModel/Product/Compare/Item/Collection.php
prepare_catalog_product_index_select vendor/magento/module-catalog/Model/ResourceModel/Product/Indexer/Eav/AbstractEav.php
prepare_catalog_product_index_select vendor/magento/module-catalog/Model/ResourceModel/Product/Indexer/Eav/Decimal.php
prepare_catalog_product_index_select vendor/magento/module-catalog/Model/ResourceModel/Product/Indexer/Eav/Source.php
prepare_catalog_product_index_select vendor/magento/module-catalog/Model/ResourceModel/Product/Indexer/Eav/Source.php
prepare_catalog_product_index_select vendor/magento/module-catalog/Model/ResourceModel/Product/Indexer/Price/DefaultPrice.php
shortcut_buttons_container vendor/magento/module-checkout/Block/QuoteShortcutButtons.php
checkout_cart_add_product_complete vendor/magento/module-checkout/Controller/Cart/Add.php
checkout_cart_update_item_complete vendor/magento/module-checkout/Controller/Cart/UpdateItemOptions.php
checkout_controller_onepage_saveOrder vendor/magento/module-checkout/Controller/Onepage/SaveOrder.php
checkout_onepage_controller_success_action vendor/magento/module-checkout/Controller/Onepage/Success.php
checkout_allow_guest vendor/magento/module-checkout/Helper/Data.php
checkout_cart_product_add_after vendor/magento/module-checkout/Model/Cart.php
checkout_cart_update_items_before vendor/magento/module-checkout/Model/Cart.php
checkout_cart_update_items_after vendor/magento/module-checkout/Model/Cart.php
checkout_cart_save_before vendor/magento/module-checkout/Model/Cart.php
checkout_cart_save_after vendor/magento/module-checkout/Model/Cart.php
checkout_cart_product_update_after vendor/magento/module-checkout/Model/Cart.php
custom_quote_process vendor/magento/module-checkout/Model/Session.php
checkout_quote_init vendor/magento/module-checkout/Model/Session.php
load_customer_quote_before vendor/magento/module-checkout/Model/Session.php
checkout_quote_destroy vendor/magento/module-checkout/Model/Session.php
restore_quote vendor/magento/module-checkout/Model/Session.php
checkout_type_onepage_save_order_after vendor/magento/module-checkout/Model/Type/Onepage.php
checkout_submit_all_after vendor/magento/module-checkout/Model/Type/Onepage.php
cms_controller_router_match_before vendor/magento/module-cms/Controller/Router.php
adminhtml_cmspage_on_delete vendor/magento/module-cms/Controller/Adminhtml/Page/Delete.php
adminhtml_cmspage_on_delete vendor/magento/module-cms/Controller/Adminhtml/Page/Delete.php
cms_page_prepare_save vendor/magento/module-cms/Controller/Adminhtml/Page/Save.php
cms_page_render vendor/magento/module-cms/Helper/Page.php
cms_wysiwyg_images_static_urls_allowed vendor/magento/module-cms/Helper/Wysiwyg/Images.php
adminhtml_system_config_advanced_disableoutput_render_before vendor/magento/module-config/Block/System/Config/Form/Fieldset/Modules/DisableOutput.php
admin_system_config_changed_section_ vendor/magento/module-config/Model/Config.php
controller_action_nocookies vendor/magento/module-cookie/Controller/Index/NoCookies.php
admin_system_config_changed_section_currency_before_reinit vendor/magento/module-currency-symbol/Model/System/Currencysymbol.php
adminhtml_block_html_before vendor/magento/module-customer/Block/Adminhtml/Edit/Tab/Carts.php
customer_register_success vendor/magento/module-customer/Controller/Account/CreatePost.php
customer_account_edited vendor/magento/module-customer/Controller/Account/EditPost.php
adminhtml_customer_prepare_save vendor/magento/module-customer/Controller/Adminhtml/Index/Save.php
adminhtml_customer_save_after vendor/magento/module-customer/Controller/Adminhtml/Index/Save.php
customer_customer_authenticated vendor/magento/module-customer/Model/Customer.php
customer_session_init vendor/magento/module-customer/Model/Session.php
customer_login vendor/magento/module-customer/Model/Session.php
customer_data_object_login vendor/magento/module-customer/Model/Session.php
customer_logout vendor/magento/module-customer/Model/Session.php
visitor_init vendor/magento/module-customer/Model/Visitor.php
visitor_activity_save vendor/magento/module-customer/Model/Visitor.php
customer_address_format vendor/magento/module-customer/Model/Address/AbstractAddress.php
adminhtml_block_eav_attribute_edit_form_init vendor/magento/module-eav/Block/Adminhtml/Attribute/Edit/Main/AbstractMain.php
eav_collection_abstract_load_before vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php
gift_options_prepare_items vendor/magento/module-gift-message/Block/Message/Inline.php
catalog_product_prepare_index_select vendor/magento/module-grouped-product/Model/ResourceModel/Product/Indexer/Price/Grouped.php
checkout_controller_multishipping_shipping_post vendor/magento/module-multishipping/Controller/Checkout/ShippingPost.php
multishipping_checkout_controller_success_action vendor/magento/module-multishipping/Controller/Checkout/Success.php
checkout_type_multishipping_set_shipping_items vendor/magento/module-multishipping/Model/Checkout/Type/Multishipping.php
checkout_type_multishipping_create_orders_single vendor/magento/module-multishipping/Model/Checkout/Type/Multishipping.php
checkout_submit_all_after vendor/magento/module-multishipping/Model/Checkout/Type/Multishipping.php
checkout_multishipping_refund_all vendor/magento/module-multishipping/Model/Checkout/Type/Multishipping.php
payment_form_block_to_html_before vendor/magento/module-payment/Block/Form/Cc.php
payment_cart_collect_items_and_amounts vendor/magento/module-payment/Model/Cart.php
payment_method_assign_data_ vendor/magento/module-payment/Model/Method/AbstractMethod.php
payment_method_assign_data vendor/magento/module-payment/Model/Method/AbstractMethod.php
payment_method_is_active vendor/magento/module-payment/Model/Method/AbstractMethod.php
paypal_express_place_order_success vendor/magento/module-paypal/Controller/Express/AbstractExpress/PlaceOrder.php
persistent_session_expired vendor/magento/module-persistent/Controller/Index/UnsetCookie.php
persistent_session_expired vendor/magento/module-persistent/Observer/CheckExpirePersistentQuoteObserver.php
sales_quote_remove_item vendor/magento/module-quote/Model/Quote.php
sales_quote_add_item vendor/magento/module-quote/Model/Quote.php
sales_quote_product_add_after vendor/magento/module-quote/Model/Quote.php
_merge_before vendor/magento/module-quote/Model/Quote.php
_merge_after vendor/magento/module-quote/Model/Quote.php
sales_quote_item_qty_set_after vendor/magento/module-quote/Model/Quote/Item.php
sales_quote_item_set_product vendor/magento/module-quote/Model/Quote/Item.php
_import_data_before vendor/magento/module-quote/Model/Quote/Payment.php
_load_after vendor/magento/module-quote/Model/ResourceModel/Quote/Address/Collection.php
prepare_catalog_product_collection_prices vendor/magento/module-quote/Model/ResourceModel/Quote/Item/Collection.php
sales_quote_item_collection_products_after_load vendor/magento/module-quote/Model/ResourceModel/Quote/Item/Collection.php
adminhtml_widget_grid_filter_collection vendor/magento/module-reports/Block/Adminhtml/Grid.php
sales_prepare_amount_expression vendor/magento/module-reports/Model/ResourceModel/Order/Collection.php
review_controller_product_init_before vendor/magento/module-review/Controller/Product.php
review_controller_product_init vendor/magento/module-review/Controller/Product.php
review_controller_product_init_after vendor/magento/module-review/Controller/Product.php
rating_rating_collection_load_before vendor/magento/module-review/Model/ResourceModel/Rating/Collection.php
review_review_collection_load_before vendor/magento/module-review/Model/ResourceModel/Review/Collection.php
adminhtml_block_salesrule_actions_prepareform vendor/magento/module-sales-rule/Block/Adminhtml/Promo/Quote/Edit/Tab/Actions.php
adminhtml_promo_quote_edit_tab_coupons_form_prepare_form vendor/magento/module-sales-rule/Block/Adminhtml/Promo/Quote/Edit/Tab/Coupons/Form.php
adminhtml_block_promo_widget_chooser_prepare_collection vendor/magento/module-sales-rule/Block/Adminhtml/Promo/Widget/Chooser.php
adminhtml_controller_salesrule_prepare_save vendor/magento/module-sales-rule/Controller/Adminhtml/Promo/Quote/Save.php
salesrule_rule_get_coupon_types vendor/magento/module-sales-rule/Model/Rule.php
salesrule_validator_process vendor/magento/module-sales-rule/Model/RulesApplier.php
salesrule_rule_condition_combine vendor/magento/module-sales-rule/Model/Rule/Condition/Combine.php
adminhtml_customer_orders_add_action_renderer vendor/magento/module-sales/Block/Adminhtml/Reorder/Renderer/Action.php
admin_sales_order_address_update vendor/magento/module-sales/Controller/Adminhtml/Order/AddressSave.php
adminhtml_sales_order_create_process_data_before vendor/magento/module-sales/Controller/Adminhtml/Order/Create.php
adminhtml_sales_order_create_process_data vendor/magento/module-sales/Controller/Adminhtml/Order/Create.php
sales_order_place_before vendor/magento/module-sales/Model/Order.php
sales_order_place_after vendor/magento/module-sales/Model/Order.php
order_cancel_after vendor/magento/module-sales/Model/Order.php
sales_convert_order_to_quote vendor/magento/module-sales/Model/AdminOrder/Create.php
sales_convert_order_item_to_quote_item vendor/magento/module-sales/Model/AdminOrder/Create.php
checkout_submit_all_after vendor/magento/module-sales/Model/AdminOrder/Create.php
_sales_email_general_async_sending_ vendor/magento/module-sales/Model/Config/Backend/Email/AsyncSending.php
_dev_grid_async_indexing_ vendor/magento/module-sales/Model/Config/Backend/Grid/AsyncIndexing.php
sales_order_invoice_pay vendor/magento/module-sales/Model/Order/Invoice.php
sales_order_invoice_cancel vendor/magento/module-sales/Model/Order/Invoice.php
sales_order_invoice_register vendor/magento/module-sales/Model/Order/Invoice.php
sales_order_item_cancel vendor/magento/module-sales/Model/Order/Item.php
sales_order_payment_place_start vendor/magento/module-sales/Model/Order/Payment.php
sales_order_payment_place_end vendor/magento/module-sales/Model/Order/Payment.php
sales_order_payment_cancel_invoice vendor/magento/module-sales/Model/Order/Payment.php
sales_order_payment_void vendor/magento/module-sales/Model/Order/Payment.php
sales_order_payment_refund vendor/magento/module-sales/Model/Order/Payment.php
sales_order_payment_cancel_creditmemo vendor/magento/module-sales/Model/Order/Payment.php
sales_order_payment_cancel vendor/magento/module-sales/Model/Order/Payment.php
sales_order_status_unassign vendor/magento/module-sales/Model/Order/Status.php
_html_txn_id vendor/magento/module-sales/Model/Order/Payment/Transaction.php
_load_after vendor/magento/module-sales/Model/ResourceModel/Order/Address/Collection.php
_set_sales_order vendor/magento/module-sales/Model/ResourceModel/Order/Collection/AbstractCollection.php
sales_sale_collection_query_before vendor/magento/module-sales/Model/ResourceModel/Sale/Collection.php
on_view_report vendor/magento/module-search/Controller/Adminhtml/Term/Report.php
sendfriend_product vendor/magento/module-send-friend/Controller/Product/Send.php
swatch_gallery_upload_image_after vendor/magento/module-swatches/Controller/Adminhtml/Iframe/Show.php
adminhtml_cache_refresh_type vendor/magento/module-tax/Controller/Adminhtml/Tax/IgnoreTaxNotification.php
tax_rate_data_fetch vendor/magento/module-tax/Model/Calculation.php
tax_settings_change_after vendor/magento/module-tax/Model/Calculation/Rate.php
page_block_html_topmenu_gethtml_before vendor/magento/module-theme/Block/Html/Topmenu.php
page_block_html_topmenu_gethtml_after vendor/magento/module-theme/Block/Html/Topmenu.php
assign_theme_to_stores_after vendor/magento/module-theme/Model/Config.php
permissions_role_html_before vendor/magento/module-user/Block/Role.php
admin_permissions_role_prepare_save vendor/magento/module-user/Controller/Adminhtml/User/Role/SaveRole.php
admin_user_authenticate_before vendor/magento/module-user/Model/User.php
admin_user_authenticate_after vendor/magento/module-user/Model/User.php
admin_user_authenticate_after vendor/magento/module-user/Model/User.php
product_option_renderer_init vendor/magento/module-wishlist/Block/Customer/Wishlist/Item/Options.php
wishlist_add_product vendor/magento/module-wishlist/Controller/Index/Add.php
wishlist_share vendor/magento/module-wishlist/Controller/Index/Send.php
wishlist_items_renewed vendor/magento/module-wishlist/Helper/Data.php
wishlist_product_add_after vendor/magento/module-wishlist/Model/Wishlist.php
wishlist_item_collection_products_after_load vendor/magento/module-wishlist/Model/ResourceModel/Item/Collection.php

JavaScript Varien Events

</thead>
Event name File
formSubmit lib/web/mage/adminhtml/form.js
address_country_changed lib/web/mage/adminhtml/form.js
gridRowClick lib/web/mage/adminhtml/grid.js
gridRowDblClick lib/web/mage/adminhtml/grid.js
tinymceChange lib/web/mage/adminhtml/wysiwyg/widget.js
tinymceSubmit lib/web/mage/adminhtml/wysiwyg/tiny_mce/setup.js
tinymcePaste lib/web/mage/adminhtml/wysiwyg/tiny_mce/setup.js
tinymceBeforeSetContent lib/web/mage/adminhtml/wysiwyg/tiny_mce/setup.js
tinymceSetContent lib/web/mage/adminhtml/wysiwyg/tiny_mce/setup.js
tinymceSaveContent lib/web/mage/adminhtml/wysiwyg/tiny_mce/setup.js
tinymceChange lib/web/mage/adminhtml/wysiwyg/tiny_mce/setup.js
tinymceExecCommand lib/web/mage/adminhtml/wysiwyg/tiny_mce/setup.js
open_browser_callback lib/web/mage/adminhtml/wysiwyg/tiny_mce/setup.js

Summarize

Above is a comprehensive list of Magento Events compiled by Mageplaza along with instructional files. Please share your thoughts on the usefulness of this post in the Comments section below. Additionally, if you have any questions or concerns regarding events in Magento 2, feel free to ask us here, and we‘ll gladly assist you.

Related topics

x
    Jacker

    With over a decade of experience crafting innovative tech solutions for ecommerce businesses built on Magento, Jacker is the mastermind behind our secure and well-functioned extensions. With his expertise in building user-friendly interfaces and robust back-end systems, Mageplaza was able to deliver exceptional Magento solutions and services for over 122K+ customers around the world.



    Related Post

    Website Support
    & Maintenance Services

    Make sure your store is not only in good shape but also thriving with a professional team yet at an affordable price.

    Get Started
    mageplaza services