|
@@ 259-262 (lines=4) @@
|
| 256 |
|
|
| 257 |
|
$row = fgetcsv($file, $this->maxRowLegth, $this->delimiter, $this->enclosure); |
| 258 |
|
|
| 259 |
|
if (!in_array('prc', $row) && !$this->attributeExist('prc')) { |
| 260 |
|
ImportBootstrap::addMessage(Factor::ErrorPriceAttribute); |
| 261 |
|
return FALSE; |
| 262 |
|
} |
| 263 |
|
|
| 264 |
|
if (!in_array('num', $row) && !$this->attributeExist('prc') && $this->importType == Factor::ImportProducts) { |
| 265 |
|
ImportBootstrap::addMessage(Factor::ErrorNumberAttribute); |
|
@@ 264-267 (lines=4) @@
|
| 261 |
|
return FALSE; |
| 262 |
|
} |
| 263 |
|
|
| 264 |
|
if (!in_array('num', $row) && !$this->attributeExist('prc') && $this->importType == Factor::ImportProducts) { |
| 265 |
|
ImportBootstrap::addMessage(Factor::ErrorNumberAttribute); |
| 266 |
|
return FALSE; |
| 267 |
|
} |
| 268 |
|
if ((count($this->possibleAttributes) - count(array_diff($this->possibleAttributes, $row))) == count($this->attributes)) { |
| 269 |
|
$this->attributes = $row; |
| 270 |
|
} elseif (count($row) === count($this->attributes)) { |