@@ 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']])) { |
|
@@ 307-313 (lines=7) @@ | ||
304 | } |
|
305 | } |
|
306 | ||
307 | if (isset($row[$headerByKey['search_word']])) { |
|
308 | if (StringUtil::isNotBlank($row[$headerByKey['search_word']])) { |
|
309 | $Product->setSearchWord(StringUtil::trimAll($row[$headerByKey['search_word']])); |
|
310 | } else { |
|
311 | $Product->setSearchWord(null); |
|
312 | } |
|
313 | } |
|
314 | ||
315 | if (isset($row[$headerByKey['free_area']])) { |
|
316 | if (StringUtil::isNotBlank($row[$headerByKey['free_area']])) { |
|
@@ 315-321 (lines=7) @@ | ||
312 | } |
|
313 | } |
|
314 | ||
315 | if (isset($row[$headerByKey['free_area']])) { |
|
316 | if (StringUtil::isNotBlank($row[$headerByKey['free_area']])) { |
|
317 | $Product->setFreeArea(StringUtil::trimAll($row[$headerByKey['free_area']])); |
|
318 | } else { |
|
319 | $Product->setFreeArea(null); |
|
320 | } |
|
321 | } |
|
322 | ||
323 | // 商品画像登録 |
|
324 | $this->createProductImage($row, $Product, $data, $headerByKey); |
|
@@ 1083-1087 (lines=5) @@ | ||
1080 | } |
|
1081 | } |
|
1082 | ||
1083 | if (isset($row[$headerByKey['product_code']]) && StringUtil::isNotBlank($row[$headerByKey['product_code']])) { |
|
1084 | $ProductClass->setCode(StringUtil::trimAll($row[$headerByKey['product_code']])); |
|
1085 | } else { |
|
1086 | $ProductClass->setCode(null); |
|
1087 | } |
|
1088 | ||
1089 | if (!isset($row[$headerByKey['stock_unlimited']]) |
|
1090 | || StringUtil::isBlank($row[$headerByKey['stock_unlimited']]) |