Beispiel #1
0
 public function updateAfterRelistAction(Ess_M2ePro_Model_Listing_Other $listingOther, array $nativeRequestData = array(), array $params = array())
 {
     if ($params['ebay_item_id'] != $listingOther->getData('item_id')) {
         $newEbayOldItems = $listingOther->getData('old_items');
         is_null($newEbayOldItems) && ($newEbayOldItems = '');
         $newEbayOldItems != '' && ($newEbayOldItems .= ',');
         $newEbayOldItems .= $listingOther->getData('item_id');
         $listingOther->addData(array('old_items' => $newEbayOldItems))->save();
         if ((int) $listingOther->getProductId() > 0) {
             $this->createNewEbayItemsId($listingOther, $params['ebay_item_id']);
         }
     }
     $this->updateProductAfterAction($listingOther, $nativeRequestData, $params, $params['ebay_item_id'], false);
 }