| @@ 147-152 (lines=6) @@ | ||
| 144 | } |
|
| 145 | } |
|
| 146 | ||
| 147 | if (Str::isBlank($row['商品名'])) { |
|
| 148 | $this->addErrors(($data->key() + 1) . '行目の商品名が設定されていません。'); |
|
| 149 | return $this->render($app, $form, $headers, $this->productTwig); |
|
| 150 | } else { |
|
| 151 | $Product->setName(Str::trimAll($row['商品名'])); |
|
| 152 | } |
|
| 153 | ||
| 154 | if (Str::isNotBlank($row['ショップ用メモ欄'])) { |
|
| 155 | $Product->setNote(Str::trimAll($row['ショップ用メモ欄'])); |
|
| @@ 484-489 (lines=6) @@ | ||
| 481 | ||
| 482 | } |
|
| 483 | ||
| 484 | if (Str::isBlank($row['カテゴリ名'])) { |
|
| 485 | $this->addErrors(($data->key() + 1) . '行目のカテゴリ名が設定されていません。'); |
|
| 486 | return $this->render($app, $form, $headers, $this->categoryTwig); |
|
| 487 | } else { |
|
| 488 | $Category->setName(Str::trimAll($row['カテゴリ名'])); |
|
| 489 | } |
|
| 490 | ||
| 491 | if ($row['親カテゴリID'] != '') { |
|
| 492 | ||