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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/pages/mypage/LC_Page_Mypage_Favorite.php

    r17162 r17509  
    9494        } 
    9595 
    96         $col = "vpa.*"; 
    97         $from = "dtb_customer_favorite_products AS dcfp LEFT JOIN vw_products_allclass AS vpa USING(product_id)"; 
    98         $where = "vpa.del_flg = 0 AND dcfp.customer_id = ?"; 
     96        $col = "allcls.*"; 
     97        $from = "dtb_customer_favorite_products AS dcfp LEFT JOIN vw_products_allclass AS allcls USING(product_id)"; 
     98         
     99        $where = "allcls.del_flg = 0 AND allcls.status = 1 AND dcfp.customer_id = ?"; 
     100        // 在庫無し商品の非表示 
     101        if (NOSTOCK_HIDDEN === true) { 
     102            $where .= ' AND (allcls.stock_max >= 1 OR allcls.stock_unlimited_max = 1)'; 
     103        } 
     104 
    99105        $arrval = array($objCustomer->getvalue('customer_id')); 
    100106        $order = "product_id DESC"; 
Note: See TracChangeset for help on using the changeset viewer.