Ignore:
Timestamp:
2011/02/22 04:53:09 (15 years ago)
Author:
nanasess
bzr:base-revision:
svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_5-dev:20311
bzr:committer:
Kentaro Ohkouchi <[email protected]>
bzr:file-ids:

data/Smarty/templates/default/products/detail.tpl 19775@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fversion-2_5-dev%2Fdata%2FSmarty%2Ftemplates%2Fdefault%2Fproducts%2Fdetail.tpl
data/Smarty/templates/default/products/list.tpl 19775@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Fversion-2_5-dev%2Fdata%2FSmarty%2Ftemplates%2Fdefault%2Fproducts%2Flist.tpl
data/class/SC_CartSession.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2FSC_CartSession.php
data/class/pages/mypage/LC_Page_Mypage_Order.php 16238@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fmypage%2FLC_Page_Mypage_Order.php
data/class/pages/products/LC_Page_Products_Detail.php 15154@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fproducts%2FLC_Page_Products_Detail.php
data/class/pages/products/LC_Page_Products_List.php 15154@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fproducts%2FLC_Page_Products_List.php
bzr:mapping-version:
v4
bzr:merge:

[email protected]
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
[email protected]
bzr:revno:
3040
bzr:revprop:branch-nick:
branches/version-2_5-dev
bzr:root:
branches/version-2_5-dev
bzr:text-revisions:

data/Smarty/templates/default/products/detail.tpl [email protected]
data/Smarty/templates/default/products/list.tpl [email protected]
data/class/SC_CartSession.php [email protected]
data/class/pages/mypage/LC_Page_Mypage_Order.php [email protected]
data/class/pages/products/LC_Page_Products_Detail.php [email protected]
data/class/pages/products/LC_Page_Products_List.php [email protected]
bzr:timestamp:
2011-02-22 04:53:03.749000072 +0900
bzr:user-agent:
bzr2.2.2+bzr-svn1.0.4
svn:original-date:
2011-02-21T19:53:03.749000Z
Message:

#936(商品種別を指定せずにカートインすると変な動作をする)

  • SC_CartSession::addProduct() の引数を商品規格IDと数量に修正

#982([フロント]商品)

  • 商品一覧で JavaScript? エラーが発生していたのを修正
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/SC_CartSession.php

    r20112 r20312  
    225225 
    226226    // カートへの商品追加 
    227     function addProduct($id, $quantity, $productTypeId) { 
     227    function addProduct($product_class_id, $quantity) { 
     228        $objProduct = new SC_Product(); 
     229        $arrProduct = $objProduct->getProductsClass($product_class_id); 
     230        $productTypeId = $arrProduct['product_type_id']; 
    228231        $find = false; 
    229232        $max = $this->getMax($productTypeId); 
    230233        for($i = 0; $i <= $max; $i++) { 
    231234 
    232             if($this->cartSession[$productTypeId][$i]['id'] == $id) { 
     235            if($this->cartSession[$productTypeId][$i]['id'] == $product_class_id) { 
    233236                $val = $this->cartSession[$productTypeId][$i]['quantity'] + $quantity; 
    234237                if(strlen($val) <= INT_LEN) { 
     
    239242        } 
    240243        if(!$find) { 
    241             $this->cartSession[$productTypeId][$max+1]['id'] = $id; 
     244            $this->cartSession[$productTypeId][$max+1]['id'] = $product_class_id; 
    242245            $this->cartSession[$productTypeId][$max+1]['quantity'] = $quantity; 
    243246            $this->cartSession[$productTypeId][$max+1]['cart_no'] = $this->getNextCartID($productTypeId); 
Note: See TracChangeset for help on using the changeset viewer.