Thelia use the Observer Pattern for managing all the action like creating a new customer, updating a product. For each action an event is dispatching containing an event object. Event object contains only data.

List of events

This list is maybe not complete. All events constant are in Thelia\Core\Event\TheliaEvents::

Core event

thelia.boot

Address event

action.before_createAddress

  • constant name : Thelia\Core\Event\TheliaEvents::BEFORE_CREATEADDRESS
  • Description : sent once the address creation form has been successfully validated, and before address insertion in the database.
  • event class : Thelia\Core\Event\Address\AddressEvent

action.createAddress

action.after_createAddress

  • constant name : Thelia\Core\Event\TheliaEvents::AFTER_CREATEADDRESS
  • Description : Sent just after a successful insert of a new address in the database.
  • event class : Thelia\Core\Event\Address\AddressEvent

action.before_updateAddress

  • constant name : Thelia\Core\Event\TheliaEvents::BEFORE_UPDATEADDRESS
  • Description : sent once the address update form has been successfully validated, and before address modification in the database.
  • event class : Thelia\Core\Event\Address\AddressEvent

action.updateAddress

action.after_updateAddress

  • constant name : Thelia\Core\Event\TheliaEvents::AFTER_UPDATEADDRESS
  • Description : Sent just after a successful modification of an existing address in the database.
  • event class : Thelia\Core\Event\Address\AddressEvent

action.before_deleteAddress

action.deleteAddress

action.after_deleteAddress

Admin event

action.admin_logout

action.admin_login

  • constant name : Thelia\Core\Event\TheliaEvents::ADMIN_LOGIN
  • Description : Sent once the administrator is successfully logged in.
  • event class : Thelia\Core\Event\DefaultActionEvent

Area event

action.before_createArea

  • constant name : Thelia\Core\Event\TheliaEvents::BEFORE_CREATEAREA
  • Description : sent just after insertion in database
  • event class : Thelia\Core\Event\Area\AreaEvent

action.createArea

action.after_createArea

  • constant name : Thelia\Core\Event\TheliaEvents::AFTER_CREATEAREA
  • Description : sent just after insertion in database
  • event class : Thelia\Core\Event\Area\AreaEvent

action.area.postageUpdate

action.before_updateArea

  • constant name : Thelia\Core\Event\TheliaEvents::BEFORE_UPDATEAREA
  • Description : sent just before updating the database
  • event class : Thelia\Core\Event\Area\AreaEvent

action.after_updateArea

  • constant name : Thelia\Core\Event\TheliaEvents::AFTER_UPDATEAREA
  • Description : sent just after updating the database
  • event class : Thelia\Core\Event\Area\AreaEvent

action.area.removeCountry

action.area.addCountry

action.before_deleteArea

  • constant name : Thelia\Core\Event\TheliaEvents::BEFORE_DELETEAREA
  • Description : sent just before removing content in the database
  • event class : Thelia\Core\Event\Area\AreaEvent

action.deleteArea

action.after_deleteArea

  • constant name : Thelia\Core\Event\TheliaEvents::AFTER_DELETEAREA
  • Description : sent just after removing content in the database
  • event class : Thelia\Core\Event\Area\AreaEvent

Category event

action.before_createcategory

action.createCategory

action.after_createcategory

action.before_updateCategory

action.updateCategory

action.after_updateCategory

action.before_deletecategory

action.deleteCategory

action.after_deletecategory

action.toggleCategoryVisibility

action.updateCategoryPosition

action.categoryAddContent

action.categoryRemoveContent

Content event

action.before_createContent

action.createContent

action.after_createContent

action.before_updateContent

action.updateContent

action.after_updateContent

action.before_deleteContent

action.deleteContent

action.after_deleteContent

Country event

action.before_createCountry

action.createCountry

action.after_createCountry

action.before_updateCountry

action.updateCountry

action.after_updateCountry

action.before_deleteCountry

action.deleteCountry

action.after_deleteCountry

Customer event

action.customer_logout

action.customer_login

action.before_createcustomer

  • constant name : Thelia\Core\Event\TheliaEvents::BEFORE_CREATECUSTOMER
  • Description : sent once the customer creation form has been successfully validated, and before customer insertion in the database.
  • event class : Thelia\Core\Event\Customer\CustomerEvent

action.createCustomer

action.after_createcustomer

  • constant name : Thelia\Core\Event\TheliaEvents::AFTER_CREATECUSTOMER
  • Description : Sent just after a successful insert of a new customer in the database.
  • event class : Thelia\Core\Event\Customer\CustomerEvent

action.before_updateCustomer

  • constant name : Thelia\Core\Event\TheliaEvents::BEFORE_UPDATECUSTOMER
  • Description : Sent once the customer change form has been successfully validated, and before customer update in the database.
  • event class : Thelia\Core\Event\Customer\CustomerEvent

action.updateCustomer

action.after_updateCustomer

  • constant name : Thelia\Core\Event\TheliaEvents::AFTER_UPDATECUSTOMER
  • Description : Sent just after a successful update of a customer in the database.
  • event class : Thelia\Core\Event\Customer\CustomerEvent

action.updateProfileCustomer

action.before_deleteCustomer

action.deleteCustomer

action.after_deleteCustomer

action.customer.deleteAddress

action.lostPassword

Folder event

action.before_createFolder

action.createFolder

action.after_createFolder

action.before_updateFolder

action.updateFolder

action.after_updateFolder

action.before_deleteFolder

  • constant name : Thelia\Core\Event\TheliaEvents::BEFORE_DELETEFOLDER
  • Description : sent just before removing folder in the database
  • event class : Thelia\Core\Event\Folder\FolderEvent

action.deleteFolder

action.after_deleteFolder

  • constant name : Thelia\Core\Event\TheliaEvents::AFTER_DELETEFOLDER
  • Description : sent just after removing folder in the database
  • event class : Thelia\Core\Event\Folder\FolderEvent

Product event

action.before_createproduct

action.createProduct

action.after_createproduct

action.before_updateProduct

action.updateProduct

action.after_updateProduct

action.before_deleteproduct

action.deleteProduct

action.after_deleteproduct

action.toggleProductVisibility

action.updateProductPosition

action.productAddContent

action.productRemoveContent

action.updateProductContentPosition

action.addProductSaleElement

action.updateProductSaleElement

action.deleteProductSaleElement

action.productCombinationGeneration

action.productSetTemplate

action.productAddProductAccessory

action.productRemoveProductAccessory

action.updateProductAccessoryPosition

action.updateProductFeatureValue

action.deleteProductFeatureValue

action.addProductCategory

action.deleteProductCategory

Shipping Zone event

action.shippingZone.addArea

action.shippingZone.removeArea