/** * @return bool * @throws \Ess\M2ePro\Model\Exception * @throws \Ess\M2ePro\Model\Exception\Logic */ public function delete() { if ($this->isLocked()) { return false; } if ($this->getVariationManager()->isRelationParentType()) { foreach ($this->getVariationManager()->getTypeModel()->getChildListingsProducts() as $child) { /** @var $child \Ess\M2ePro\Model\Listing\Product */ $child->delete(); } } $this->variationManager = NULL; return parent::delete(); }
public function delete() { $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('template_sellingformat'); return parent::delete(); }
public function delete() { if ($this->isLocked()) { return false; } $this->getDefinitionTemplate()->delete(); foreach ($this->getSpecifics(true) as $specific) { $specific->delete(); } $this->marketplaceModel = NULL; $this->descriptionDefinitionModel = NULL; $this->descriptionSourceModels = array(); $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('amazon_template_description'); return parent::delete(); }
public function delete() { $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('marketplace'); return parent::delete(); }
public function delete() { if ($this->isLocked()) { return false; } $items = $this->getAmazonItems(true); foreach ($items as $item) { $item->delete(); } // TODO NOT SUPPORTED FEATURE repricing // if ($this->isRepricing()) { // $this->getRepricing()->delete(); // } $this->marketplaceModel = NULL; $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('account'); return parent::delete(); }
public function delete() { $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('listing'); $temp = parent::delete(); $temp && ($this->sellingFormatTemplateModel = NULL); $temp && ($this->synchronizationTemplateModel = NULL); return $temp; }