- Timestamp:
- 2010/09/22 13:23:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/helper/SC_Helper_DB.php
r18815 r18819 1869 1869 $sqlval['commit_date'] = 'Now()'; 1870 1870 } 1871 // ステータスが入金済みに変更の場合、入金日を更新 1872 elseif ($arrOrderOld['status'] != ORDER_PRE_END && $newStatus == ORDER_PRE_END) { 1873 $sqlval['payment_date'] = 'Now()'; 1874 } 1875 1871 1876 $sqlval['status'] = $newStatus; 1872 1877 $sqlval['update_date'] = 'Now()'; … … 1925 1930 $nodown = false; 1926 1931 $ret = 0; 1927 $arrID = $objCartSess->getAllProductID(); 1932 $arrID = $objCartSess->getAllProductClassID(); 1933 $table = <<< __EOS__ 1934 dtb_products_class pc LEFT JOIN dtb_class_combination cc1 ON pc.class_combination_id = cc1.class_combination_id 1935 LEFT JOIN dtb_class_combination cc2 ON cc1.parent_class_combination_id = cc2.class_combination_id 1936 __EOS__; 1937 $where = <<< __EOS__ 1938 pc.product_id = ? AND 1939 ( cc2.classcategory_id = ? OR cc2.classcategory_id IS NULL ) AND 1940 ( cc1.classcategory_id = ? OR cc1.classcategory_id IS NULL ) 1941 __EOS__; 1928 1942 if(!is_null($arrID)){ 1929 1943 //カート内のIDから販売方法を取得 1930 1944 foreach ($arrID as $rec) { 1931 $arrRet = $objQuery->select(" down", "dtb_products", "product_id = " . $rec);1945 $arrRet = $objQuery->select("pc.down AS down", $table, $where, array($rec[0],$rec[1],$rec[2])); 1932 1946 if ($arrRet[0]['down'] == "2"){ 1933 1947 $down = true; … … 1988 2002 $this->sfRegistTempOrder($uniqid, $sqlval); 1989 2003 } 1990 1991 1992 2004 } 1993 2005 ?>
Note: See TracChangeset
for help on using the changeset viewer.
