SwagImportExportIntegrationSubscriber

Extends \Shopware\Plugins\ViisonCommon\Classes\Subscribers\AbstractSwagImportExportIntegrationSubscriber

package

Default

Methods

__construct

__construct(\Shopware_Components_Plugin_Bootstrap $pluginBootstrap) 

Arguments

$pluginBootstrap

\Shopware_Components_Plugin_Bootstrap

createDbAdapterOfType

createDbAdapterOfType( $adapterType) 
inheritdoc

Arguments

$adapterType

getSubscribedEvents

getSubscribedEvents() 
static
inheritdoc

Adds more events to the subscription list to add custom functionality of this plugin.

Determines all new article detail's, whose stock has not been initialized, and compares them with the list saved prior to the import. Finally, all uninitialized article details that did not exist before the import are initialized.

onAfterArticlesDbAdapterWrite(\Enlight_Hook_HookArgs $args) 

Also NULL stockMin values for articles that are not managed by the stock manager. This action has to be done after the actual import because you can't import NULL on this field.

Arguments

$args

\Enlight_Hook_HookArgs

Modifies the import data by overwriting the 'inStock' field of all existing records, whose stock is managed by Pickware, to prevent their 'inStock' from being modified.

onArticlesDbAdapterWrite(\Enlight_Event_EventArgs $args) : mixed

Arguments

$args

\Enlight_Event_EventArgs

Response

mixed

Modifies the import data by removing all records, whose stock is managed by Pickware, to prevent their 'inStock' from being modified.

onArticlesInStockDbAdapterWrite(\Enlight_Event_EventArgs $args) : mixed

Arguments

$args

\Enlight_Event_EventArgs

Response

mixed

Saves the IDs of all article details, whose stock has already been initialized.

onBeforeArticlesDbAdapterWrite(\Enlight_Hook_HookArgs $args) 

Arguments

$args

\Enlight_Hook_HookArgs

Constants

NAMES

NAMES