protected function eventBefore() { parent::eventBefore(); $params = $this->getParams(); $amazonListingProduct = $this->getListingProduct()->getChildObject(); $amazonListingProduct->setData('search_settings_status', \Ess\M2ePro\Model\Amazon\Listing\Product::SEARCH_SETTINGS_STATUS_IN_PROGRESS); $amazonListingProduct->setSettings('search_settings_data', array('type' => $params['type'], 'value' => $params['value'])); $amazonListingProduct->save(); }
protected function eventBefore() { parent::eventBefore(); $params = $this->getParams(); $this->activeRecordFactory->getObject('Ebay\\Account\\PickupStore\\State')->getResource()->markAsInProcessing($params['pickup_store_state_ids']); }