Ignore:
Timestamp:
2010/03/11 10:35:11 (14 years ago)
Author:
kajiwara
Message:

正式版にナイトリービルド版をマージしてみるテスト

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tmp/version-2_5-test/data/class/pages/rss/LC_Page_Rss_Products.php

    r17266 r18609  
    6060 
    6161        //店舗情報をセット 
    62         $arrSiteInfo = $objSiteInfo->data; 
     62        $this->arrSiteInfo = $objSiteInfo->data; 
    6363 
    6464        //商品IDを取得 
     
    7272            // 値のセットし直し 
    7373            foreach($arrProduct as $key => $val){ 
    74                 //商品価格を税込みに編集 
    75                 $arrProduct[$key]["price02"] = SC_Utils_Ex::sfPreTax($arrProduct[$key]["price02"], $arrSiteInfo["tax"], $arrSiteInfo["tax_rule"]); 
     74                //販売価格を税込みに編集 
     75                $arrProduct[$key]["price02"] = SC_Helper_DB_Ex::sfPreTax($arrProduct[$key]["price02"]); 
    7676 
    7777                // 画像ファイルのURLセット 
     
    9797            // 値のセットし直し 
    9898            foreach($arrProduct as $key => $val){ 
    99                 //商品価格を税込みに編集 
    100                 $arrProduct[$key]["price01_max"] = SC_Utils_Ex::sfPreTax($arrProduct[$key]["price01_max"], $arrSiteInfo["tax"], $arrSiteInfo["tax_rule"]); 
    101                 $arrProduct[$key]["price01_min"] = SC_Utils_Ex::sfPreTax($arrProduct[$key]["price01_min"], $arrSiteInfo["tax"], $arrSiteInfo["tax_rule"]); 
    102                 $arrProduct[$key]["price02_max"] = SC_Utils_Ex::sfPreTax($arrProduct[$key]["price02_max"], $arrSiteInfo["tax"], $arrSiteInfo["tax_rule"]); 
    103                 $arrProduct[$key]["price02_min"] = SC_Utils_Ex::sfPreTax($arrProduct[$key]["price02_min"], $arrSiteInfo["tax"], $arrSiteInfo["tax_rule"]); 
     99                //販売価格を税込みに編集 
     100                $arrProduct[$key]["price02_max"] = SC_Helper_DB_Ex::sfPreTax($arrProduct[$key]["price02_max"]); 
     101                $arrProduct[$key]["price02_min"] = SC_Helper_DB_Ex::sfPreTax($arrProduct[$key]["price02_min"]); 
    104102 
    105103                // 画像ファイルのURLセット 
     
    122120            $this->arrProductKeys = array_keys(SC_Utils_Ex::sfswaparray($arrProduct)); 
    123121        } 
    124  
    125         //店舗情報をセット 
    126         $this->arrSiteInfo = $arrSiteInfo; 
    127122 
    128123        //セットしたデータをテンプレートファイルに出力 
     
    219214            FROM  vw_products_allclass as allcls 
    220215            WHERE allcls.del_flg = 0 AND allcls.status = 1"; 
     216         
     217        // 在庫無し商品の非表示 
     218        if (NOSTOCK_HIDDEN === true) { 
     219            $sql .= ' AND (allcls.stock_max >= 1 OR allcls.stock_unlimited_max = 1)'; 
     220        } 
     221         
    221222        $sql .= " ORDER BY allcls.product_id"; 
     223         
    222224        $arrProduct = $objQuery->getall($sql); 
    223225        return $arrProduct; 
Note: See TracChangeset for help on using the changeset viewer.