Ignore:
Timestamp:
2010/09/27 13:29:22 (16 years ago)
Author:
eccuore
Message:

#792(ダウンロード販売機能) カートに商品が入らない不具合修正

Location:
branches/version-2_5-dev/data/class/pages/products
Files:
2 edited

Legend:

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

    r18824 r18826  
    189189                if (count($arrErr) == 0) { 
    190190                    $objCartSess = new SC_CartSession(); 
    191                     $product_class_id = $_POST['product_class_id']; 
    192191                    $classcategory_id1 = $_POST['classcategory_id1']; 
    193192                    $classcategory_id2 = $_POST['classcategory_id2']; 
    … …  
    206205                        $classcategory_id2 = '0'; 
    207206                    } 
    208  
     207                    // 規格IDを取得 
     208                    $objProduct = new SC_Product(); 
     209                    $product_class_id = $objProduct->getClasscategoryIdsByProductClassId($_POST['product_id'],$classcategory_id1,$classcategory_id2); 
    209210                    $objCartSess->addProduct(array($_POST['product_id'], $product_class_id, $classcategory_id1, $classcategory_id2), $this->objFormParam->getValue('quantity')); 
    210211 
  • branches/version-2_5-dev/data/class/pages/products/LC_Page_Products_List.php

    r18824 r18826  
    145145            $arrErr = $this->lfCheckError($product_id); 
    146146            if (count($arrErr) == 0) { 
    147                 $product_class_id = $this->arrForm['product_class_id']; 
    148147                $classcategory_id1 = $this->arrForm['classcategory_id1']; 
    149148                $classcategory_id2 = $this->arrForm['classcategory_id2']; 
    … …  
    156155                    $classcategory_id2 = '0'; 
    157156                } 
     157                // 規格IDを取得 
     158                $objProduct = new SC_Product(); 
     159                $product_class_id = $objProduct->getClasscategoryIdsByProductClassId($product_id,$classcategory_id1,$classcategory_id2); 
    158160                $objCartSess = new SC_CartSession(); 
    159161                $objCartSess->addProduct(array($product_id, $product_class_id, $classcategory_id1, $classcategory_id2), $this->arrForm['quantity']); 
Note: See TracChangeset for help on using the changeset viewer.