public function isLocked() { if (parent::isLocked()) { return true; } $accounts = Mage::getModel('M2ePro/Amazon_Account')->getCollection()->getItems(); foreach ($accounts as $account) { /** @var $account Ess_M2ePro_Model_Amazon_Account */ if ($account->isExistMarketplaceItem($this->getId())) { return true; } } return false; }
/** * @return bool * @throws Ess_M2ePro_Model_Exception * @throws Ess_M2ePro_Model_Exception_Logic */ public function isLocked() { if (parent::isLocked()) { return true; } if ($this->getVariationManager()->isRelationParentType()) { foreach ($this->getVariationManager()->getTypeModel()->getChildListingsProducts() as $child) { /** @var $child Ess_M2ePro_Model_Listing_Product */ if ($child->getStatus() == Ess_M2ePro_Model_Listing_Product::STATUS_LISTED) { return true; } } } return false; }
public function delete() { Mage::helper('M2ePro/Data_Cache_Permanent')->removeTagValues('account'); return parent::delete(); }
public function delete() { Mage::helper('M2ePro/Data_Cache_Permanent')->removeTagValues('amazon_template_description'); return parent::delete(); }
public function _construct() { parent::_construct(); $this->_init('M2ePro/Amazon_Order'); }
public function _construct() { parent::_construct(); $this->_init('M2ePro/Amazon_Listing_Other'); }
public function delete() { Mage::helper('M2ePro/Data_Cache_Permanent')->removeTagValues('template_sellingformat'); return parent::delete(); }
public function _construct() { parent::_construct(); $this->_init('M2ePro/Amazon_Listing_Auto_Category_Group'); }
public function delete() { Mage::helper('M2ePro/Data_Cache')->removeTagValues('template_synchronization'); return parent::delete(); }
public function delete() { Mage::helper('M2ePro/Data_Cache')->removeTagValues('listing'); return parent::delete(); }
public function _construct() { parent::_construct(); $this->_init('M2ePro/Amazon_Listing_Product_Variation'); }
public function _construct() { parent::_construct(); $this->_init('M2ePro/Amazon_Template_Description'); }
public function _construct() { parent::_construct(); $this->_init('M2ePro/Amazon_Template_General'); }
public function _construct() { parent::_construct(); $this->_init('M2ePro/Amazon_Template_SellingFormat'); }
public function _construct() { parent::_construct(); $this->_init('M2ePro/Amazon_Template_Synchronization'); }