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

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

Location:
branches/comu-ver2/data/class/pages/admin/products
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/pages/admin/products/LC_Page_Admin_Products_Class.php

    r16741 r17509  
    4545        parent::init(); 
    4646        $this->tpl_mainpage = 'products/class.tpl'; 
    47         $this->tpl_subnavi = 'products/subnavi.tpl'; 
    48         $this->tpl_subno = 'class'; 
    49         $this->tpl_subtitle = '規格登録'; 
    50         $this->tpl_mainno = 'products'; 
     47        $this->tpl_subnavi = 'products/subnavi.tpl'; 
     48        $this->tpl_subno = 'class'; 
     49        $this->tpl_subtitle = '規格登録'; 
     50        $this->tpl_mainno = 'products'; 
    5151    } 
    5252 
     
    8080            if(count($this->arrErr) <= 0) { 
    8181                if($_POST['class_id'] == "") { 
    82                     $this->lfInsertClass($this->arrForm);   // 新規作成 
     82                    $this->lfInsertClass($this->arrForm); // 新規作成 
    8383                } else { 
    84                     $this->lfUpdateClass($this->arrForm);   // 既存編集 
     84                    $this->lfUpdateClass($this->arrForm); // 既存編集 
    8585                } 
    8686                // 再表示 
  • branches/comu-ver2/data/class/pages/admin/products/LC_Page_Admin_Products_ProductClass.php

    r17408 r17509  
    4848        $this->tpl_mainno = 'products'; 
    4949        $this->tpl_subno = 'product'; 
    50         $this->tpl_subtitle = '商品登録'; 
     50        $this->tpl_subtitle = '商品登録(商品規格)'; 
    5151 
    5252        $masterData = new SC_DB_MasterData_Ex(); 
     
    8787        case 'delete': 
    8888            $objQuery = new SC_Query(); 
     89            $objDb = new SC_Helper_DB_Ex(); 
    8990 
    9091            $objQuery->setLimitOffset(1); 
     
    113114                $objQuery->commit(); 
    114115            } 
    115  
     116             
     117            // 在庫無し商品の非表示対応 
     118            if (NOSTOCK_HIDDEN === true) { 
     119                // 件数カウントバッチ実行 
     120                $objDb->sfCategory_Count($objQuery); 
     121            } 
     122             
    116123            $this->lfProductClassPage();   // 規格登録ページ 
    117124            break; 
     
    334341    function lfInsertProductClass($arrList, $product_id) { 
    335342        $objQuery = new SC_Query(); 
     343        $objDb = new SC_Helper_DB_Ex(); 
    336344 
    337345        $objQuery->begin(); 
     
    361369            $cnt++; 
    362370        } 
    363  
     371         
     372        // 件数カウントバッチ実行 
     373        $objDb->sfCategory_Count($objQuery); 
     374         
    364375        $objQuery->commit(); 
    365376    } 
Note: See TracChangeset for help on using the changeset viewer.