Ignore:
Timestamp:
2008/08/08 00:00:00 (16 years ago)
Author:
Seasoft
Message:

パラメータ設定により、在庫無し商品を一覧に非表示しないように設定可能とする。
※ カテゴリ別おすすめ商品( SC_Utils::sfGetBestProducts() )はテスト方法が分からず、未テスト。
※ dtb_maker_count の更新は未対応。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/pages/frontparts/bloc/LC_Page_FrontParts_Bloc_Best5.php

    r17288 r17509  
    108108        $col = "DISTINCT A.*, name, price02_min, price01_min, main_list_image "; 
    109109        $from = "dtb_best_products AS A INNER JOIN vw_products_allclass AS allcls using(product_id)"; 
    110         $where = "status = 1"; 
     110        $where = "allcls.del_flg = 0 AND allcls.status = 1"; 
     111         
     112        // 在庫無し商品の非表示 
     113        if (NOSTOCK_HIDDEN === true) { 
     114            $where .= ' AND (allcls.stock_max >= 1 OR allcls.stock_unlimited_max = 1)'; 
     115        } 
     116         
    111117        $order = "rank"; 
    112118        $objQuery->setorder($order); 
Note: See TracChangeset for help on using the changeset viewer.