RestApiOrdersSubscriber

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

package

Default

Methods

getSubscribedEvents

getSubscribedEvents() 
static
inheritdoc

Checks all order details of the created order for positive 'shipped' values and, if they have one, creates a 'sale' stock entry for each of them. If a 'warehouseId' is set in the POST data, the stock entry is created in that warehouse, otherwise the default warehouse is used.

onAfterPostAction(\Enlight_Hook_HookArgs $args) 

Arguments

$args

\Enlight_Hook_HookArgs

Checks all order details for a change in their 'shipped' values and, if they have changed, creates a 'sale' (positive change) or 'return' (negative change) stock entry for each of them. If a 'warehouseId' is set in the POST data, the stock entry is created in that warehouse, otherwise the default warehouse is used.

onAfterPutAction(\Enlight_Hook_HookArgs $args) 

Arguments

$args

\Enlight_Hook_HookArgs

onBeforePostAction

onBeforePostAction(\Enlight_Hook_HookArgs $args) 

Arguments

$args

\Enlight_Hook_HookArgs

Saves the 'shipped' values of all order details of the order that will be updated by the main action method in a request attribute for later use.

onBeforePutAction(\Enlight_Hook_HookArgs $args) 

Arguments

$args

\Enlight_Hook_HookArgs

Constants

VALUES

VALUES