In Magento 2, events provide a mechanism for the system to signal when a particular action takes place. This enables developers to attach custom functionality at different stages of the application's lifecycle without modifying the core code. Events utilize the Observer design pattern, with observers monitoring these events and executing specific actions as needed.
- checkout_cart_add_product_complete
Fired when a product is added to the cart. Perform additional processing or validation.
- sales_order_place_after
Triggered after an order is placed. Send order confirmations, process external systems, or execute custom actions.
- customer_login
Fired when a customer logs in. Track logins, record activity, or apply custom logic based on customer profiles.
- catalog_product_save_after
Triggered after a product is saved. Update related records, synchronize data, or trigger additional processes.
- checkout_onepage_controller_success_action
Fired after a successful checkout. Execute custom logic post-purchase, such as account creation or sending thank-you messages.
- customer_register_success
Triggered after a new customer registers. Send welcome emails, assign custom roles, or initiate post-registration processes.
- catalog_category_save_after
Fired after a category is saved. Update related records or perform actions based on category changes.
- adminhtml_block_html_before
Triggered before an HTML block is rendered in the admin area. Modify or add content to admin pages.
- sales_order_invoice_pay
Triggered when an invoice is paid. Update order status or send notifications related to payment.
- checkout_cart_save_after
Fired after the cart is saved. Apply custom business logic based on cart updates, like applying discounts.
- customer_save_after
Triggered after a customer’s data is saved. Implement custom logic or updates based on customer data.
- catalog_product_delete_after
Fired after a product is deleted. Clean up related data or trigger external processes.
- sales_order_shipment_save_after
Triggered after a shipment is saved. Update shipment records or perform additional processing.
- checkout_cart_product_add_after
Fired after a product is added to the cart. Implement additional logic or validations.
- catalog_product_load_after
Triggered after a product is loaded. Customize the product data or add additional processing.
- customer_delete_after
Fired after a customer is deleted. Clean up associated data or trigger external actions.
- catalog_category_delete_after
Triggered after a category is deleted. Clean up related data or perform custom actions.
- sales_order_creditmemo_save_after
Fired after a credit memo is saved. Perform additional processing or update related records.
- checkout_cart_quote_save_after
Triggered after a quote is saved. Implement custom logic or synchronize data.
- catalog_product_attribute_save_before
Fired before a product attribute is saved. Apply custom logic or validations prior to saving.
- sales_order_payment_place_end
Triggered at the end of the payment process. Implement custom actions or updates based on payment details.
- catalog_product_type_save_after
Fired after a product type is saved. Perform custom logic or update related records.
- sales_order_save_after
Triggered after an order is saved. Implement additional processing or synchronization tasks.
- sales_order_status_change
Fired when an order status is changed. Perform actions based on the new status or update related records.
- checkout_cart_remove_item_after
Triggered after an item is removed from the cart. Implement custom logic or updates based on item removal.
- catalog_product_collection_load_before
Fired before a product collection is loaded. Modify the collection query or apply custom filters.
- checkout_cart_prepare_save
Triggered before the cart is saved. Implement custom validations or modifications to cart data.
- sales_order_invoice_save_before
Fired before an invoice is saved. Apply custom validations or logic before saving.
- customer_address_save_after
Triggered after a customer address is saved. Update related records or perform additional processing.
- catalog_product_save_before
Fired before a product is saved. Implement custom validations or modifications to product data.
- checkout_cart_get_item_data
Triggered when getting cart item data. Modify or enrich cart item information.
- sales_order_creditmemo_save_before
Fired before a credit memo is saved. Implement custom logic or validations before saving.
- catalog_category_load_before
Triggered before a category is loaded. Modify or enrich category data.
- customer_password_reset
Fired when a customer password is reset. Perform additional processing or notify users.
- sales_order_invoice_save_after
Triggered after an invoice is saved. Update records or execute custom actions post-save.
- catalog_product_price_save_after
Fired after a product price is saved. Implement custom actions or updates based on price changes.
- catalog_product_status_save_after
Triggered after a product status is saved. Update related records or perform custom actions based on status changes.
- checkout_cart_product_delete_after
Fired after a product is removed from the cart. Implement custom logic or updates related to product removal.
- catalog_product_collection_load_after
Triggered after a product collection is loaded. Modify or enhance the collection data.
- sales_order_shipment_save_before
Fired before a shipment is saved. Implement custom validations or logic before saving.
- customer_login_failed
Triggered when a customer login fails. Track failed login attempts or apply additional logic.
- catalog_category_save_before
Fired before a category is saved. Implement custom logic or validations prior to saving.
- sales_order_creditmemo_save_after
Triggered after a credit memo is saved. Perform custom actions or updates post-save.
- catalog_product_option_save_after
Fired after a product option is saved. Implement custom logic or updates based on option changes.
- checkout_cart_save_before
Triggered before the cart is saved. Implement custom validations or modifications before saving.
- sales_order_invoice_save_before
Fired before an invoice is saved. Apply custom validations or logic before saving.
- catalog_product_before_save
Triggered before a product is saved. Implement custom logic or validations prior to saving.
- sales_order_payment_place_after
Fired after the payment process completes. Execute custom actions based on payment details.
- checkout_cart_get_item_data
Triggered when getting data for cart items. Modify or enrich item information as needed.
- catalog_product_attribute_delete_after
Fired after a product attribute is deleted. Clean up related data or perform custom actions.
- sales_order_save_before
Triggered before an order is saved. Implement custom logic or validations prior to saving.
- catalog_category_save_after
Fired after a category is saved. Update related records or perform additional processing.
- checkout_cart_update_items_before
Triggered before items in the cart are updated. Apply custom logic or modifications.
- sales_order_invoice_save_after
Fired after an invoice is saved. Implement custom logic or update records post-save.
- customer_group_save_before
Triggered before a customer group is saved. Apply custom validations or logic.
- checkout_cart_save_after
Fired after the cart is saved. Implement custom logic or actions based on cart updates.
- sales_order_creditmemo_save_before
Triggered before a credit memo is saved. Implement custom logic or validations before saving.
- catalog_product_save_before
Fired before a product is saved. Apply custom validations or logic prior to saving.
- customer_save_after
Triggered after a customer’s data is saved. Implement custom logic or updates based on customer data.
- catalog_product_attribute_save_before
Fired before a product attribute is saved. Apply custom logic or validations prior to saving.
- checkout_cart_get_item_data
Triggered when getting data for cart items. Modify or enrich item information as needed.
- catalog_product_option_save_before
Fired before a product option is saved. Apply custom logic or validations prior to saving.
- checkout_cart_update_items_after
Triggered after items in the cart are updated. Apply custom logic or perform additional actions.
- catalog_product_save_after
Fired after a product is saved. Update related records or perform custom actions post-save.
- catalog_product_before_save
Triggered before a product is saved. Implement custom logic or validations prior to saving.
- sales_order_shipment_save_after
Triggered after a shipment is saved. Update records or perform additional processing.
- customer_address_save_after
Triggered after a customer address is saved. Update related records or perform additional processing.
- catalog_product_attribute_save_after
Fired after a product attribute is saved. Implement custom actions or updates based on attribute changes.
- sales_order_invoice_save_before
Fired before an invoice is saved. Apply custom logic or validations before saving.
- checkout_cart_item_add_after
Triggered after an item is added to the cart. Apply custom logic or validation.
- catalog_product_price_save_before
Fired before a product price is saved. Apply custom logic or validations prior to saving.
- checkout_cart_item_delete_after
Triggered after an item is removed from the cart. Implement custom logic or updates based on item removal.
- customer_group_save_after
Fired after a customer group is saved. Update related records or perform additional processing.
- catalog_product_collection_load_before
Triggered before a product collection is loaded. Modify collection query or apply custom filters.
- sales_order_payment_save_after
Fired after payment data is saved. Implement custom logic or updates based on payment details.
- catalog_product_save_before
Triggered before a product is saved. Implement custom logic or validations prior to saving.
- checkout_cart_save_after
Triggered after the cart is saved. Implement custom actions or updates based on cart changes.
- catalog_product_status_save_before
Fired before a product status is saved. Apply custom logic or validations before saving.
- catalog_product_delete_before
Triggered before a product is deleted. Implement custom logic or validations prior to deletion.
- customer_login_failed
Fired when a customer login fails. Track login attempts or apply custom logic.
- checkout_cart_save_before
Triggered before the cart is saved. Implement custom logic or validations prior to saving.
- sales_order_save_before
Fired before an order is saved. Apply custom logic or validations before saving.
- catalog_category_save_after
Triggered after a category is saved. Perform custom actions or updates based on category changes.
- catalog_category_load_after
Fired after a category is loaded. Customize or enrich category data.
- sales_order_invoice_save_before
Fired before an invoice is saved. Apply custom validations or logic prior to saving.
- catalog_product_option_save_before
Triggered before a product option is saved. Implement custom logic or validations prior to saving.
- sales_order_shipment_save_after
Fired after a shipment is saved. Perform additional processing or update shipment records.
- catalog_product_attribute_save_after
Fired after a product attribute is saved. Implement custom actions or updates based on attribute changes.
- customer_save_before
Triggered before a customer’s data is saved. Implement custom logic or validations before saving.
- sales_order_creditmemo_save_after
Triggered after a credit memo is saved. Perform custom actions or updates based on credit memo changes.
- checkout_cart_get_item_data
Fired when getting data for cart items. Modify or enrich item data as needed.
- customer_group_save_before
Triggered before a customer group is saved. Implement custom logic or validations prior to saving.
- catalog_product_option_save_after
Fired after a product option is saved. Perform custom actions or updates based on option changes.
- checkout_cart_update_items_before
Triggered before items in the cart are updated. Apply custom logic or validations before saving.
- catalog_category_save_before
Fired before a category is saved. Implement custom logic or validations prior to saving.
- sales_order_save_after
Fired after an order is saved. Implement additional processing or synchronization tasks.
- catalog_product_save_after
Triggered after a product is saved. Update related records or perform custom actions post-save.
- customer_login
Triggered when a customer logs in. Track logins, record activity, or apply custom logic based on customer profiles.
- catalog_product_before_save
Fired before a product is saved. Implement custom logic or validations prior to saving.
- checkout_cart_get_item_data
Triggered when getting data for cart items. Modify or enrich item data as needed.
- catalog_product_attribute_delete_after
Fired after a product attribute is deleted. Clean up related data or perform custom actions.
- sales_order_save_before
Triggered before an order is saved. Implement custom logic or validations prior to saving.
- catalog_category_save_after
Fired after a category is saved. Update related records or perform additional processing.
- checkout_cart_update_items_before
Triggered before items in the cart are updated. Apply custom logic or modifications.
- sales_order_invoice_save_after
Fired after an invoice is saved. Implement custom logic or update records post-save.
- customer_group_save_before
Triggered before a customer group is saved. Apply custom validations or logic.
- checkout_cart_save_after
Fired after the cart is saved. Implement custom logic or actions based on cart updates.
- sales_order_creditmemo_save_before
Triggered before a credit memo is saved. Implement custom logic or validations before saving.
- catalog_product_save_before
Fired before a product is saved. Apply custom validations or logic prior to saving.
- customer_save_after
Triggered after a customer’s data is saved. Implement custom logic or updates based on customer data.
- catalog_product_attribute_save_before
Fired before a product attribute is saved. Apply custom logic or validations prior to saving.
- checkout_cart_get_item_data
Triggered when getting data for cart items. Modify or enrich item data as needed.
- catalog_product_option_save_before
Fired before a product option is saved. Apply custom logic or validations prior to saving.
- checkout_cart_update_items_after
Triggered after items in the cart are updated. Apply custom logic or perform additional actions.
- catalog_product_save_after
Triggered after a product is saved. Update related records or perform custom actions post-save.
- catalog_product_before_save
Fired before a product is saved. Implement custom logic or validations prior to saving.
- sales_order_shipment_save_after
Triggered after a shipment is saved. Update records or perform additional processing.
- customer_address_save_after
Triggered after a customer address is saved. Update related records or perform additional processing.
- catalog_product_attribute_save_after
Fired after a product attribute is saved. Implement custom actions or updates based on attribute changes.
- sales_order_invoice_save_before
Fired before an invoice is saved. Apply custom logic or validations before saving.
- checkout_cart_item_add_after
Triggered after an item is added to the cart. Apply custom logic or validation.
- catalog_product_price_save_before
Fired before a product price is saved. Apply custom logic or validations prior to saving.
- checkout_cart_item_delete_after
Triggered after an item is removed from the cart. Implement custom logic or updates based on item removal.
- customer_group_save_after
Fired after a customer group is saved. Update related records or perform additional processing.
- catalog_product_collection_load_before
Triggered before a product collection is loaded. Modify collection query or apply custom filters.
- sales_order_payment_save_after
Fired after payment data is saved. Implement custom logic or updates based on payment details.
- catalog_product_save_before
Triggered before a product is saved. Implement custom logic or validations prior to saving.
- checkout_cart_save_after
Triggered after the cart is saved. Implement custom actions or updates based on cart changes.
- catalog_product_status_save_before
Fired before a product status is saved. Apply custom logic or validations before saving.
- catalog_product_delete_before
Triggered before a product is deleted. Implement custom logic or validations prior to deletion.
- customer_login_failed
Fired when a customer login fails. Track login attempts or apply custom logic.
- checkout_cart_save_before
Triggered before the cart is saved. Implement custom logic or validations prior to saving.
- sales_order_save_before
Fired before an order is saved. Apply custom logic or validations before saving.
- catalog_category_save_after
Triggered after a category is saved. Perform custom actions or updates based on category changes.
- catalog_category_load_after
Fired after a category is loaded. Customize or enrich category data.
- sales_order_invoice_save_before
Fired before an invoice is saved. Apply custom validations or logic prior to saving.
- catalog_product_option_save_before
Triggered before a product option is saved. Implement custom logic or validations prior to saving.
- sales_order_shipment_save_after
Fired after a shipment is saved. Perform additional processing or update shipment records.
- catalog_product_attribute_save_after
Fired after a product attribute is saved. Implement custom actions or updates based on attribute changes.
- customer_save_before
Triggered before a customer’s data is saved. Implement custom logic or validations before saving.
- sales_order_creditmemo_save_after
Triggered after a credit memo is saved. Perform custom actions or updates based on credit memo changes.
- checkout_cart_get_item_data
Fired when getting data for cart items. Modify or enrich item data as needed.
- customer_group_save_before
Triggered before a customer group is saved. Implement custom logic or validations prior to saving.
- catalog_product_option_save_after
Fired after a product option is saved. Perform custom actions or updates based on option changes.
- checkout_cart_update_items_before
Triggered before items in the cart are updated. Apply custom logic or validations before saving.
- catalog_category_save_before
Fired before a category is saved. Implement custom logic or validations prior to saving.
- sales_order_save_after
Fired after an order is saved. Implement additional processing or synchronization tasks.
- catalog_product_save_after
Triggered after a product is saved. Update related records or perform custom actions post-save.
- customer_login
Triggered when a customer logs in. Track logins, record activity, or apply custom logic based on customer profiles.
Post a Comment