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