Events
There are a couple of events which you can use to modify the exported data or to modify the imported order objects.
pimcore.dataobject.postCsvItemExport
Pimcore\Bundle\DataHubFileExportBundle\Event\IsValidExportItemEvent
Pimcore\Bundle\DataHubProductsupBundle\Event\DeliveryModifyResultEvent
Pimcore\Bundle\DataHubProductsupBundle\Event\OrderItemPreSaveEvent
Pimcore\Bundle\DataHubProductsupBundle\Event\OrderPreSaveEvent
Sample implementation
Sample configuration for EventListener
AppBundle\EventListener\DataHubProductsupListener:
tags:
- { name: kernel.event_listener, event: pimcore.dataobject.postCsvItemExport, method: postCsvItemExport }
- { name: kernel.event_listener, event: Pimcore\Bundle\DataHubFileExportBundle\Event\IsValidExportItemEvent, method: isValidExportItem }
- { name: kernel.event_listener, event: Pimcore\Bundle\DataHubProductsupBundle\Event\DeliveryModifyResultEvent, method: modifyResult }
- { name: kernel.event_listener, event: Pimcore\Bundle\DataHubProductsupBundle\Event\OrderItemPreSaveEvent, method: preOrderItemSave }
- { name: kernel.event_listener, event: Pimcore\Bundle\DataHubProductsupBundle\Event\OrderPreSaveEvent, method: orderPreSave }