/**
  * @param Ess_M2ePro_Model_Component_Parent_Abstract $object
  */
 public function setParentObject(Ess_M2ePro_Model_Component_Parent_Abstract $object)
 {
     if (is_null($object->getId())) {
         return;
     }
     $this->parentObject = $object;
 }
Example #2
0
 public function deleteInstance()
 {
     $temp = parent::deleteInstance();
     $temp && ($this->listingProductVariationModel = NULL);
     $temp && ($this->magentoProductModel = NULL);
     return $temp;
 }
Example #3
0
 public function isLocked()
 {
     if (parent::isLocked()) {
         return true;
     }
     return $this->getChildObject()->isLocked();
 }
Example #4
0
 public function isLocked()
 {
     if (parent::isLocked()) {
         return true;
     }
     return (bool) Mage::getModel('M2ePro/Listing')->getCollection()->addFieldToFilter('template_selling_format_id', $this->getId())->getSize();
 }
Example #5
0
 public function isLocked($onlyMainConditions = false)
 {
     if (!$onlyMainConditions && parent::isLocked()) {
         return true;
     }
     return (bool) Mage::getModel('M2ePro/Template_General')->getCollection()->addFieldToFilter('account_id', $this->getId())->getSize();
 }
Example #6
0
 public function isLocked()
 {
     if (parent::isLocked()) {
         return true;
     }
     return (bool) Mage::getModel('M2ePro/Listing_Product')->getCollection()->addFieldToFilter('listing_id', $this->getId())->addFieldToFilter('status', Ess_M2ePro_Model_Listing_Product::STATUS_LISTED)->getSize();
 }
 public function deleteInstance()
 {
     $temp = parent::deleteInstance();
     $temp && ($this->accountModel = NULL);
     $temp && ($this->marketplaceModel = NULL);
     $temp && ($this->magentoProductModel = NULL);
     return $temp;
 }
Example #8
0
 public function __construct()
 {
     $args = func_get_args();
     empty($args[0]) && ($args[0] = array());
     $params = $args[0];
     $params['child_mode'] = Ess_M2ePro_Helper_Component_Ebay::NICK;
     parent::__construct($params);
 }
Example #9
0
 public function isLocked()
 {
     if (parent::isLocked()) {
         return true;
     }
     if ($this->getStatus() == self::STATUS_LISTED) {
         return true;
     }
     return false;
 }
Example #10
0
 /**
  * @return bool
  * @throws Ess_M2ePro_Model_Exception_Logic
  */
 public function isLocked()
 {
     if (parent::isLocked()) {
         return true;
     }
     if ($this->isComponentModeEbay() && $this->getAccount()->getChildObject()->isModeSandbox()) {
         return false;
     }
     if ($this->getStatus() == self::STATUS_LISTED) {
         return true;
     }
     return false;
 }
 public function delete()
 {
     Mage::helper('M2ePro/Data_Cache_Permanent')->removeTagValues('template_sellingformat');
     return parent::delete();
 }
Example #12
0
 public function _construct()
 {
     parent::_construct();
     $this->_init('M2ePro/Listing_Product_Variation');
 }
Example #13
0
 public function delete()
 {
     Mage::helper('M2ePro/Data_Cache')->removeTagValues('template_synchronization');
     return parent::delete();
 }
Example #14
0
 public function _construct()
 {
     parent::_construct();
     $this->_init('M2ePro/Order');
 }
Example #15
0
 public function delete()
 {
     Mage::helper('M2ePro/Data_Cache')->removeTagValues('account');
     return parent::delete();
 }
Example #16
0
 public function delete()
 {
     Mage::helper('M2ePro/Data_Cache_Permanent')->removeTagValues('listing');
     return parent::delete();
 }
Example #17
0
 public function _construct()
 {
     parent::_construct();
     $this->_init('M2ePro/Listing_Auto_Category_Group');
 }