|
@@ 218-222 (lines=5) @@
|
| 215 |
|
$Product->setName(StringUtil::trimAll($row[$headerByKey['name']])); |
| 216 |
|
} |
| 217 |
|
|
| 218 |
|
if (isset($row[$headerByKey['note']]) && StringUtil::isNotBlank($row[$headerByKey['note']])) { |
| 219 |
|
$Product->setNote(StringUtil::trimAll($row[$headerByKey['note']])); |
| 220 |
|
} else { |
| 221 |
|
$Product->setNote(null); |
| 222 |
|
} |
| 223 |
|
|
| 224 |
|
if (isset($row[$headerByKey['description_list']]) && StringUtil::isNotBlank($row[$headerByKey['description_list']])) { |
| 225 |
|
$Product->setDescriptionList(StringUtil::trimAll($row[$headerByKey['description_list']])); |
|
@@ 224-228 (lines=5) @@
|
| 221 |
|
$Product->setNote(null); |
| 222 |
|
} |
| 223 |
|
|
| 224 |
|
if (isset($row[$headerByKey['description_list']]) && StringUtil::isNotBlank($row[$headerByKey['description_list']])) { |
| 225 |
|
$Product->setDescriptionList(StringUtil::trimAll($row[$headerByKey['description_list']])); |
| 226 |
|
} else { |
| 227 |
|
$Product->setDescriptionList(null); |
| 228 |
|
} |
| 229 |
|
|
| 230 |
|
if (isset($row[$headerByKey['description_detail']]) && StringUtil::isNotBlank($row[$headerByKey['description_detail']])) { |
| 231 |
|
$Product->setDescriptionDetail(StringUtil::trimAll($row[$headerByKey['description_detail']])); |
|
@@ 230-234 (lines=5) @@
|
| 227 |
|
$Product->setDescriptionList(null); |
| 228 |
|
} |
| 229 |
|
|
| 230 |
|
if (isset($row[$headerByKey['description_detail']]) && StringUtil::isNotBlank($row[$headerByKey['description_detail']])) { |
| 231 |
|
$Product->setDescriptionDetail(StringUtil::trimAll($row[$headerByKey['description_detail']])); |
| 232 |
|
} else { |
| 233 |
|
$Product->setDescriptionDetail(null); |
| 234 |
|
} |
| 235 |
|
|
| 236 |
|
if (isset($row[$headerByKey['search_word']]) && StringUtil::isNotBlank($row[$headerByKey['search_word']])) { |
| 237 |
|
$Product->setSearchWord(StringUtil::trimAll($row[$headerByKey['search_word']])); |
|
@@ 236-240 (lines=5) @@
|
| 233 |
|
$Product->setDescriptionDetail(null); |
| 234 |
|
} |
| 235 |
|
|
| 236 |
|
if (isset($row[$headerByKey['search_word']]) && StringUtil::isNotBlank($row[$headerByKey['search_word']])) { |
| 237 |
|
$Product->setSearchWord(StringUtil::trimAll($row[$headerByKey['search_word']])); |
| 238 |
|
} else { |
| 239 |
|
$Product->setSearchWord(null); |
| 240 |
|
} |
| 241 |
|
|
| 242 |
|
if (isset($row[$headerByKey['free_area']]) && StringUtil::isNotBlank($row[$headerByKey['free_area']])) { |
| 243 |
|
$Product->setFreeArea(StringUtil::trimAll($row[$headerByKey['free_area']])); |
|
@@ 242-246 (lines=5) @@
|
| 239 |
|
$Product->setSearchWord(null); |
| 240 |
|
} |
| 241 |
|
|
| 242 |
|
if (isset($row[$headerByKey['free_area']]) && StringUtil::isNotBlank($row[$headerByKey['free_area']])) { |
| 243 |
|
$Product->setFreeArea(StringUtil::trimAll($row[$headerByKey['free_area']])); |
| 244 |
|
} else { |
| 245 |
|
$Product->setFreeArea(null); |
| 246 |
|
} |
| 247 |
|
|
| 248 |
|
// 商品画像登録 |
| 249 |
|
$this->createProductImage($row, $Product, $data, $headerByKey); |
|
@@ 880-884 (lines=5) @@
|
| 877 |
|
} |
| 878 |
|
} |
| 879 |
|
|
| 880 |
|
if (isset($row[$headerByKey['product_code']]) && StringUtil::isNotBlank($row[$headerByKey['product_code']])) { |
| 881 |
|
$ProductClass->setCode(StringUtil::trimAll($row[$headerByKey['product_code']])); |
| 882 |
|
} else { |
| 883 |
|
$ProductClass->setCode(null); |
| 884 |
|
} |
| 885 |
|
|
| 886 |
|
if (StringUtil::isBlank($row[$headerByKey['stock_unlimited']])) { |
| 887 |
|
$message = trans('csvimportcontroller.require', ['%line%' => $line, '%name%' => $headerByKey['stock_unlimited']]); |