Ignore:
Timestamp:
2010/09/27 11:49:29 (14 years ago)
Author:
eccuore
Message:

#792(ダウンロード販売機能) vw_download_class削除、product_class_id対応(規格構成変更と並行作業中なので、作業途中の部分有)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/pages/products/LC_Page_Products_Detail.php

    r18820 r18824  
    159159        // 規格2クラス名 
    160160        $this->tpl_class_name2 = $objProduct->className2[$product_id]; 
    161          
     161 
    162162        // 規格1 
    163163        $this->arrClassCat1 = $objProduct->classCats1[$product_id]; 
     
    181181        if (!isset($_POST['mode'])) $_POST['mode'] = ""; 
    182182        $arrErr = array(); 
    183          
     183 
    184184        switch($_POST['mode']) { 
    185185            case 'cart': 
     
    189189                if (count($arrErr) == 0) { 
    190190                    $objCartSess = new SC_CartSession(); 
     191                    $product_class_id = $_POST['product_class_id']; 
    191192                    $classcategory_id1 = $_POST['classcategory_id1']; 
    192193                    $classcategory_id2 = $_POST['classcategory_id2']; 
     
    206207                    } 
    207208 
    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')); 
    209210 
    210211                    if (!empty($_POST['gmo_oneclick'])) { 
     
    233234        // サブタイトルを取得 
    234235        $this->tpl_subtitle = $this->arrProduct['name']; 
    235          
     236 
    236237        // 関連カテゴリを取得 
    237238        $this->arrRelativeCat = $objDb->sfGetMultiCatTree($product_id); 
    238          
     239 
    239240        // 画像ファイル指定がない場合の置換処理 
    240241        $this->arrProduct['main_image'] 
    241242            = SC_Utils_Ex::sfNoImageMain($this->arrProduct['main_image']); 
    242          
     243 
    243244        $this->lfSetFile(); 
    244245        // 支払方法の取得 
     
    296297        // プロダクトIDの正当性チェック 
    297298        $product_id = $this->lfCheckProductId(); 
    298          
     299 
    299300        $objView = new SC_MobileView(); 
    300301        $objCustomer = new SC_Customer(); 
     
    398399            if(count($this->arrErr) == 0) { 
    399400                $objCartSess = new SC_CartSession(); 
     401                $product_class_id = $_POST['product_class_id']; 
    400402                $classcategory_id1 = $_POST['classcategory_id1']; 
    401403                $classcategory_id2 = $_POST['classcategory_id2']; 
     
    411413                } 
    412414 
    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')); 
    414416                $this->sendRedirect($this->getLocation(MOBILE_URL_CART_TOP), true); 
    415417                exit; 
     
    427429        // サブタイトルを取得 
    428430        $this->tpl_subtitle = $this->arrProduct["name"]; 
    429          
     431 
    430432        // 画像ファイル指定がない場合の置換処理 
    431433        $this->arrProduct['main_image'] 
    432434            = SC_Utils_Ex::sfNoImageMain($this->arrProduct['main_image']); 
    433          
     435 
    434436        // ファイル情報のセット 
    435437        $this->lfSetFile(); 
Note: See TracChangeset for help on using the changeset viewer.