Ignore:
Timestamp:
2010/10/12 11:55:47 (16 years ago)
Author:
eccuore
Message:

#792(ダウンロード販売機能) 大容量ファイル対策、Safari対応、オンライン決済時のお届け先非表示

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/helper/SC_Helper_DB.php

    r18833 r18851  
    19111911     * 
    19121912     * @param $objCartSess  SC_CartSession  カートセッション 
    1913      * @return  bool        0:ダウンロード販売無 1:ダウンロード販売無 2:全てダウンロード販売 
     1913     * @return  bool        0:実商品のみ 1:ダウンロード販売と実商品混在 2:全てダウンロード販売 
    19141914     */ 
    19151915    function chkCartDown($objCartSess) { 
    … …  
    19181918        $nodown = false; 
    19191919        $ret = 0; 
    1920         $arrID = $objCartSess->getAllProductClassID(); 
    1921         $table =  <<< __EOS__ 
    1922             dtb_products_class pc LEFT JOIN dtb_class_combination cc1 ON pc.class_combination_id = cc1.class_combination_id 
    1923             LEFT JOIN dtb_class_combination cc2 ON cc1.parent_class_combination_id = cc2.class_combination_id 
    1924 __EOS__; 
    1925         $where =  <<< __EOS__ 
    1926             pc.product_id = ? AND 
    1927             ( cc2.classcategory_id = ? OR cc2.classcategory_id IS NULL ) AND 
    1928             ( cc1.classcategory_id = ? OR cc1.classcategory_id IS NULL ) 
    1929 __EOS__; 
     1920        $arrID = $objCartSess->getAllProductID(); 
     1921        $table = "dtb_products_class pc"; 
     1922        $where = "pc.product_class_id = ?"; 
    19301923        if(!is_null($arrID)){ 
    19311924            //カート内のIDから販売方法を取得 
    19321925            foreach ($arrID as $rec) { 
    1933                 $arrRet = $objQuery->select("pc.down AS down", $table, $where, array($rec[0],$rec[1],$rec[2])); 
     1926                $arrRet = $objQuery->select("pc.down AS down", $table, $where, array($rec)); 
    19341927                if ($arrRet[0]['down'] == "2"){ 
    19351928                    $down = true; 
Note: See TracChangeset for help on using the changeset viewer.