- Timestamp:
- 2012/01/17 16:32:25 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_11-dev/data/class/pages/products/LC_Page_Products_Detail.php
r21402 r21410 453 453 foreach($arrRecommendData as $recommend){ 454 454 $arrRecommendProductId[] = $recommend["recommend_product_id"]; 455 $arrRecommendData[$recommend["recommend_product_id"]] = $recommend['comment']; 455 456 } 456 457 … … 458 459 $arrProducts = $objProduct->getListByProductIds($objQuery, $arrRecommendProductId); 459 460 461 //取得している並び順で並び替え 462 // FIXME SC_Productあたりにソート処理はもってくべき 463 $arrProducts2 = array(); 464 foreach($arrProducts as $item) { 465 $arrProducts2[ $item['product_id'] ] = $item; 466 } 467 460 468 $arrRecommend = array(); 461 foreach ($arrRecommendData as $key => $arrRow) { 462 $arrRecommendData[$key] = array_merge($arrRow, $arrProducts[$arrRow['recommend_product_id']]); 463 } 464 465 return $arrRecommendData; 469 foreach($arrRecommendProductId as $product_id) { 470 $arrProducts2[$product_id]['comment'] = $arrRecommendData[$product_id]; 471 $arrRecommend[] = $arrProducts2[$product_id]; 472 } 473 474 return $arrRecommend; 466 475 } 467 476
Note: See TracChangeset
for help on using the changeset viewer.