Skip to content

List of all available Hooks for Scripts

List of all available Hooks for Scripts

Data Loading

All available Hooks that can be used to load additional data.

payment-method-route-request

Namepayment-method-route-request
Since6.5.0.0
ClassShopware\Core\Checkout\Payment\Hook\PaymentMethodRouteHook
DescriptionTriggered when PaymentMethodRoute is requested
Available Datacollection: Shopware\Core\Checkout\Payment\PaymentMethodCollection
context: Shopware\Core\Framework\Context
onlyAvailable: bool
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
acl
Stoppablefalse

shipping-method-route-request

Nameshipping-method-route-request
Since6.5.0.0
ClassShopware\Core\Checkout\Shipping\Hook\ShippingMethodRouteHook
DescriptionTriggered when ShippingMethodRoute is requested
Available Datacollection: Shopware\Core\Checkout\Shipping\ShippingMethodCollection
context: Shopware\Core\Framework\Context
onlyAvailable: bool
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
acl
Stoppablefalse

product-reviews-widget-loaded

Nameproduct-reviews-widget-loaded
Since6.6.9.0
ClassShopware\Core\Content\Product\SalesChannel\Review\ProductReviewsWidgetLoadedHook
DescriptionTriggered when the ProductReviewsWidget is loaded
Available Datacontext: Shopware\Core\Framework\Context
reviews: Shopware\Core\Content\Product\SalesChannel\Review\ProductReviewResult
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
acl
Stoppablefalse

customer-group-registration-page-loaded

Namecustomer-group-registration-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Account\CustomerGroupRegistration\CustomerGroupRegistrationPageLoadedHook
DescriptionTriggered when the CustomerGroupRegistrationPage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Account\CustomerGroupRegistration\CustomerGroupRegistrationPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

account-guest-login-page-loaded

Nameaccount-guest-login-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Account\Login\AccountGuestLoginPageLoadedHook
DescriptionTriggered when the AccountGuestLoginPage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Account\Login\AccountLoginPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

account-login-page-loaded

Nameaccount-login-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Account\Login\AccountLoginPageLoadedHook
DescriptionTriggered when the AccountLoginPage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Account\Login\AccountLoginPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

account-edit-order-page-loaded

Nameaccount-edit-order-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Account\Order\AccountEditOrderPageLoadedHook
DescriptionTriggered when the AccountEditOrderPage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Account\Order\AccountEditOrderPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

account-order-detail-page-loaded

Nameaccount-order-detail-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Account\Order\AccountOrderDetailPageLoadedHook
DescriptionTriggered when the AccountOrderDetailPage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Account\Order\AccountOrderDetailPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

account-order-page-loaded

Nameaccount-order-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Account\Order\AccountOrderPageLoadedHook
DescriptionTriggered when the AccountOrderPage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Account\Order\AccountOrderPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

account-overview-page-loaded

Nameaccount-overview-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Account\Overview\AccountOverviewPageLoadedHook
DescriptionTriggered when the AccountOverviewPage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Account\Overview\AccountOverviewPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

account-profile-page-loaded

Nameaccount-profile-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Account\Profile\AccountProfilePageLoadedHook
DescriptionTriggered when the AccountProfilePage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Account\Profile\AccountProfilePage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

account-recover-password-page-loaded

Nameaccount-recover-password-page-loaded
Since6.4.13.0
ClassShopware\Storefront\Page\Account\RecoverPassword\AccountRecoverPasswordPageLoadedHook
DescriptionTriggered when the AccountRecoverPasswordPage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Account\RecoverPassword\AccountRecoverPasswordPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

account-register-page-loaded

Nameaccount-register-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Account\Register\AccountRegisterPageLoadedHook
DescriptionTriggered when the AccountLoginPage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Account\Login\AccountLoginPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

address-detail-page-loaded

Nameaddress-detail-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Address\Detail\AddressDetailPageLoadedHook
DescriptionTriggered when the AddressDetailPage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Address\Detail\AddressDetailPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

address-book-widget-loaded

Nameaddress-book-widget-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Address\Listing\AddressBookWidgetLoadedHook
DescriptionTriggered when the AddressBookWidget is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Address\Listing\AddressListingPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

address-listing-page-loaded

Nameaddress-listing-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Address\Listing\AddressListingPageLoadedHook
DescriptionTriggered when the AddressListingPage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Address\Listing\AddressListingPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

checkout-cart-page-loaded

Namecheckout-cart-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Checkout\Cart\CheckoutCartPageLoadedHook
DescriptionTriggered when the CheckoutCartPage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Checkout\Cart\CheckoutCartPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

checkout-confirm-page-loaded

Namecheckout-confirm-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Checkout\Confirm\CheckoutConfirmPageLoadedHook
DescriptionTriggered when the CheckoutConfirmPage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Checkout\Confirm\CheckoutConfirmPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

checkout-finish-page-loaded

Namecheckout-finish-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Checkout\Finish\CheckoutFinishPageLoadedHook
DescriptionTriggered when the CheckoutFinishPage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Checkout\Finish\CheckoutFinishPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

checkout-info-widget-loaded

Namecheckout-info-widget-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Checkout\Offcanvas\CheckoutInfoWidgetLoadedHook
DescriptionTriggered when the CheckoutInfoWidget is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Checkout\Offcanvas\OffcanvasCartPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

checkout-offcanvas-widget-loaded

Namecheckout-offcanvas-widget-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Checkout\Offcanvas\CheckoutOffcanvasWidgetLoadedHook
DescriptionTriggered when the CheckoutOffcanvasWidget is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Checkout\Offcanvas\OffcanvasCartPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

checkout-register-page-loaded

Namecheckout-register-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Checkout\Register\CheckoutRegisterPageLoadedHook
DescriptionTriggered when the CheckoutRegisterPage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Checkout\Register\CheckoutRegisterPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

cms-page-loaded

Namecms-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Cms\CmsPageLoadedHook
DescriptionTriggered when a CmsPage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Core\Content\Cms\CmsPageEntity
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

landing-page-loaded

Namelanding-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\LandingPage\LandingPageLoadedHook
DescriptionTriggered when the LandingPage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\LandingPage\LandingPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

maintenance-page-loaded

Namemaintenance-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Maintenance\MaintenancePageLoadedHook
DescriptionTriggered when the MaintenancePage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Maintenance\MaintenancePage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse
Namenavigation-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Navigation\NavigationPageLoadedHook
DescriptionTriggered when the NavigationPage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Navigation\NavigationPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

product-page-loaded

Nameproduct-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Product\ProductPageLoadedHook
DescriptionTriggered when the ProductPage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Product\ProductPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

product-quick-view-widget-loaded

Nameproduct-quick-view-widget-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Product\QuickView\ProductQuickViewWidgetLoadedHook
DescriptionTriggered when the ProductQuickViewWidget is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Product\QuickView\MinimalQuickViewPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

search-page-loaded

Namesearch-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Search\SearchPageLoadedHook
DescriptionTriggered when the SearchPage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Search\SearchPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

search-widget-loaded

Namesearch-widget-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Search\SearchWidgetLoadedHook
DescriptionTriggered when the SearchWidget is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Search\SearchPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

sitemap-page-loaded

Namesitemap-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Sitemap\SitemapPageLoadedHook
DescriptionTriggered when the SitemapPage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Sitemap\SitemapPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

suggest-page-loaded

Namesuggest-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Suggest\SuggestPageLoadedHook
DescriptionTriggered when the SuggestPage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Suggest\SuggestPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

guest-wishlist-page-loaded

Nameguest-wishlist-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Wishlist\GuestWishlistPageLoadedHook
DescriptionTriggered when the GuestWishlistPage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Wishlist\GuestWishlistPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

wishlist-page-loaded

Namewishlist-page-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Wishlist\WishlistPageLoadedHook
DescriptionTriggered when the WishlistPage is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Wishlist\WishlistPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

wishlist-widget-loaded

Namewishlist-widget-loaded
Since6.4.8.0
ClassShopware\Storefront\Page\Wishlist\WishlistWidgetLoadedHook
DescriptionTriggered when the WishlistWidget is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Page\Wishlist\WishlistPage
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

country-state-data-pagelet-loaded

Namecountry-state-data-pagelet-loaded
Since6.4.8.0
ClassShopware\Storefront\Pagelet\Country\CountryStateDataPageletLoadedHook
DescriptionTriggered when the CountryStateDataPagelet is loaded
Available Datacontext: Shopware\Core\Framework\Context
pagelet: Shopware\Storefront\Pagelet\Country\CountryStateDataPagelet
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse
Namefooter-pagelet-loaded
Since6.7.0.0
ClassShopware\Storefront\Pagelet\Footer\FooterPageletLoadedHook
DescriptionTriggered when the FooterPagelet is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Pagelet\Footer\FooterPagelet
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

header-pagelet-loaded

Nameheader-pagelet-loaded
Since6.7.0.0
ClassShopware\Storefront\Pagelet\Header\HeaderPageletLoadedHook
DescriptionTriggered when the HeaderPagelet is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Pagelet\Header\HeaderPagelet
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse
Namemenu-offcanvas-pagelet-loaded
Since6.4.8.0
ClassShopware\Storefront\Pagelet\Menu\Offcanvas\MenuOffcanvasPageletLoadedHook
DescriptionTriggered when the MenuOffcanvasPagelet is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Pagelet\Menu\Offcanvas\MenuOffcanvasPagelet
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

guest-wishlist-pagelet-loaded

Nameguest-wishlist-pagelet-loaded
Since6.4.8.0
ClassShopware\Storefront\Pagelet\Wishlist\GuestWishlistPageletLoadedHook
DescriptionTriggered when the GuestWishlistPagelet is loaded
Available Datacontext: Shopware\Core\Framework\Context
page: Shopware\Storefront\Pagelet\Wishlist\GuestWishlistPagelet
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
config
store
request
acl
Stoppablefalse

Cart Manipulation

All available Hooks that can be used to manipulate the cart.

cart

Namecart
Since6.4.8.0
ClassShopware\Core\Checkout\Cart\Hook\CartHook
DescriptionTriggered during the cart calculation process.
Available Datacart: Shopware\Core\Checkout\Cart\Cart
context: Shopware\Core\Framework\Context
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicescart
price
config
acl
Stoppablefalse

Custom API endpoint

All available hooks within the Store-API and API

cache-invalidation

Namecache-invalidation
Since6.4.9.0
ClassShopware\Core\Framework\Adapter\Cache\Script\CacheInvalidationHook
DescriptionTriggered whenever an entity is written.
Available Datacontext: Shopware\Core\Framework\Context
event: Shopware\Core\Framework\Adapter\Cache\Script\Facade\WrittenEventScriptFacade
Available Servicescache
acl
Stoppablefalse

api-

Nameapi-
Since6.4.9.0
ClassShopware\Core\Framework\Script\Api\ApiHook
DescriptionTriggered when the api endpoint /api/script/{hook} is called
Available Datacontext: Shopware\Core\Framework\Context
isPropagationStopped: bool
name: string
request: array
scriptResponse: Shopware\Core\Framework\Script\Api\ScriptResponse
Available Servicesrepository
writer
config
response
acl
Stoppabletrue

response

Nameresponse
Since6.6.10.0
ClassShopware\Core\Framework\Script\Api\ResponseHook
DescriptionTriggered on every response
Available Datacontext: Shopware\Core\Framework\Context
response: Symfony\Component\HttpFoundation\Response
routeName: string
routeScopes: array
Available Servicesacl
Stoppablefalse

store-api-

Interface Hook

Triggered when the api endpoint /store-api/script/{hook} is called. Used to execute your logic and provide a response to the request.

Function: cache_key

Namecache_key
Since6.4.9.0
Optionaltrue
ClassShopware\Core\Framework\Script\Api\StoreApiCacheKeyHook
DescriptionTriggered when the api endpoint /store-api/script/{hook} is called. Used to provide a cache-key based on the request.
Needs to be implemented when your store-api route should be cached.
Available DatacacheKey: string
context: Shopware\Core\Framework\Context
isPropagationStopped: bool
name: string
query: array
request: array
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesacl
Stoppabletrue

Function: response

Nameresponse
Since6.4.9.0
Optionalfalse
ClassShopware\Core\Framework\Script\Api\StoreApiResponseHook
DescriptionTriggered when the api endpoint /store-api/script/{hook} is called. Used to provide the HTTP-Response.
This function is only called when no response for the provided cache key is cached, or no cache_key function implemented.
Available Datacontext: Shopware\Core\Framework\Context
isPropagationStopped: bool
name: string
query: array
request: array
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
scriptResponse: Shopware\Core\Framework\Script\Api\ScriptResponse
Available Servicesrepository
config
store
writer
response
request
acl
Stoppabletrue

storefront-

Namestorefront-
Since6.4.9.0
ClassShopware\Storefront\Framework\Script\Api\StorefrontHook
DescriptionTriggered when the storefront endpoint /storefront/script/{hook} is called
Available Datacontext: Shopware\Core\Framework\Context
isPropagationStopped: bool
page: Shopware\Storefront\Page\Page
query: array
request: array
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
script: string
scriptResponse: Shopware\Core\Framework\Script\Api\ScriptResponse
Available Servicesrepository
config
store
writer
response
request
acl
Stoppabletrue

App Lifecycle

All available hooks that can be used to execute scripts during your app's lifecycle.

app-activated

Nameapp-activated
Since6.4.9.0
ClassShopware\Core\Framework\App\Event\Hooks\AppActivatedHook
DescriptionTriggered when your app is activated.
Available Datacontext: Shopware\Core\Framework\Context
event: Shopware\Core\Framework\App\Event\AppActivatedEvent
Available Servicesrepository
config
writer
acl
Stoppablefalse

app-deactivated

Nameapp-deactivated
Since6.4.9.0
ClassShopware\Core\Framework\App\Event\Hooks\AppDeactivatedHook
DescriptionTriggered when your app is deactivated.
Available Datacontext: Shopware\Core\Framework\Context
event: Shopware\Core\Framework\App\Event\AppDeactivatedEvent
Available Servicesrepository
config
writer
acl
Stoppablefalse

app-deleted

Nameapp-deleted
Since6.4.9.0
ClassShopware\Core\Framework\App\Event\Hooks\AppDeletedHook
DescriptionTriggered when your app is deleted.
Available Datacontext: Shopware\Core\Framework\Context
event: Shopware\Core\Framework\App\Event\AppDeletedEvent
Available Servicesrepository
config
writer
acl
Stoppablefalse

app-installed

Nameapp-installed
Since6.4.9.0
ClassShopware\Core\Framework\App\Event\Hooks\AppInstalledHook
DescriptionTriggered when your app is installed.
Available Datacontext: Shopware\Core\Framework\Context
event: Shopware\Core\Framework\App\Event\AppInstalledEvent
Available Servicesrepository
config
writer
acl
Stoppablefalse

app-updated

Nameapp-updated
Since6.4.9.0
ClassShopware\Core\Framework\App\Event\Hooks\AppUpdatedHook
DescriptionTriggered when your app is updated.
Available Datacontext: Shopware\Core\Framework\Context
event: Shopware\Core\Framework\App\Event\AppUpdatedEvent
Available Servicesrepository
config
writer
acl
Stoppablefalse

Product

All available hooks that can be used to manipulate products.

product-pricing

Nameproduct-pricing
Since6.5.1.0
ClassShopware\Core\Content\Product\Hook\Pricing\ProductPricingHook
DescriptionTriggered when product prices are calculated for the store
Available Datacontext: Shopware\Core\Framework\Context
products: array
salesChannelContext: Shopware\Core\System\SalesChannel\SalesChannelContext
Available Servicesrepository
price
config
store
acl
Stoppablefalse
Was this page helpful?
UnsatisfiedSatisfied
Be the first to vote!
0.0 / 5  (0 votes)