Ejemplo n.º 1
0
 public function delete()
 {
     $temp = parent::delete();
     $temp && ($this->listingProductVariationModel = NULL);
     $temp && ($this->magentoProductModel = NULL);
     return $temp;
 }
Ejemplo n.º 2
0
 public function delete()
 {
     $temp = parent::delete();
     $temp && ($this->accountModel = NULL);
     $temp && ($this->marketplaceModel = NULL);
     $temp && ($this->magentoProductModel = NULL);
     return $temp;
 }
Ejemplo n.º 3
0
 public function delete()
 {
     if ($this->isLocked()) {
         return false;
     }
     $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('template_sellingformat');
     return parent::delete();
 }
Ejemplo n.º 4
0
 public function delete()
 {
     if ($this->isLocked()) {
         return false;
     }
     $this->order = NULL;
     $this->deleteChildInstance();
     return parent::delete();
 }
Ejemplo n.º 5
0
 public function delete()
 {
     if ($this->isLocked()) {
         return false;
     }
     $options = $this->getOptions(true);
     foreach ($options as $option) {
         $option->delete();
     }
     $this->listingProductModel = NULL;
     $this->deleteChildInstance();
     return parent::delete();
 }
Ejemplo n.º 6
0
 public function delete()
 {
     if ($this->isLocked()) {
         return false;
     }
     $variations = $this->getVariations(true);
     foreach ($variations as $variation) {
         $variation->delete();
     }
     $tempLog = $this->activeRecordFactory->getObject('Listing\\Log');
     $tempLog->setComponentMode($this->getComponentMode());
     $tempLog->addProductMessage($this->getListingId(), $this->getProductId(), $this->getId(), \Ess\M2ePro\Helper\Data::INITIATOR_UNKNOWN, NULL, \Ess\M2ePro\Model\Listing\Log::ACTION_DELETE_PRODUCT_FROM_LISTING, 'Item was successfully Deleted', \Ess\M2ePro\Model\Log\AbstractLog::TYPE_NOTICE, \Ess\M2ePro\Model\Log\AbstractLog::PRIORITY_MEDIUM);
     $this->listingModel = NULL;
     $this->magentoProductModel = NULL;
     $this->deleteChildInstance();
     return parent::delete();
 }
Ejemplo n.º 7
0
 public function delete()
 {
     if ($this->isLocked()) {
         return false;
     }
     $otherListings = $this->getOtherListings(true);
     foreach ($otherListings as $otherListing) {
         $otherListing->delete();
     }
     $orders = $this->getOrders(true);
     foreach ($orders as $order) {
         $order->delete();
     }
     $this->deleteChildInstance();
     $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('marketplace');
     return parent::delete();
 }
Ejemplo n.º 8
0
 public function delete()
 {
     if ($this->isLocked()) {
         return false;
     }
     $otherListings = $this->getOtherListings(true);
     foreach ($otherListings as $otherListing) {
         $otherListing->delete();
     }
     if ($this->isComponentModeEbay() && $this->getChildObject()->isModeSandbox()) {
         $listings = $this->getRelatedComponentItems('Listing', 'account_id', true);
         foreach ($listings as $listing) {
             $listing->delete();
         }
     }
     $orders = $this->getOrders(true);
     foreach ($orders as $order) {
         $order->delete();
     }
     $this->deleteChildInstance();
     $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('account');
     return parent::delete();
 }
Ejemplo n.º 9
0
 public function delete()
 {
     $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('template_synchronization');
     return parent::delete();
 }
Ejemplo n.º 10
0
 public function delete()
 {
     if ($this->isLocked()) {
         return false;
     }
     $items = $this->getRelatedSimpleItems('Listing\\Auto\\Category', 'group_id', true);
     foreach ($items as $item) {
         $item->delete();
     }
     $this->deleteChildInstance();
     return parent::delete();
 }
Ejemplo n.º 11
0
 public function delete()
 {
     if ($this->isLocked()) {
         return false;
     }
     $products = $this->getProducts(true);
     foreach ($products as $product) {
         $product->delete();
     }
     $categoriesGroups = $this->getAutoCategoriesGroups(true);
     foreach ($categoriesGroups as $categoryGroup) {
         $categoryGroup->delete();
     }
     $tempLog = $this->activeRecordFactory->getObject('Listing\\Log');
     $tempLog->setComponentMode($this->getComponentMode());
     $tempLog->addListingMessage($this->getId(), \Ess\M2ePro\Helper\Data::INITIATOR_UNKNOWN, NULL, \Ess\M2ePro\Model\Listing\Log::ACTION_DELETE_LISTING, 'Listing was successfully deleted', \Ess\M2ePro\Model\Log\AbstractLog::TYPE_NOTICE, \Ess\M2ePro\Model\Log\AbstractLog::PRIORITY_HIGH);
     $this->accountModel = NULL;
     $this->marketplaceModel = NULL;
     $this->deleteChildInstance();
     $this->getHelper('Data\\Cache\\Permanent')->removeTagValues('listing');
     return parent::delete();
 }