- Timestamp:
- 2010/10/12 11:55:47 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/helper/SC_Helper_DB.php
r18833 r18851 1911 1911 * 1912 1912 * @param $objCartSess SC_CartSession カートセッション 1913 * @return bool 0: ダウンロード販売無 1:ダウンロード販売無2:全てダウンロード販売1913 * @return bool 0:実商品のみ 1:ダウンロード販売と実商品混在 2:全てダウンロード販売 1914 1914 */ 1915 1915 function chkCartDown($objCartSess) { … … 1918 1918 $nodown = false; 1919 1919 $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 = ?"; 1930 1923 if(!is_null($arrID)){ 1931 1924 //カート内のIDから販売方法を取得 1932 1925 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)); 1934 1927 if ($arrRet[0]['down'] == "2"){ 1935 1928 $down = true;
Note: See TracChangeset
for help on using the changeset viewer.
