Events
Event Thumbnail-Prefix-Replacement
| Name | Value |
|---|---|
| Event | Twocream\ShopwareConnectorBundle\Events\ThumbnailPrefixReplacementEvent::THUMBNAIL_PREFIX_REPLACEMENT |
| Class | Twocream\ShopwareConnectorBundle\Events\ThumbnailPrefixReplacementEvent |
| Properties | array $replacements |
| Trigger | The event is triggered by the AssetHelper, immediately before the prefixes specified in $replacements are removed from the thumbnail names |
| Additional Details | By default, thumbnail names like shopware_500x500 are renamed to 500x500. The event is triggered with ['shopware_'] as a parameter. This could, for example, override the shopware_ prefix if another prefix should be removed. |
Event Post-Convert-Data
| Name | Value |
|---|---|
| Event | Twocream\ShopwareConnectorBundle\Events\PostConvertDataEvent::POST_CONVERT_DATA_EVENT |
| Class | Twocream\ShopwareConnectorBundle\Events\PostConvertDataEvent |
| Properties | ArrayAdapterAbstract $adapter,array $data |
| Trigger | The event is triggered after the conversion process of an adapter |
| Additional Details | This allows verification and/or modification of converted data from an adapter according to individual logic |
Note
The cross-selling of adapters with CrossSellingProviderInterface is already added to the data as package cross-selling by the ArrayTransformer before the event; virtual adapters are not added to the data. A subscriber that copies getCrossSelling() of a product adapter into the export data is therefore no longer needed, see "Build a product export".
Event Export-File-Placed
| Name | Value |
|---|---|
| Event | Twocream\ShopwareConnectorBundle\Events\ExportFilePlacedEvent::EXPORT_FILE_PLACED |
| Class | Twocream\ShopwareConnectorBundle\Events\ExportFilePlacedEvent |
| Properties | string $filePath,string $transferAdapterIdentifier,array $targetConfiguration |
| Trigger | The event is triggered immediately after the export file (JSON) has been placed via the transfer adapter |
| Additional Details | $filePath contains the path of the placed file, $transferAdapterIdentifier the identifier of the transfer adapter configured under transfer > adapter and $targetConfiguration the configuration of the export job including the configuration of the target system.This allows, for example, triggering downstream processes for the placed file |