|
@@ 733-746 (lines=14) @@
|
| 730 |
|
$ProductClass->setProduct($Product); |
| 731 |
|
|
| 732 |
|
|
| 733 |
|
if ($row['商品種別(ID)'] == '') { |
| 734 |
|
$this->addErrors(($data->key() + 1) . '行目の商品種別(ID)が設定されていません。'); |
| 735 |
|
} else { |
| 736 |
|
if (is_numeric($row['商品種別(ID)'])) { |
| 737 |
|
$ProductType = $app['eccube.repository.master.product_type']->find($row['商品種別(ID)']); |
| 738 |
|
if (!$ProductType) { |
| 739 |
|
$this->addErrors(($data->key() + 1) . '行目の商品種別(ID)が存在しません。'); |
| 740 |
|
} else { |
| 741 |
|
$ProductClass->setProductType($ProductType); |
| 742 |
|
} |
| 743 |
|
} else { |
| 744 |
|
$this->addErrors(($data->key() + 1) . '行目の商品種別(ID)が存在しません。'); |
| 745 |
|
} |
| 746 |
|
} |
| 747 |
|
|
| 748 |
|
$ProductClass->setClassCategory1($ClassCategory1); |
| 749 |
|
$ProductClass->setClassCategory2($ClassCategory2); |
|
@@ 871-884 (lines=14) @@
|
| 868 |
|
|
| 869 |
|
$ProductClass->setProduct($Product); |
| 870 |
|
|
| 871 |
|
if ($row['商品種別(ID)'] == '') { |
| 872 |
|
$this->addErrors(($data->key() + 1) . '行目の商品種別(ID)が設定されていません。'); |
| 873 |
|
} else { |
| 874 |
|
if (is_numeric($row['商品種別(ID)'])) { |
| 875 |
|
$ProductType = $app['eccube.repository.master.product_type']->find($row['商品種別(ID)']); |
| 876 |
|
if (!$ProductType) { |
| 877 |
|
$this->addErrors(($data->key() + 1) . '行目の商品種別(ID)が存在しません。'); |
| 878 |
|
} else { |
| 879 |
|
$ProductClass->setProductType($ProductType); |
| 880 |
|
} |
| 881 |
|
} else { |
| 882 |
|
$this->addErrors(($data->key() + 1) . '行目の商品種別(ID)が存在しません。'); |
| 883 |
|
} |
| 884 |
|
} |
| 885 |
|
|
| 886 |
|
// 規格分類1、2をそれぞれセットし作成 |
| 887 |
|
if ($row['規格分類1(ID)'] != '') { |