Ejemplo n.º 1
0
 function importRow($row)
 {
     $sku = $this->getFieldValue('sku', $row);
     $productId = $this->productId($sku);
     $product = new VF_Tire_Catalog_TireProduct(new VF_Product());
     $product->setId($productId);
     $tireSize = $this->tireSize($row);
     $product->setTireSize($tireSize);
     $product->setTireType($this->tireType($row));
     $this->log(sprintf('Assigned tire size [%s] to sku [%s]', $tireSize, $sku));
 }