Changeset 18407
- Timestamp:
- 2009/12/01 20:42:26 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_4/data/class/pages/products/LC_Page_Products_Detail.php
r18267 r18407 201 201 } 202 202 break; 203 203 204 204 case 'add_favorite': 205 205 // お気に入りに追加する … … 724 724 . " FROM dtb_product_categories T2 " 725 725 . " GROUP BY product_id) AS T3 USING (product_id)"; 726 $objQuery->setorder(" product_rank DESC");726 $objQuery->setorder("T3.product_rank DESC"); 727 727 for($i = 0; $i < $max; $i++) { 728 728 $where = "del_flg = 0 AND T3.product_id = ? AND status = 1"; 729 $arrProductInfo = $objQuery->select("DISTINCT main_list_image, price02_min, price02_max, price01_min, price01_max, name, point_rate, product_rank", $from, $where, array($arrRet[$i]['recommend_product_id']));729 $arrProductInfo = $objQuery->select("DISTINCT main_list_image, price02_min, price02_max, price01_min, price01_max, name, point_rate, T3.product_rank", $from, $where, array($arrRet[$i]['recommend_product_id'])); 730 730 731 731 if(count($arrProductInfo) > 0) { … … 846 846 $add_favorite_product_id = $_POST['favorite_product_id']; // お気に入りに追加する商品ID 847 847 $customer_id = $objCustomer->getValue('customer_id'); // ログイン中の顧客ID 848 848 849 849 // お気に入りに商品を追加する際のエラーチェックを行う 850 850 $this->arrErr = array(); // エラー内容 851 851 $this->lfCheckAddFavoriteProduct($customer_id, $add_favorite_product_id); 852 852 853 853 if( count($this->arrErr) == 0 ) { 854 854 // お気に入りに商品を追加する … … 858 858 return ; 859 859 } 860 860 861 861 /** 862 862 * 商品をお気に入りにいれる際のエラーチェックを行う … … 872 872 exit; 873 873 } 874 874 875 875 // 既にお気に入り商品として追加されていないかチェック 876 876 if (SC_Helper_DB_Ex::sfDataExists( 'dtb_customer_favorite_products', 'customer_id = ? AND product_id = ?', array($customer_id, $add_favorite_product_id)) ) { … … 879 879 } 880 880 } 881 881 882 882 /** 883 883 * お気に入り商品登録
Note: See TracChangeset
for help on using the changeset viewer.