Changeset 18436
- Timestamp:
- 2009/12/08 01:15:11 (12 years ago)
- Location:
- branches/comu-ver2/data/class
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/comu-ver2/data/class/helper/SC_Helper_DB.php
r18435 r18436 250 250 * 251 251 * @param array $arrID 規格ID 252 * @param boolean $includePrivateProducts 非公開商品を含むか 252 253 * @return array 規格情報の配列 253 254 */ 254 function sfGetProductsClass($arrID ) {255 function sfGetProductsClass($arrID, $includePrivateProducts = false) { 255 256 list($product_id, $classcategory_id1, $classcategory_id2) = $arrID; 256 257 257 if ($classcategory_id1 == "") {258 if (strlen($classcategory_id1) == 0) { 258 259 $classcategory_id1 = '0'; 259 260 } 260 if ($classcategory_id2 == "") {261 if (strlen($classcategory_id2) == 0) { 261 262 $classcategory_id2 = '0'; 262 263 } … … 264 265 // 商品規格取得 265 266 $objQuery = new SC_Query(); 266 $col = "product_id, deliv_fee, name, product_code, main_list_image, main_image, price01, price02, point_rate, product_class_id, classcategory_id1, classcategory_id2, class_id1, class_id2, stock, stock_unlimited, sale_limit"; 267 $table = "vw_product_class AS prdcls"; 268 $where = "product_id = ? AND classcategory_id1 = ? AND classcategory_id2 = ? AND status = 1"; 267 $col = 'product_id, deliv_fee, name, product_code, main_list_image, main_image, price01, price02, point_rate, product_class_id, classcategory_id1, classcategory_id2, class_id1, class_id2, stock, stock_unlimited, sale_limit'; 268 $table = 'vw_product_class AS prdcls'; 269 $where = 'product_id = ? AND classcategory_id1 = ? AND classcategory_id2 = ?'; 270 if (!$includePrivateProducts) { 271 $where .= ' AND status = 1'; 272 } 269 273 $arrRet = $objQuery->select($col, $table, $where, array($product_id, $classcategory_id1, $classcategory_id2)); 270 274 return $arrRet[0]; … … 287 291 /** 288 292 * カート内商品の集計処理を行う. 293 * 294 * 管理機能での利用は想定していないので注意。(非公開商品は除外される。) 289 295 * 290 296 * @param LC_Page $objPage ページクラスのインスタンス -
branches/comu-ver2/data/class/pages/admin/contents/LC_Page_Admin_Contents_RecommendSearch.php
r18234 r18436 73 73 $this->lfConvertParam(); 74 74 75 $where = "del_flg = 0 AND status = 1";75 $where = 'del_flg = 0'; 76 76 77 77 /* 入力エラーなし */ -
branches/comu-ver2/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php
r18333 r18436 697 697 $objDb = new SC_Helper_DB_Ex(); 698 698 $arrClassCatName = $objDb->sfGetIDValueList("dtb_classcategory", "classcategory_id", "name"); 699 $arrRet = $objDb->sfGetProductsClass(array($product_id, $classcategory_id1, $classcategory_id2) );699 $arrRet = $objDb->sfGetProductsClass(array($product_id, $classcategory_id1, $classcategory_id2), true); 700 700 701 701 $arrProduct['price'] = $arrRet['price02'];
Note: See TracChangeset
for help on using the changeset viewer.