|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Axico Id is set from existing product data |
|
|
// Axico Id is set from existing product data |
|
|
|
|
|
|
|
|
|
|
|
if(empty($product->getAxicoId())){ |
|
|
|
|
|
$result['status'] = false; |
|
|
|
|
|
$result['totalCompared'] = 0; |
|
|
|
|
|
$result['newProduct'] = 0; |
|
|
|
|
|
$result['changed'] = 0; |
|
|
|
|
|
$result['unchanged'] = 0; |
|
|
|
|
|
$result['message'] = 'A ' . $product->getFabricId() . ' terméknek nincs axico cikkszáma az aktiv adatbázisban. Forduljon a fejlesztőhöz!'; |
|
|
|
|
|
|
|
|
|
|
|
break; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$axicoIdWarranty = $this->axicoIdWarrantyFactory->findByProductAxicoIdName($product->getAxicoId()); |
|
|
$axicoIdWarranty = $this->axicoIdWarrantyFactory->findByProductAxicoIdName($product->getAxicoId()); |
|
|
$product->setWarranty($axicoIdWarranty->getDefaultWarranty()); |
|
|
$product->setWarranty($axicoIdWarranty->getDefaultWarranty()); |
|
|
|
|
|
|