Ignore:
Timestamp:
2009/09/02 22:55:50 (15 years ago)
Author:
Seasoft
Message:

商品規格プルダウンの選択によって、商品コードの表示を動的に更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/SC_Product.php

    r18277 r18278  
    130130                $classCategories[$productsClass1][$productsClass2]['point'] 
    131131                    = SC_Utils_Ex::sfPrePoint($productsClass['price02'], $productsClass['point_rate']); 
     132                 
     133                // 商品コード 
     134                $classCategories[$productsClass1][$productsClass2]['product_code'] = $productsClass['product_code']; 
    132135            } 
    133136             
     
    149152        // 商品規格取得 
    150153        $objQuery = new SC_Query(); 
    151         $col = "product_id, classcategory_id1, classcategory_id2, class_id1, class_id2, stock, stock_unlimited, price01, price02, point_rate"; 
    152         $table = "vw_product_class AS prdcls"; 
     154        $col = 'product_id, classcategory_id1, classcategory_id2, class_id1, class_id2, stock, stock_unlimited, price01, price02, point_rate, product_code'; 
     155        $table = 'vw_product_class AS prdcls'; 
    153156        $where = 'product_id IN (' . implode(', ', array_pad(array(), count($arrProductId), '?')) . ')'; 
    154157        $objQuery->setorder("product_id, rank1 DESC, rank2 DESC"); 
Note: See TracChangeset for help on using the changeset viewer.