BackendArticleListSubscriber

Extends \Shopware\Plugins\ViisonCommon\Classes\Subscribers\Base

package

Default

Methods

getSubscribedEvents

getSubscribedEvents() 
static
inhertidoc

onAfterBatchAction

onAfterBatchAction() 

Removes the elements named 'Detail.inStock', 'Attribute.pickwareIncomingStock' and 'Attribute.pickwarePhysicalStockForSale' from the responded results to prevent these fields from being edited in the batch processing.

onAfterGetEditableColumnsAction(\Enlight_Hook_HookArgs $args) 

Arguments

$args

\Enlight_Hook_HookArgs

onBeforeBatchAction

onBeforeBatchAction(\Enlight_Hook_HookArgs $args) 

Arguments

$args

\Enlight_Hook_HookArgs

Overwrites the posted 'Detail_inStock' 'Attribute_pickwareIncomingStock' and 'Attribute_pickwarePhysicalStockForSale' values with the respective values currently saved in the database.

onBeforeSaveSingleEntityAction(\Enlight_Hook_HookArgs $args) 

This is necessary to prevent inconsistencies in the data, because 'inStock' and 'pickwarePhysicalStockForSale' must only be changed by the stock manager and 'pickwareIncomingStock' must only be changed by editing supplier orders.

Arguments

$args

\Enlight_Hook_HookArgs

Constants

MANAGEMENT

MANAGEMENT