- Timestamp:
- 2010/09/27 11:49:29 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/products/LC_Page_Products_Detail.php
r18820 r18824 159 159 // 規格2クラス名 160 160 $this->tpl_class_name2 = $objProduct->className2[$product_id]; 161 161 162 162 // 規格1 163 163 $this->arrClassCat1 = $objProduct->classCats1[$product_id]; … … 181 181 if (!isset($_POST['mode'])) $_POST['mode'] = ""; 182 182 $arrErr = array(); 183 183 184 184 switch($_POST['mode']) { 185 185 case 'cart': … … 189 189 if (count($arrErr) == 0) { 190 190 $objCartSess = new SC_CartSession(); 191 $product_class_id = $_POST['product_class_id']; 191 192 $classcategory_id1 = $_POST['classcategory_id1']; 192 193 $classcategory_id2 = $_POST['classcategory_id2']; … … 206 207 } 207 208 208 $objCartSess->addProduct(array($_POST['product_id'], $ classcategory_id1, $classcategory_id2), $this->objFormParam->getValue('quantity'));209 $objCartSess->addProduct(array($_POST['product_id'], $product_class_id, $classcategory_id1, $classcategory_id2), $this->objFormParam->getValue('quantity')); 209 210 210 211 if (!empty($_POST['gmo_oneclick'])) { … … 233 234 // サブタイトルを取得 234 235 $this->tpl_subtitle = $this->arrProduct['name']; 235 236 236 237 // 関連カテゴリを取得 237 238 $this->arrRelativeCat = $objDb->sfGetMultiCatTree($product_id); 238 239 239 240 // 画像ファイル指定がない場合の置換処理 240 241 $this->arrProduct['main_image'] 241 242 = SC_Utils_Ex::sfNoImageMain($this->arrProduct['main_image']); 242 243 243 244 $this->lfSetFile(); 244 245 // 支払方法の取得 … … 296 297 // プロダクトIDの正当性チェック 297 298 $product_id = $this->lfCheckProductId(); 298 299 299 300 $objView = new SC_MobileView(); 300 301 $objCustomer = new SC_Customer(); … … 398 399 if(count($this->arrErr) == 0) { 399 400 $objCartSess = new SC_CartSession(); 401 $product_class_id = $_POST['product_class_id']; 400 402 $classcategory_id1 = $_POST['classcategory_id1']; 401 403 $classcategory_id2 = $_POST['classcategory_id2']; … … 411 413 } 412 414 413 $objCartSess->addProduct(array($_POST['product_id'], $ classcategory_id1, $classcategory_id2), $this->objFormParam->getValue('quantity'));415 $objCartSess->addProduct(array($_POST['product_id'], $product_class_id, $classcategory_id1, $classcategory_id2), $this->objFormParam->getValue('quantity')); 414 416 $this->sendRedirect($this->getLocation(MOBILE_URL_CART_TOP), true); 415 417 exit; … … 427 429 // サブタイトルを取得 428 430 $this->tpl_subtitle = $this->arrProduct["name"]; 429 431 430 432 // 画像ファイル指定がない場合の置換処理 431 433 $this->arrProduct['main_image'] 432 434 = SC_Utils_Ex::sfNoImageMain($this->arrProduct['main_image']); 433 435 434 436 // ファイル情報のセット 435 437 $this->lfSetFile();
Note: See TracChangeset
for help on using the changeset viewer.