Example #1
0
 public function deleteInstance()
 {
     $temp = parent::deleteInstance();
     $temp && ($this->categoryTemplateModel = NULL);
     $temp && ($this->magentoProductModel = NULL);
     return $temp;
 }
 public function deleteInstance()
 {
     $temp = parent::deleteInstance();
     $temp && ($this->newProductTemplateModel = NULL);
     $temp && ($this->newProductAttributeSourceModels = array());
     return $temp;
 }
Example #3
0
 public function deleteInstance()
 {
     $temp = parent::deleteInstance();
     $temp && ($this->categoryTemplateModel = NULL);
     $temp && ($this->categorySpecificSourceModels = array());
     return $temp;
 }
Example #4
0
 public function isLocked()
 {
     if (parent::isLocked()) {
         return true;
     }
     return (bool) Mage::helper('M2ePro/Component_Amazon')->getCollection('Listing_Product')->addFieldToFilter('template_new_product_id', $this->getId())->addFieldToFilter('status', Ess_M2ePro_Model_Listing_Product::STATUS_NOT_LISTED)->getSize();
 }
Example #5
0
 public function deleteInstance()
 {
     $temp = parent::deleteInstance();
     $temp && ($this->shippingTemplateModel = NULL);
     $temp && ($this->shippingServiceSourceModels = array());
     return $temp;
 }
 public function deleteInstance()
 {
     $temp = parent::deleteInstance();
     $temp && ($this->accountModel = NULL);
     $temp && ($this->marketplaceModel = NULL);
     $temp && ($this->magentoProductModel = NULL);
     return $temp;
 }
Example #7
0
 public function deleteInstance()
 {
     if ($this->isLocked()) {
         return false;
     }
     $temp = parent::deleteInstance();
     $temp && ($this->newProductTemplateModel = NULL);
     $temp && ($this->newProductCoreSourceModels = array());
     return $temp;
 }
Example #8
0
 public function deleteInstance()
 {
     if (!parent::deleteInstance()) {
         return false;
     }
     /** @var $connWrite Varien_Db_Adapter_Pdo_Mysql */
     $connWrite = Mage::getSingleton('core/resource')->getConnection('core_write');
     $coreResourceModel = Mage::getSingleton('core/resource');
     $filterGroupRelation = $coreResourceModel->getTableName('m2epro_ebay_motor_filter_to_group');
     $connWrite->delete($filterGroupRelation, array('group_id = ?' => $this->getId()));
     return true;
 }
Example #9
0
 public function delete()
 {
     Mage::helper('M2ePro/Data_Cache')->removeTagValues('ebay_template_category');
     return parent::delete();
 }
Example #10
0
 public function deleteInstance()
 {
     $temp = parent::deleteInstance();
     $temp && ($this->accountModel = NULL);
     return $temp;
 }
 public function delete()
 {
     Mage::helper('M2ePro/Data_Cache_Permanent')->removeTagValues('ebay_template_shipping_calculated');
     return parent::delete();
 }
Example #12
0
 public function delete()
 {
     Mage::helper('M2ePro/Data_Cache_Permanent')->removeTagValues('template_description_definition');
     return parent::delete();
 }
Example #13
0
 public function deleteInstance()
 {
     $temp = parent::deleteInstance();
     $temp && ($this->generalTemplateModel = NULL);
     return $temp;
 }
Example #14
0
 public function _construct()
 {
     parent::_construct();
     $this->_init('M2ePro/Listing_Auto_Category');
 }
Example #15
0
 protected function _getResource()
 {
     if (is_null($this->childMode)) {
         return parent::_getResource();
     }
     if (empty($this->_resourceName)) {
         Mage::throwException(Mage::helper('core')->__('Resource is not set.'));
     }
     $arguments = array('child_mode' => $this->childMode);
     return Mage::getResourceModel($this->_resourceName, $arguments);
 }
Example #16
0
 public function _construct()
 {
     parent::_construct();
     $this->_init('M2ePro/Amazon_Template_NewProduct_Description');
 }
Example #17
0
 public function _construct()
 {
     parent::_construct();
     $this->_init('M2ePro/Amazon_Template_NewProduct_Specific');
 }
 public function delete()
 {
     Mage::helper('M2ePro/Data_Cache_Permanent')->removeTagValues('amazon_template_shippingoverride');
     return parent::delete();
 }
Example #19
0
 public function save()
 {
     Mage::helper('M2ePro/Data_Cache_Permanent')->removeTagValues('template_newproduct_core');
     return parent::save();
 }
Example #20
0
 public function delete()
 {
     Mage::helper('M2ePro/Data_Cache')->removeTagValues('ebay_listing_auto_category_group');
     return parent::delete();
 }
Example #21
0
 public function _construct()
 {
     parent::_construct();
     $this->_init('M2ePro/Buy_Template_NewProduct_Attribute');
 }
 public function delete()
 {
     Mage::helper('M2ePro/Data_Cache_Permanent')->removeTagValues('buy_template_newproduct');
     return parent::delete();
 }