|
@@ 78-81 (lines=4) @@
|
| 75 |
|
if (!empty($formFile)) { |
| 76 |
|
|
| 77 |
|
$data = $this->getImportData($app, $formFile); |
| 78 |
|
if ($data === false) { |
| 79 |
|
$this->addErrors('CSVのフォーマットが一致しません。'); |
| 80 |
|
return $this->render($app, $form, $headers, $this->productTwig); |
| 81 |
|
} |
| 82 |
|
|
| 83 |
|
$keys = array_keys($headers); |
| 84 |
|
$columnHeaders = $data->getColumnHeaders(); |
|
@@ 123-126 (lines=4) @@
|
| 120 |
|
$this->addErrors(($data->key() + 1) . '行目の商品IDが存在しません。'); |
| 121 |
|
return $this->render($app, $form, $headers, $this->productTwig); |
| 122 |
|
} |
| 123 |
|
} else { |
| 124 |
|
$this->addErrors(($data->key() + 1) . '行目の商品IDが存在しません。'); |
| 125 |
|
return $this->render($app, $form, $headers, $this->productTwig); |
| 126 |
|
} |
| 127 |
|
|
| 128 |
|
} |
| 129 |
|
|
|
@@ 187-190 (lines=4) @@
|
| 184 |
|
} else { |
| 185 |
|
if ($row['商品削除フラグ'] == (string)Constant::DISABLED || $row['商品削除フラグ'] == (string)Constant::ENABLED) { |
| 186 |
|
$Product->setDelFlg($row['商品削除フラグ']); |
| 187 |
|
} else { |
| 188 |
|
$this->addErrors(($data->key() + 1) . '行目の商品削除フラグが設定されていません。'); |
| 189 |
|
return $this->render($app, $form, $headers, $this->productTwig); |
| 190 |
|
} |
| 191 |
|
} |
| 192 |
|
|
| 193 |
|
// 商品画像登録 |