private function executeQtyChanged() { $this->_profiler->addTimePoint(__METHOD__, 'Update quantity'); // Get changed listings products //------------------------------------ $changedListingsProducts = $this->getChangedInstances(array(Ess_M2ePro_Model_ProductChange::UPDATE_ATTRIBUTE_CODE)); //------------------------------------ // Filter only needed listings products //------------------------------------ /** @var $listingProduct Ess_M2ePro_Model_Listing_Product */ foreach ($changedListingsProducts as $listingProduct) { $this->_productInspector->inspectReviseQtyRequirements($listingProduct); } //------------------------------------ $this->_profiler->saveTimePoint(__METHOD__); }
private function executeQtyChanged() { $this->_profiler->addTimePoint(__METHOD__, 'Update quantity'); // Get changed listings products //------------------------------------ $changedListingsProducts = Mage::getModel('M2ePro/Listing_Product')->getChangedItemsByAttributesWithOptions(array(Ess_M2ePro_Model_ProductChange::UPDATE_ATTRIBUTE_CODE), Ess_M2ePro_Helper_Component_Amazon::NICK); //------------------------------------ // Filter only needed listings products //------------------------------------ foreach ($changedListingsProducts as $changedListingProduct) { /** @var $listingProduct Ess_M2ePro_Model_Listing_Product */ $listingProduct = Mage::helper('M2ePro/Component_Amazon')->getObject('Listing_Product', $changedListingProduct['id']); $this->_productInspector->inspectReviseQtyRequirements($listingProduct); } //------------------------------------ $this->_profiler->saveTimePoint(__METHOD__); }