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/shopping/LC_Page_Shopping_Complete.php

    r17444 r17509  
    639639    // 在庫を減らす処理 
    640640    function lfReduceStock(&$objQuery, $arrID, $quantity) { 
     641        $objDb = new SC_Helper_DB_Ex(); 
     642         
    641643        $where = "product_id = ? AND classcategory_id1 = ? AND classcategory_id2 = ?"; 
    642644        $arrRet = $objQuery->select("stock, stock_unlimited", "dtb_products_class", $where, $arrID); 
     
    658660            $objQuery->update("dtb_products_class", $sqlval, $where, $arrID); 
    659661        } 
     662         
     663        // 在庫無し商品の非表示対応 
     664        if (NOSTOCK_HIDDEN === true) { 
     665            // 件数カウントバッチ実行 
     666            $objDb->sfCategory_Count($objQuery); 
     667        } 
     668         
    660669    } 
    661670 
Note: See TracChangeset for help on using the changeset viewer.