Ignore:
Timestamp:
2009/08/04 12:47:34 (17 years ago)
Author:
Seasoft
Message:

フロント機能「商品一覧」画面を改訂。

  • 全パラメータをGETに統一
    • #532(現在のカゴの中から[前のページへ戻る]で、並び順の指定が解除される)を改修
    • #533(商品一覧の1ページ目しかクロールされない)を改善
  • 利用の無い処理の削除
File:
1 edited

Legend:

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

    r18234 r18252  
    942942    } 
    943943 
    944     // カテゴリ別おすすめ商品の取得 
    945     function sfGetBestProducts( $conn, $category_id = 0){ 
    946         $sql = ''; 
    947         // 既に登録されている内容を取得する 
    948         $sql .= "SELECT name, main_image, main_list_image, price01_min, price01_max, price02_min, price02_max, point_rate, 
    949                  A.product_id, A.comment FROM dtb_best_products as A LEFT JOIN vw_products_allclass AS allcls 
    950                 USING (product_id) WHERE A.category_id = ? AND A.del_flg = 0 AND allcls.del_flg = 0 AND allcls.status = 1"; 
    951          
    952         // 在庫無し商品の非表示 
    953         if (NOSTOCK_HIDDEN === true) { 
    954             $sql .= ' AND (allcls.stock_max >= 1 OR allcls.stock_unlimited_max = 1)'; 
    955         } 
    956          
    957         $sql .= " ORDER BY A.rank"; 
    958         $arrItems = $conn->getAll($sql, array($category_id)); 
    959  
    960         return $arrItems; 
    961     } 
    962  
    963944    // 特殊制御文字の手動エスケープ 
    964945    function sfManualEscape($data) { 
Note: See TracChangeset for help on using the changeset viewer.