Exemple #1
0
 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();
 }
Exemple #5
0
 public function _construct()
 {
     parent::_construct();
     $this->_init('M2ePro/Amazon_Order');
 }
Exemple #6
0
 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();
 }
Exemple #8
0
 public function _construct()
 {
     parent::_construct();
     $this->_init('M2ePro/Amazon_Listing_Auto_Category_Group');
 }
Exemple #9
0
 public function delete()
 {
     Mage::helper('M2ePro/Data_Cache')->removeTagValues('template_synchronization');
     return parent::delete();
 }
Exemple #10
0
 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');
 }
Exemple #12
0
 public function _construct()
 {
     parent::_construct();
     $this->_init('M2ePro/Amazon_Template_Description');
 }
Exemple #13
0
 public function _construct()
 {
     parent::_construct();
     $this->_init('M2ePro/Amazon_Template_General');
 }
Exemple #14
0
 public function _construct()
 {
     parent::_construct();
     $this->_init('M2ePro/Amazon_Template_SellingFormat');
 }
 public function _construct()
 {
     parent::_construct();
     $this->_init('M2ePro/Amazon_Template_Synchronization');
 }