Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ nav:

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

### document-generation

| <!-- --> | <!-- --> |
|:-----------------------|:----------------------------------------|
| **Name** | document-generation |
| **Since** | 6.7.14.0 |
| **Class** | `Shopware\Core\Checkout\DocumentV2\Event\Hooks\DocumentGenerationHook` |
| **Description** | Triggered once per document generation, after the order is loaded and the document number is allocated, but before any renderer runs.<br> |
| **Available Data** | context: [`Shopware\Core\Framework\Context`](https://github.com/shopware/shopware/blob/trunk/src/Core/Framework/Context.php)<br>documentNumber: `string`<br>documentType: `string`<br>formats: `array`<br>orderId: `string`<br>orderVersionId: `string`<br>salesChannelId: `string`<br> |
| **Available Services** | [repository](./data-loading-script-services-reference#RepositoryFacade)<br>[config](./miscellaneous-script-services-reference#SystemConfigFacade)<br>[acl](./miscellaneous-script-services-reference#AclFacade)<br> |
| **Stoppable** | `false` |

### payment-method-route-request

| <!-- --> | <!-- --> |
Expand Down Expand Up @@ -43,7 +55,7 @@ All available Hooks that can be used to load additional data.
| **Name** | cookie-group-collect |
| **Since** | 6.7.14.0 |
| **Class** | `Shopware\Core\Content\Cookie\Hook\CookieGroupCollectHook` |
| **Description** | Triggered when the cookie consent groups are collected for the current sales channel.<br>Allows apps to modify or remove cookie groups and entries, e.g., depending on the payment methods active in the current sales channel. |
| **Description** | Triggered when the cookie consent groups are collected for the current sales channel.<br>Allows apps to modify or remove cookie groups and entries, e.g. depending on the payment methods active in the current sales channel. |
| **Available Data** | context: [`Shopware\Core\Framework\Context`](https://github.com/shopware/shopware/blob/trunk/src/Core/Framework/Context.php)<br>cookieGroups: [`Shopware\Core\Content\Cookie\Struct\CookieGroupCollection`](https://github.com/shopware/shopware/blob/trunk/src/Core/Content/Cookie/Struct/CookieGroupCollection.php)<br>salesChannelContext: [`Shopware\Core\System\SalesChannel\SalesChannelContext`](https://github.com/shopware/shopware/blob/trunk/src/Core/System/SalesChannel/SalesChannelContext.php)<br> |
| **Available Services** | [repository](./data-loading-script-services-reference#RepositoryFacade)<br>[config](./miscellaneous-script-services-reference#SystemConfigFacade)<br>[store](./data-loading-script-services-reference#SalesChannelRepositoryFacade)<br>[acl](./miscellaneous-script-services-reference#AclFacade)<br> |
| **Stoppable** | `false` |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
|`customer.group.registration.declined` | __EMPTY__ | `customer:read` `customer_group:read` | {"entity":"customer_group"}
|`customer.password.changed` | __EMPTY__ | `customer:read` | {"entity":"customer","shopName":"string"}
|`customer.recovery.request` | Triggers when a customer recovers his password | `customer_recovery:read` `customer:read` | {"entity":"customer","resetUrl":"string","shopName":"string"}
|`document.generation.completed` | Triggers when a document is generated or uploaded for an order | - | {"documentId":"string","documentType":"string","documentNumber":"string","orderId":"string","orderVersionId":"string"}
|`document.generation.deleted` | Triggers when a document is deleted | - | {"documentId":"string","documentNumber":"string","deletedAt":"string","orderId":"string","orderVersionId":"string"}
|`mail.after.create.message` | __EMPTY__ | - | {"data":"array","message":"object"}
|`mail.before.send` | Triggers before a mail is send | - | {"data":"array","templateData":"array"}
|`mail.sent` | Triggers when a mail is send from Shopware | - | {"subject":"string","contents":"string","recipients":"array"}
Expand Down