Bookmark

Magento 2 Event List: Essential Triggers and Their Uses

Magento 2 Event List: Essential Triggers and Their Uses

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.

  1. checkout_cart_add_product_complete
    Fired when a product is added to the cart. Perform additional processing or validation.
  2. sales_order_place_after
    Triggered after an order is placed. Send order confirmations, process external systems, or execute custom actions.
  3. customer_login
    Fired when a customer logs in. Track logins, record activity, or apply custom logic based on customer profiles.
  4. catalog_product_save_after
    Triggered after a product is saved. Update related records, synchronize data, or trigger additional processes.
  5. checkout_onepage_controller_success_action
    Fired after a successful checkout. Execute custom logic post-purchase, such as account creation or sending thank-you messages.
  6. customer_register_success
    Triggered after a new customer registers. Send welcome emails, assign custom roles, or initiate post-registration processes.
  7. catalog_category_save_after
    Fired after a category is saved. Update related records or perform actions based on category changes.
  8. adminhtml_block_html_before
    Triggered before an HTML block is rendered in the admin area. Modify or add content to admin pages.
  9. sales_order_invoice_pay
    Triggered when an invoice is paid. Update order status or send notifications related to payment.
  10. checkout_cart_save_after
    Fired after the cart is saved. Apply custom business logic based on cart updates, like applying discounts.
  11. customer_save_after
    Triggered after a customer’s data is saved. Implement custom logic or updates based on customer data.
  12. catalog_product_delete_after
    Fired after a product is deleted. Clean up related data or trigger external processes.
  13. sales_order_shipment_save_after
    Triggered after a shipment is saved. Update shipment records or perform additional processing.
  14. checkout_cart_product_add_after
    Fired after a product is added to the cart. Implement additional logic or validations.
  15. catalog_product_load_after
    Triggered after a product is loaded. Customize the product data or add additional processing.
  16. customer_delete_after
    Fired after a customer is deleted. Clean up associated data or trigger external actions.
  17. catalog_category_delete_after
    Triggered after a category is deleted. Clean up related data or perform custom actions.
  18. sales_order_creditmemo_save_after
    Fired after a credit memo is saved. Perform additional processing or update related records.
  19. checkout_cart_quote_save_after
    Triggered after a quote is saved. Implement custom logic or synchronize data.
  20. catalog_product_attribute_save_before
    Fired before a product attribute is saved. Apply custom logic or validations prior to saving.
  21. sales_order_payment_place_end
    Triggered at the end of the payment process. Implement custom actions or updates based on payment details.
  22. catalog_product_type_save_after
    Fired after a product type is saved. Perform custom logic or update related records.
  23. sales_order_save_after
    Triggered after an order is saved. Implement additional processing or synchronization tasks.
  24. sales_order_status_change
    Fired when an order status is changed. Perform actions based on the new status or update related records.
  25. checkout_cart_remove_item_after
    Triggered after an item is removed from the cart. Implement custom logic or updates based on item removal.
  26. catalog_product_collection_load_before
    Fired before a product collection is loaded. Modify the collection query or apply custom filters.
  27. checkout_cart_prepare_save
    Triggered before the cart is saved. Implement custom validations or modifications to cart data.
  28. sales_order_invoice_save_before
    Fired before an invoice is saved. Apply custom validations or logic before saving.
  29. customer_address_save_after
    Triggered after a customer address is saved. Update related records or perform additional processing.
  30. catalog_product_save_before
    Fired before a product is saved. Implement custom validations or modifications to product data.
  31. checkout_cart_get_item_data
    Triggered when getting cart item data. Modify or enrich cart item information.
  32. sales_order_creditmemo_save_before
    Fired before a credit memo is saved. Implement custom logic or validations before saving.
  33. catalog_category_load_before
    Triggered before a category is loaded. Modify or enrich category data.
  34. customer_password_reset
    Fired when a customer password is reset. Perform additional processing or notify users.
  35. sales_order_invoice_save_after
    Triggered after an invoice is saved. Update records or execute custom actions post-save.
  36. catalog_product_price_save_after
    Fired after a product price is saved. Implement custom actions or updates based on price changes.
  37. catalog_product_status_save_after
    Triggered after a product status is saved. Update related records or perform custom actions based on status changes.
  38. checkout_cart_product_delete_after
    Fired after a product is removed from the cart. Implement custom logic or updates related to product removal.
  39. catalog_product_collection_load_after
    Triggered after a product collection is loaded. Modify or enhance the collection data.
  40. sales_order_shipment_save_before
    Fired before a shipment is saved. Implement custom validations or logic before saving.
  41. customer_login_failed
    Triggered when a customer login fails. Track failed login attempts or apply additional logic.
  42. catalog_category_save_before
    Fired before a category is saved. Implement custom logic or validations prior to saving.
  43. sales_order_creditmemo_save_after
    Triggered after a credit memo is saved. Perform custom actions or updates post-save.
  44. catalog_product_option_save_after
    Fired after a product option is saved. Implement custom logic or updates based on option changes.
  45. checkout_cart_save_before
    Triggered before the cart is saved. Implement custom validations or modifications before saving.
  46. sales_order_invoice_save_before
    Fired before an invoice is saved. Apply custom validations or logic before saving.
  47. catalog_product_before_save
    Triggered before a product is saved. Implement custom logic or validations prior to saving.
  48. sales_order_payment_place_after
    Fired after the payment process completes. Execute custom actions based on payment details.
  49. checkout_cart_get_item_data
    Triggered when getting data for cart items. Modify or enrich item information as needed.
  50. catalog_product_attribute_delete_after
    Fired after a product attribute is deleted. Clean up related data or perform custom actions.
  51. sales_order_save_before
    Triggered before an order is saved. Implement custom logic or validations prior to saving.
  52. catalog_category_save_after
    Fired after a category is saved. Update related records or perform additional processing.
  53. checkout_cart_update_items_before
    Triggered before items in the cart are updated. Apply custom logic or modifications.
  54. sales_order_invoice_save_after
    Fired after an invoice is saved. Implement custom logic or update records post-save.
  55. customer_group_save_before
    Triggered before a customer group is saved. Apply custom validations or logic.
  56. checkout_cart_save_after
    Fired after the cart is saved. Implement custom logic or actions based on cart updates.
  57. sales_order_creditmemo_save_before
    Triggered before a credit memo is saved. Implement custom logic or validations before saving.
  58. catalog_product_save_before
    Fired before a product is saved. Apply custom validations or logic prior to saving.
  59. customer_save_after
    Triggered after a customer’s data is saved. Implement custom logic or updates based on customer data.
  60. catalog_product_attribute_save_before
    Fired before a product attribute is saved. Apply custom logic or validations prior to saving.
  61. checkout_cart_get_item_data
    Triggered when getting data for cart items. Modify or enrich item information as needed.
  62. catalog_product_option_save_before
    Fired before a product option is saved. Apply custom logic or validations prior to saving.
  63. checkout_cart_update_items_after
    Triggered after items in the cart are updated. Apply custom logic or perform additional actions.
  64. catalog_product_save_after
    Fired after a product is saved. Update related records or perform custom actions post-save.
  65. catalog_product_before_save
    Triggered before a product is saved. Implement custom logic or validations prior to saving.
  66. sales_order_shipment_save_after
    Triggered after a shipment is saved. Update records or perform additional processing.
  67. customer_address_save_after
    Triggered after a customer address is saved. Update related records or perform additional processing.
  68. catalog_product_attribute_save_after
    Fired after a product attribute is saved. Implement custom actions or updates based on attribute changes.
  69. sales_order_invoice_save_before
    Fired before an invoice is saved. Apply custom logic or validations before saving.
  70. checkout_cart_item_add_after
    Triggered after an item is added to the cart. Apply custom logic or validation.
  71. catalog_product_price_save_before
    Fired before a product price is saved. Apply custom logic or validations prior to saving.
  72. checkout_cart_item_delete_after
    Triggered after an item is removed from the cart. Implement custom logic or updates based on item removal.
  73. customer_group_save_after
    Fired after a customer group is saved. Update related records or perform additional processing.
  74. catalog_product_collection_load_before
    Triggered before a product collection is loaded. Modify collection query or apply custom filters.
  75. sales_order_payment_save_after
    Fired after payment data is saved. Implement custom logic or updates based on payment details.
  76. catalog_product_save_before
    Triggered before a product is saved. Implement custom logic or validations prior to saving.
  77. checkout_cart_save_after
    Triggered after the cart is saved. Implement custom actions or updates based on cart changes.
  78. catalog_product_status_save_before
    Fired before a product status is saved. Apply custom logic or validations before saving.
  79. catalog_product_delete_before
    Triggered before a product is deleted. Implement custom logic or validations prior to deletion.
  80. customer_login_failed
    Fired when a customer login fails. Track login attempts or apply custom logic.
  81. checkout_cart_save_before
    Triggered before the cart is saved. Implement custom logic or validations prior to saving.
  82. sales_order_save_before
    Fired before an order is saved. Apply custom logic or validations before saving.
  83. catalog_category_save_after
    Triggered after a category is saved. Perform custom actions or updates based on category changes.
  84. catalog_category_load_after
    Fired after a category is loaded. Customize or enrich category data.
  85. sales_order_invoice_save_before
    Fired before an invoice is saved. Apply custom validations or logic prior to saving.
  86. catalog_product_option_save_before
    Triggered before a product option is saved. Implement custom logic or validations prior to saving.
  87. sales_order_shipment_save_after
    Fired after a shipment is saved. Perform additional processing or update shipment records.
  88. catalog_product_attribute_save_after
    Fired after a product attribute is saved. Implement custom actions or updates based on attribute changes.
  89. customer_save_before
    Triggered before a customer’s data is saved. Implement custom logic or validations before saving.
  90. sales_order_creditmemo_save_after
    Triggered after a credit memo is saved. Perform custom actions or updates based on credit memo changes.
  91. checkout_cart_get_item_data
    Fired when getting data for cart items. Modify or enrich item data as needed.
  92. customer_group_save_before
    Triggered before a customer group is saved. Implement custom logic or validations prior to saving.
  93. catalog_product_option_save_after
    Fired after a product option is saved. Perform custom actions or updates based on option changes.
  94. checkout_cart_update_items_before
    Triggered before items in the cart are updated. Apply custom logic or validations before saving.
  95. catalog_category_save_before
    Fired before a category is saved. Implement custom logic or validations prior to saving.
  96. sales_order_save_after
    Fired after an order is saved. Implement additional processing or synchronization tasks.
  97. catalog_product_save_after
    Triggered after a product is saved. Update related records or perform custom actions post-save.
  98. customer_login
    Triggered when a customer logs in. Track logins, record activity, or apply custom logic based on customer profiles.
  99. catalog_product_before_save
    Fired before a product is saved. Implement custom logic or validations prior to saving.
  100. checkout_cart_get_item_data
    Triggered when getting data for cart items. Modify or enrich item data as needed.
  101. catalog_product_attribute_delete_after
    Fired after a product attribute is deleted. Clean up related data or perform custom actions.
  102. sales_order_save_before
    Triggered before an order is saved. Implement custom logic or validations prior to saving.
  103. catalog_category_save_after
    Fired after a category is saved. Update related records or perform additional processing.
  104. checkout_cart_update_items_before
    Triggered before items in the cart are updated. Apply custom logic or modifications.
  105. sales_order_invoice_save_after
    Fired after an invoice is saved. Implement custom logic or update records post-save.
  106. customer_group_save_before
    Triggered before a customer group is saved. Apply custom validations or logic.
  107. checkout_cart_save_after
    Fired after the cart is saved. Implement custom logic or actions based on cart updates.
  108. sales_order_creditmemo_save_before
    Triggered before a credit memo is saved. Implement custom logic or validations before saving.
  109. catalog_product_save_before
    Fired before a product is saved. Apply custom validations or logic prior to saving.
  110. customer_save_after
    Triggered after a customer’s data is saved. Implement custom logic or updates based on customer data.
  111. catalog_product_attribute_save_before
    Fired before a product attribute is saved. Apply custom logic or validations prior to saving.
  112. checkout_cart_get_item_data
    Triggered when getting data for cart items. Modify or enrich item data as needed.
  113. catalog_product_option_save_before
    Fired before a product option is saved. Apply custom logic or validations prior to saving.
  114. checkout_cart_update_items_after
    Triggered after items in the cart are updated. Apply custom logic or perform additional actions.
  115. catalog_product_save_after
    Triggered after a product is saved. Update related records or perform custom actions post-save.
  116. catalog_product_before_save
    Fired before a product is saved. Implement custom logic or validations prior to saving.
  117. sales_order_shipment_save_after
    Triggered after a shipment is saved. Update records or perform additional processing.
  118. customer_address_save_after
    Triggered after a customer address is saved. Update related records or perform additional processing.
  119. catalog_product_attribute_save_after
    Fired after a product attribute is saved. Implement custom actions or updates based on attribute changes.
  120. sales_order_invoice_save_before
    Fired before an invoice is saved. Apply custom logic or validations before saving.
  121. checkout_cart_item_add_after
    Triggered after an item is added to the cart. Apply custom logic or validation.
  122. catalog_product_price_save_before
    Fired before a product price is saved. Apply custom logic or validations prior to saving.
  123. checkout_cart_item_delete_after
    Triggered after an item is removed from the cart. Implement custom logic or updates based on item removal.
  124. customer_group_save_after
    Fired after a customer group is saved. Update related records or perform additional processing.
  125. catalog_product_collection_load_before
    Triggered before a product collection is loaded. Modify collection query or apply custom filters.
  126. sales_order_payment_save_after
    Fired after payment data is saved. Implement custom logic or updates based on payment details.
  127. catalog_product_save_before
    Triggered before a product is saved. Implement custom logic or validations prior to saving.
  128. checkout_cart_save_after
    Triggered after the cart is saved. Implement custom actions or updates based on cart changes.
  129. catalog_product_status_save_before
    Fired before a product status is saved. Apply custom logic or validations before saving.
  130. catalog_product_delete_before
    Triggered before a product is deleted. Implement custom logic or validations prior to deletion.
  131. customer_login_failed
    Fired when a customer login fails. Track login attempts or apply custom logic.
  132. checkout_cart_save_before
    Triggered before the cart is saved. Implement custom logic or validations prior to saving.
  133. sales_order_save_before
    Fired before an order is saved. Apply custom logic or validations before saving.
  134. catalog_category_save_after
    Triggered after a category is saved. Perform custom actions or updates based on category changes.
  135. catalog_category_load_after
    Fired after a category is loaded. Customize or enrich category data.
  136. sales_order_invoice_save_before
    Fired before an invoice is saved. Apply custom validations or logic prior to saving.
  137. catalog_product_option_save_before
    Triggered before a product option is saved. Implement custom logic or validations prior to saving.
  138. sales_order_shipment_save_after
    Fired after a shipment is saved. Perform additional processing or update shipment records.
  139. catalog_product_attribute_save_after
    Fired after a product attribute is saved. Implement custom actions or updates based on attribute changes.
  140. customer_save_before
    Triggered before a customer’s data is saved. Implement custom logic or validations before saving.
  141. sales_order_creditmemo_save_after
    Triggered after a credit memo is saved. Perform custom actions or updates based on credit memo changes.
  142. checkout_cart_get_item_data
    Fired when getting data for cart items. Modify or enrich item data as needed.
  143. customer_group_save_before
    Triggered before a customer group is saved. Implement custom logic or validations prior to saving.
  144. catalog_product_option_save_after
    Fired after a product option is saved. Perform custom actions or updates based on option changes.
  145. checkout_cart_update_items_before
    Triggered before items in the cart are updated. Apply custom logic or validations before saving.
  146. catalog_category_save_before
    Fired before a category is saved. Implement custom logic or validations prior to saving.
  147. sales_order_save_after
    Fired after an order is saved. Implement additional processing or synchronization tasks.
  148. catalog_product_save_after
    Triggered after a product is saved. Update related records or perform custom actions post-save.
  149. customer_login
    Triggered when a customer logs in. Track logins, record activity, or apply custom logic based on customer profiles.
Post a Comment

Post a Comment