Ignore:
Timestamp:
2007/10/25 14:34:53 (17 years ago)
Author:
nanasess
Message:

CSV ダウンロード修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/feature-module-update/data/class/helper/SC_Helper_CSV.php

    r15583 r16558  
    121121            $list_data[$i]['classcategory_id1'] = $arrClassCatName[$list_data[$i]['classcategory_id1']]; 
    122122            $list_data[$i]['classcategory_id2'] = $arrClassCatName[$list_data[$i]['classcategory_id2']]; 
     123 
     124            $arrCategory_id = $objQuery->getCol("dtb_product_categories", 
     125                              "category_id", 
     126                              "product_id = ?", 
     127                              array($list_data[$i]['product_id'])); 
     128 
     129            // カテゴリID 付与 
     130            for ($j = 0; $j < count($arrCategory_id); $j++) { 
     131                $list_data[$i]['category_id'] .= $arrCategory_id[$j]; 
     132                if ($j < count($arrCategory_id) - 1) { 
     133                    $list_data[$i]['category_id'] .= "|"; 
     134                } 
     135            } 
    123136 
    124137            // 各項目をCSV出力用に変換する。 
Note: See TracChangeset for help on using the changeset viewer.