@@ 272-278 (lines=7) @@ | ||
269 | $Product->setName(StringUtil::trimAll($row[$headerByKey['name']])); |
|
270 | } |
|
271 | ||
272 | if (isset($row[$headerByKey['note']])) { |
|
273 | if (StringUtil::isNotBlank($row[$headerByKey['note']])) { |
|
274 | $Product->setNote(StringUtil::trimAll($row[$headerByKey['note']])); |
|
275 | } else { |
|
276 | $Product->setNote(null); |
|
277 | } |
|
278 | } |
|
279 | ||
280 | if (isset($row[$headerByKey['description_list']])) { |
|
281 | if (StringUtil::isNotBlank($row[$headerByKey['description_list']])) { |
|
@@ 280-286 (lines=7) @@ | ||
277 | } |
|
278 | } |
|
279 | ||
280 | if (isset($row[$headerByKey['description_list']])) { |
|
281 | if (StringUtil::isNotBlank($row[$headerByKey['description_list']])) { |
|
282 | $Product->setDescriptionList(StringUtil::trimAll($row[$headerByKey['description_list']])); |
|
283 | } else { |
|
284 | $Product->setDescriptionList(null); |
|
285 | } |
|
286 | } |
|
287 | ||
288 | if (isset($row[$headerByKey['description_detail']])) { |
|
289 | if (StringUtil::isNotBlank($row[$headerByKey['description_detail']])) { |
|
@@ 288-294 (lines=7) @@ | ||
285 | } |
|
286 | } |
|
287 | ||
288 | if (isset($row[$headerByKey['description_detail']])) { |
|
289 | if (StringUtil::isNotBlank($row[$headerByKey['description_detail']])) { |
|
290 | $Product->setDescriptionDetail(StringUtil::trimAll($row[$headerByKey['description_detail']])); |
|
291 | } else { |
|
292 | $Product->setDescriptionDetail(null); |
|
293 | } |
|
294 | } |
|
295 | ||
296 | if (isset($row[$headerByKey['search_word']])) { |
|
297 | if (StringUtil::isNotBlank($row[$headerByKey['search_word']])) { |
|
@@ 296-302 (lines=7) @@ | ||
293 | } |
|
294 | } |
|
295 | ||
296 | if (isset($row[$headerByKey['search_word']])) { |
|
297 | if (StringUtil::isNotBlank($row[$headerByKey['search_word']])) { |
|
298 | $Product->setSearchWord(StringUtil::trimAll($row[$headerByKey['search_word']])); |
|
299 | } else { |
|
300 | $Product->setSearchWord(null); |
|
301 | } |
|
302 | } |
|
303 | ||
304 | if (isset($row[$headerByKey['free_area']])) { |
|
305 | if (StringUtil::isNotBlank($row[$headerByKey['free_area']])) { |
|
@@ 304-310 (lines=7) @@ | ||
301 | } |
|
302 | } |
|
303 | ||
304 | if (isset($row[$headerByKey['free_area']])) { |
|
305 | if (StringUtil::isNotBlank($row[$headerByKey['free_area']])) { |
|
306 | $Product->setFreeArea(StringUtil::trimAll($row[$headerByKey['free_area']])); |
|
307 | } else { |
|
308 | $Product->setFreeArea(null); |
|
309 | } |
|
310 | } |
|
311 | ||
312 | // 商品画像登録 |
|
313 | $this->createProductImage($row, $Product, $data, $headerByKey); |
|
@@ 1072-1076 (lines=5) @@ | ||
1069 | } |
|
1070 | } |
|
1071 | ||
1072 | if (isset($row[$headerByKey['product_code']]) && StringUtil::isNotBlank($row[$headerByKey['product_code']])) { |
|
1073 | $ProductClass->setCode(StringUtil::trimAll($row[$headerByKey['product_code']])); |
|
1074 | } else { |
|
1075 | $ProductClass->setCode(null); |
|
1076 | } |
|
1077 | ||
1078 | if (!isset($row[$headerByKey['stock_unlimited']]) |
|
1079 | || StringUtil::isBlank($row[$headerByKey['stock_unlimited']]) |