Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
 public function afterProcess()
 {
     parent::afterProcess();
     $this->storeStockItem();
 }