Exemplo n.º 1
0
 public function setListingsProducts(array $listingsProducts)
 {
     parent::setListingsProducts($listingsProducts);
     foreach ($this->listingsProducts as $listingProduct) {
         $listingProduct->setData('synch_status', \Ess\M2ePro\Model\Listing\Product::SYNCH_STATUS_OK);
         $listingProduct->setData('synch_reasons', null);
         $additionalData = $listingProduct->getAdditionalData();
         unset($additionalData['synch_template_list_rules_note']);
         $listingProduct->setSettings('additional_data', $additionalData);
         $listingProduct->save();
     }
     return $this;
 }