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_List.php

    r18820 r18824  
    145145            $arrErr = $this->lfCheckError($product_id); 
    146146            if (count($arrErr) == 0) { 
     147                $product_class_id = $this->arrForm['product_class_id']; 
    147148                $classcategory_id1 = $this->arrForm['classcategory_id1']; 
    148149                $classcategory_id2 = $this->arrForm['classcategory_id2']; 
    149                     // 規格1が設定されていない場合 
     150                // 規格1が設定されていない場合 
    150151                if (!$this->tpl_classcat_find1[$product_id]) { 
    151                         $classcategory_id1 = '0'; 
    152                     } 
    153                     // 規格2が設定されていない場合 
     152                    $classcategory_id1 = '0'; 
     153                } 
     154                // 規格2が設定されていない場合 
    154155                if (!$this->tpl_classcat_find2[$product_id]) { 
    155                         $classcategory_id2 = '0'; 
    156                     } 
     156                    $classcategory_id2 = '0'; 
     157                } 
    157158                $objCartSess = new SC_CartSession(); 
    158                 $objCartSess->addProduct(array($product_id, $classcategory_id1, $classcategory_id2), $this->arrForm['quantity']); 
     159                $objCartSess->addProduct(array($product_id, $product_class_id, $classcategory_id1, $classcategory_id2), $this->arrForm['quantity']); 
    159160                    $this->sendRedirect($this->getLocation(URL_CART_TOP)); 
    160161                    exit; 
     
    163164                $arrProduct =& $this->arrProducts[$key]; 
    164165                if ($arrProduct['product_id'] == $product_id) { 
     166                    $arrProduct['product_class_id'] = $this->arrForm['product_class_id']; 
    165167                    $arrProduct['classcategory_id1'] = $this->arrForm['classcategory_id1']; 
    166168                    $arrProduct['classcategory_id2'] = $this->arrForm['classcategory_id2']; 
Note: See TracChangeset for help on using the changeset viewer.