Events
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
- constant name : Thelia\Core\Event\TheliaEvents::BOOT
- Description : sent at the beginning
- event class : Thelia\Core\Event\DefaultActionEvent
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
- constant name : Thelia\Core\Event\TheliaEvents::ADDRESS_CREATE
- Description : sent for address creation
- event class : Thelia\Core\Event\Address\AddressCreateOrUpdateEvent
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
- constant name : Thelia\Core\Event\TheliaEvents::ADDRESS_UPDATE
- Description : sent for address modification
- event class : Thelia\Core\Event\Address\AddressCreateOrUpdateEvent
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
- constant name : Thelia\Core\Event\TheliaEvents::BEFORE_DELETEADDRESS
- Description : sent just before address removal
- event class : Thelia\Core\Event\Address\AddressEvent
action.deleteAddress
- constant name : Thelia\Core\Event\TheliaEvents::ADDRESS_DELETE
- Description : sent on address removal
- event class : Thelia\Core\Event\Address\AddressEvent
action.after_deleteAddress
- constant name : Thelia\Core\Event\TheliaEvents::AFTER_DELETEADDRESS
- Description : sent just after address removal
- event class : Thelia\Core\Event\Address\AddressEvent
Admin event
action.admin_logout
- constant name : Thelia\Core\Event\TheliaEvents::ADMIN_LOGOUT
- Description : Sent before the logout of the administrator.
- event class : Thelia\Core\Event\DefaultActionEvent
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
- constant name : Thelia\Core\Event\TheliaEvents::AREA_CREATE
- Description : sent when an area is created
- event class : Thelia\Core\Event\Area\AreaCreateEvent
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
- constant name : Thelia\Core\Event\TheliaEvents::AREA_POSTAGE_UPDATE
- Description : sent for content modification
- event class : Thelia\Core\Event\Area\AreaUpdatePostageEvent
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
- constant name : Thelia\Core\Event\TheliaEvents::AREA_ADD_COUNTRY
- Description : sent when a country is removed from an existing area
- event class : Thelia\Core\Event\Area\AreaAddCountryEvent
action.area.addCountry
- constant name : Thelia\Core\Event\TheliaEvents::AREA_REMOVE_COUNTRY
- Description : sent when a country is added to an existing area
- event class : Thelia\Core\Event\Area\AreaRemoveCountryEvent
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
- constant name : Thelia\Core\Event\TheliaEvents::AREA_DELETE
- Description : sent when an area is removed
- event class : Thelia\Core\Event\Area\AreaRemoveCountryEvent
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
- constant name : Thelia\Core\Event\TheliaEvents::BEFORE_CREATECATEGORY
- Description : sent just before insertion in database
- event class : Thelia\Core\Event\Category\CategoryEvent
action.createCategory
- constant name : Thelia\Core\Event\TheliaEvents::CATEGORY_CREATE
- Description : sent for category creation
- event class : Thelia\Core\Event\Category\CategoryCreateEvent
action.after_createcategory
- constant name : Thelia\Core\Event\TheliaEvents::AFTER_CREATECATEGORY
- Description : sent just after insertion in database
- event class : Thelia\Core\Event\Category\CategoryEvent
action.before_updateCategory
- constant name : Thelia\Core\Event\TheliaEvents::BEFORE_UPDATECATEGORY
- Description : sent just before updating the database
- event class : Thelia\Core\Event\Category\CategoryEvent
action.updateCategory
- constant name : Thelia\Core\Event\TheliaEvents::CATEGORY_UPDATE
- Description : sent for category modification
- event class : Thelia\Core\Event\Category\CategoryUpdateEvent
action.after_updateCategory
- constant name : Thelia\Core\Event\TheliaEvents::AFTER_UPDATECATEGORY
- Description : sent just after updating the database
- event class : Thelia\Core\Event\Category\CategoryEvent
action.before_deletecategory
- constant name : Thelia\Core\Event\TheliaEvents::BEFORE_DELETECATEGORY
- Description : sent just before removing category in database
- event class : Thelia\Core\Event\Category\CategoryEvent
action.deleteCategory
- constant name : Thelia\Core\Event\TheliaEvents::CATEGORY_DELETE
- Description : sent for category removal
- event class : Thelia\Core\Event\Category\CategoryDeleteEvent
action.after_deletecategory
- constant name : Thelia\Core\Event\TheliaEvents::AFTER_DELETECATEGORY
- Description : sent just after removing category in database
- event class : Thelia\Core\Event\Category\CategoryEvent
action.toggleCategoryVisibility
- constant name : Thelia\Core\Event\TheliaEvents::CATEGORY_TOGGLE_VISIBILITY
- Description : sent when category visibility change
- event class : Thelia\Core\Event\Category\CategoryToggleVisibilityEvent
action.updateCategoryPosition
- constant name : Thelia\Core\Event\TheliaEvents::CATEGORY_UPDATE_POSITION
- Description : sent when category position change
- event class : Thelia\Core\Event\UpdatePositionEvent
action.categoryAddContent
- constant name : Thelia\Core\Event\TheliaEvents::CATEGORY_ADD_CONTENT
- Description : sent when a content is added to a category
- event class : Thelia\Core\Event\Category\CategoryAddContentEvent
action.categoryRemoveContent
- constant name : Thelia\Core\Event\TheliaEvents::CATEGORY_REMOVE_CONTENT
- Description : sent when a content is removed to a category
- event class : Thelia\Core\Event\Category\CategoryDeleteContentEvent
Content event
action.before_createContent
- constant name : Thelia\Core\Event\TheliaEvents::BEFORE_CREATECONTENT
- Description : sent just after insertion in database
- event class : Thelia\Core\Event\Content\ContentEvent
action.createContent
- constant name : Thelia\Core\Event\TheliaEvents::CONTENT_CREATE
- Description : sent when a content is created
- event class : Thelia\Core\Event\Content\ContentCreateEvent
action.after_createContent
- constant name : Thelia\Core\Event\TheliaEvents::AFTER_CREATECONTENT
- Description : sent just after insertion in database
- event class : Thelia\Core\Event\Content\ContentEvent
action.before_updateContent
- constant name : Thelia\Core\Event\TheliaEvents::BEFORE_UPDATECONTENT
- Description : sent just before updating the database
- event class : Thelia\Core\Event\Content\ContentEvent
action.updateContent
- constant name : Thelia\Core\Event\TheliaEvents::CONTENT_UPDATE
- Description : sent for content modification
- event class : Thelia\Core\Event\Content\ContentUpdateEvent
action.after_updateContent
- constant name : Thelia\Core\Event\TheliaEvents::AFTER_UPDATECONTENT
- Description : sent just after updating the database
- event class : Thelia\Core\Event\Content\ContentEvent
action.before_deleteContent
- constant name : Thelia\Core\Event\TheliaEvents::BEFORE_DELETECONTENT
- Description : sent just before removing content in the database
- event class : Thelia\Core\Event\Content\ContentEvent
action.deleteContent
- constant name : Thelia\Core\Event\TheliaEvents::CONTENT_DELETE
- Description : sent for content removal
- event class : Thelia\Core\Event\Content\ContentDeleteEvent
action.after_deleteContent
- constant name : Thelia\Core\Event\TheliaEvents::AFTER_DELETECONTENT
- Description : sent just after removing content in the database
- event class : Thelia\Core\Event\Content\ContentEvent
Country event
action.before_createCountry
- constant name : Thelia\Core\Event\TheliaEvents::BEFORE_CREATECOUNTRY
- Description : sent just after insertion in database
- event class : Thelia\Core\Event\Country\CountryEvent
action.createCountry
- constant name : Thelia\Core\Event\TheliaEvents::COUNTRY_CREATE
- Description : sent when a country is created
- event class : Thelia\Core\Event\Country\CountryCreateEvent
action.after_createCountry
- constant name : Thelia\Core\Event\TheliaEvents::AFTER_CREATECOUNTRY
- Description : sent just after insertion in database
- event class : Thelia\Core\Event\Country\CountryEvent
action.before_updateCountry
- constant name : Thelia\Core\Event\TheliaEvents::BEFORE_UPDATECOUNTRY
- Description : sent just before updating the database
- event class : Thelia\Core\Event\Country\CountryEvent
action.updateCountry
- constant name : Thelia\Core\Event\TheliaEvents::COUNTRY_UPDATE
- Description : sent for content modification
- event class : Thelia\Core\Event\Country\CountryUpdateEvent
action.after_updateCountry
- constant name : Thelia\Core\Event\TheliaEvents::AFTER_UPDATECOUNTRY
- Description : sent just after updating the database
- event class : Thelia\Core\Event\Country\CountryEvent
action.before_deleteCountry
- constant name : Thelia\Core\Event\TheliaEvents::BEFORE_DELETECOUNTRY
- Description : sent just before removing content in the database
- event class : Thelia\Core\Event\Country\CountryEvent
action.deleteCountry
- constant name : Thelia\Core\Event\TheliaEvents::COUNTRY_DELETE
- Description : sent for content removal
- event class : Thelia\Core\Event\Country\CountryDeleteEvent
action.after_deleteCountry
- constant name : Thelia\Core\Event\TheliaEvents::AFTER_DELETECOUNTRY
- Description : sent just after removing content in the database
- event class : Thelia\Core\Event\Country\CountryEvent
Customer event
action.customer_logout
- constant name : Thelia\Core\Event\TheliaEvents::CUSTOMER_LOGOUT
- Description : Sent when the customer logged out
- event class : Thelia\Core\Event\DefaultActionEvent
action.customer_login
- constant name : Thelia\Core\Event\TheliaEvents::CUSTOMER_LOGIN
- Description : Sent when customer is successfully logged in.
- event class : Thelia\Core\Event\Customer\CustomerLoginEvent
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
- constant name : Thelia\Core\Event\TheliaEvents::CUSTOMER_CREATEACCOUNT
- Description : sent on customer account creation
- event class : Thelia\Core\Event\Customer\CustomerCreateOrUpdateEvent
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
- constant name : Thelia\Core\Event\TheliaEvents::CUSTOMER_UPDATEACCOUNT
- Description : sent on customer account update
- event class : Thelia\Core\Event\Customer\CustomerCreateOrUpdateEvent
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
- constant name : Thelia\Core\Event\TheliaEvents::CUSTOMER_UPDATEPROFILE
- Description : sent on customer account update profile
- event class : Thelia\Core\Event\Customer\CustomerCreateOrUpdateEvent
action.before_deleteCustomer
- constant name : Thelia\Core\Event\TheliaEvents::BEFORE_DELETECUSTOMER
- Description : sent just before customer removal
- event class : Thelia\Core\Event\Customer\CustomerEvent
action.deleteCustomer
- constant name : Thelia\Core\Event\TheliaEvents::CUSTOMER_DELETEACCOUNT
- Description : sent on customer removal
- event class : Thelia\Core\Event\Customer\CustomerEvent
action.after_deleteCustomer
- constant name : Thelia\Core\Event\TheliaEvents::AFTER_DELETECUSTOMER
- Description : ssent just after customer removal
- event class : Thelia\Core\Event\Customer\CustomerEvent
action.customer.deleteAddress
- constant name : Thelia\Core\Event\TheliaEvents::CUSTOMER_ADDRESS_DELETE
- Description : sent on customer removal
- event class : Thelia\Core\Event\Customer\CustomerEvent
action.lostPassword
- constant name : Thelia\Core\Event\TheliaEvents::LOST_PASSWORD
- Description : sent on customer removal
- event class : Thelia\Core\Event\Customer\CustomerEvent
Folder event
action.before_createFolder
- constant name : Thelia\Core\Event\TheliaEvents::BEFORE_CREATEFOLDER
- Description : sent just after insertion in database
- event class : Thelia\Core\Event\Folder\FolderEvent
action.createFolder
- constant name : Thelia\Core\Event\TheliaEvents::FOLDER_CREATE
- Description : sent when a folder is created
- event class : Thelia\Core\Event\Folder\FolderCreateEvent
action.after_createFolder
- constant name : Thelia\Core\Event\TheliaEvents::AFTER_CREATEFOLDER
- Description : sent just after insertion in database
- event class : Thelia\Core\Event\Folder\FolderEvent
action.before_updateFolder
- constant name : Thelia\Core\Event\TheliaEvents::BEFORE_UPDATEFOLDER
- Description : sent just before updating the database
- event class : Thelia\Core\Event\Folder\FolderEvent
action.updateFolder
- constant name : Thelia\Core\Event\TheliaEvents::FOLDER_UPDATE
- Description : sent for folder modification
- event class : Thelia\Core\Event\Folder\FolderUpdateEvent
action.after_updateFolder
- constant name : Thelia\Core\Event\TheliaEvents::AFTER_UPDATEFOLDER
- Description : sent just after updating the database
- event class : Thelia\Core\Event\Folder\FolderEvent
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
- constant name : Thelia\Core\Event\TheliaEvents::FOLDER_DELETE
- Description : sent for folder removal
- event class : Thelia\Core\Event\Folder\FolderDeleteEvent
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
- constant name : Thelia\Core\Event\TheliaEvents::BEFORE_CREATEPRODUCT
- Description : sent when a new product is created
- event class : Thelia\Core\Event\Product\ProductEvent
action.createProduct
- constant name : Thelia\Core\Event\TheliaEvents::PRODUCT_CREATE
- Description : sent when a new product is created
- event class : Thelia\Core\Event\Product\ProductCreateEvent
action.after_createproduct
- constant name : Thelia\Core\Event\TheliaEvents::AFTER_CREATEPRODUCT
- Description : sent when a new product is created
- event class : Thelia\Core\Event\Product\ProductEvent
action.before_updateProduct
- constant name : Thelia\Core\Event\TheliaEvents::BEFORE_UPDATEPRODUCT
- Description : sent just before updating the database
- event class : Thelia\Core\Event\Product\ProductEvent
action.updateProduct
- constant name : Thelia\Core\Event\TheliaEvents::PRODUCT_UPDATE
- Description : sent when a new product is updated
- event class : Thelia\Core\Event\Product\ProductCreateEvent
action.after_updateProduct
- constant name : Thelia\Core\Event\TheliaEvents::AFTER_UPDATEPRODUCT
- Description : sent just after updating the database
- event class : Thelia\Core\Event\Product\ProductEvent
action.before_deleteproduct
- constant name : Thelia\Core\Event\TheliaEvents::BEFORE_DELETEPRODUCT
- Description : sent just before removing the product
- event class : Thelia\Core\Event\Product\ProductEvent
action.deleteProduct
- constant name : Thelia\Core\Event\TheliaEvents::PRODUCT_DELETE
- Description : sent when a new product is removed
- event class : Thelia\Core\Event\Product\ProductDeleteEvent
action.after_deleteproduct
- constant name : Thelia\Core\Event\TheliaEvents::AFTER_DELETEPRODUCT
- Description : sent just after removing the product
- event class : Thelia\Core\Event\Product\ProductEvent
action.toggleProductVisibility
- constant name : Thelia\Core\Event\TheliaEvents::PRODUCT_TOGGLE_VISIBILITY
- Description : sent when a prodcut’s visibility change
- event class : Thelia\Core\Event\UpdatePositionEvent
action.updateProductPosition
- constant name : Thelia\Core\Event\TheliaEvents::PRODUCT_UPDATE_POSITION
- Description : sent when a prodcut’s position change
- event class : Thelia\Core\Event\Product\ProductToggleVisibilityEvent
action.productAddContent
- constant name : Thelia\Core\Event\TheliaEvents::PRODUCT_ADD_CONTENT
- Description : sent when a content is added to a product
- event class : Thelia\Core\Event\Product\ProductAddContentEvent
action.productRemoveContent
- constant name : Thelia\Core\Event\TheliaEvents::PRODUCT_REMOVE_CONTENT
- Description : sent when a content is removed to a product
- event class : Thelia\Core\Event\Product\ProductDeleteContentEvent
action.updateProductContentPosition
- constant name : Thelia\Core\Event\TheliaEvents::PRODUCT_UPDATE_CONTENT_POSITION
- Description :
- event class : Thelia\Core\Event\UpdatePositionEvent
action.addProductSaleElement
- constant name : Thelia\Core\Event\TheliaEvents::PRODUCT_ADD_PRODUCT_SALE_ELEMENT
- Description : Create a new product sale element, with or without combination
- event class : Thelia\Core\Event\ProductSaleElement\ProductSaleElementCreateEvent
action.updateProductSaleElement
- constant name : Thelia\Core\Event\TheliaEvents::PRODUCT_UPDATE_PRODUCT_SALE_ELEMENT
- Description : Update an existing product sale element
- event class : Thelia\Core\Event\ProductSaleElement\ProductSaleElementUpdateEvent
action.deleteProductSaleElement
- constant name : Thelia\Core\Event\TheliaEvents::PRODUCT_DELETE_PRODUCT_SALE_ELEMENT
- Description : Delete a product sale element
- event class : Thelia\Core\Event\ProductSaleElement\ProductSaleElementDeleteEvent
action.productCombinationGeneration
- constant name : Thelia\Core\Event\TheliaEvents::PRODUCT_COMBINATION_GENERATION
- Description : Generate combinations. All existing combinations for the product are deleted.
- event class : Thelia\Core\Event\ProductSaleElement\ProductCombinationGenerationEvent
action.productSetTemplate
- constant name : Thelia\Core\Event\TheliaEvents::PRODUCT_SET_TEMPLATE
- Description : Change template for the product. All existing combinations for the product are deleted.
- event class : Thelia\Core\Event\Product\ProductSetTemplateEvent
action.productAddProductAccessory
- constant name : Thelia\Core\Event\TheliaEvents::PRODUCT_ADD_ACCESSORY
- Description : add an accessory (a product) to a product
- event class : Thelia\Core\Event\Product\ProductAddAccessoryEvent
action.productRemoveProductAccessory
- constant name : Thelia\Core\Event\TheliaEvents::PRODUCT_REMOVE_ACCESSORY
- Description : remove an accessory (a product) to a product
- event class : Thelia\Core\Event\Product\ProductDeleteAccessoryEvent
action.updateProductAccessoryPosition
- constant name : Thelia\Core\Event\TheliaEvents::PRODUCT_UPDATE_ACCESSORY_POSITION
- Description : update accessory position
- event class : Thelia\Core\Event\UpdatePositionEvent
action.updateProductFeatureValue
- constant name : Thelia\Core\Event\TheliaEvents::PRODUCT_FEATURE_UPDATE_VALUE
- Description : Update the value of a product feature
- event class : Thelia\Core\Event\FeatureProduct\FeatureProductUpdateEvent
action.deleteProductFeatureValue
- constant name : Thelia\Core\Event\TheliaEvents::PRODUCT_FEATURE_DELETE_VALUE
- Description : Delete a product feature value
- event class : Thelia\Core\Event\FeatureProduct\FeatureProductDeleteEvent
action.addProductCategory
- constant name : Thelia\Core\Event\TheliaEvents::PRODUCT_ADD_CATEGORY
- Description : add a product in a secondary category
- event class : Thelia\Core\Event\Product\ProductAddCategoryEvent
action.deleteProductCategory
- constant name : Thelia\Core\Event\TheliaEvents::PRODUCT_REMOVE_CATEGORY
- Description : remove a product from a secondary category
- event class : Thelia\Core\Event\Product\ProductDeleteCategoryEvent
Shipping Zone event
action.shippingZone.addArea
- constant name : Thelia\Core\Event\TheliaEvents::SHIPPING_ZONE_ADD_AREA
- Description : sent when an aera is added to a shipping zone
- event class : Thelia\Core\Event\ShippingZone\ShippingZoneAddAreaEvent
action.shippingZone.removeArea
- constant name : Thelia\Core\Event\TheliaEvents::SHIPPING_ZONE_REMOVE_AREA
- Description : sent when an aera is removed from a shipping zone
- event class : Thelia\Core\Event\ShippingZone\ShippingZoneAddAreaEvent