public function beforeProcess() { $productId = (int) $this->getEventObserver()->getData('object')->getData('product_id'); if ($productId <= 0) { throw new \Ess\M2ePro\Model\Exception('Product ID should be greater than 0.'); } $this->productId = $productId; parent::beforeProcess(); }
public function beforeProcess() { parent::beforeProcess(); $this->clearStoredStockItem(); }