Changeset 20661


Ignore:
Timestamp:
2011/03/16 10:40:38 (10 years ago)
Author:
nanasess
bzr:base-revision:
ohkouchi@loop-az.jp-20110316010955-v503h2qhtunovfpq
bzr:committer:
Kentaro Ohkouchi <ohkouchi@loop-az.jp>
bzr:file-ids:

data/Smarty/templates/default/cart/index.tpl 15732@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2FSmarty%2Ftemplates%2Fdefault%2Fcart%2Findex.tpl
data/class/pages/cart/LC_Page_Cart.php 15179@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fcart%2FLC_Page_Cart.php
bzr:mapping-version:
v4
bzr:merge:

ohkouchi@loop-az.jp-20110316013919-fe00dn8qy710kybt
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
ohkouchi@loop-az.jp-20110316014024-d505efe315lr02r5
bzr:revno:
3381
bzr:revprop:branch-nick:
branches/version-2_5-dev
bzr:root:
branches/version-2_5-dev
bzr:text-revisions:

data/Smarty/templates/default/cart/index.tpl ohkouchi@loop-az.jp-20110316013919-fe00dn8qy710kybt
data/class/pages/cart/LC_Page_Cart.php ohkouchi@loop-az.jp-20110316013919-fe00dn8qy710kybt
bzr:timestamp:
2011-03-16 10:40:24.736999989 +0900
bzr:user-agent:
bzr2.2.1+bzr-svn1.0.4
svn:original-date:
2011-03-16T01:40:24.737000Z
Message:

#912 (商品をカゴに投入してカートに移動するとカテゴリーツリーが開いているが商品の数量を変更すると閉じる)

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

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/Smarty/templates/default/cart/index.tpl

    r20525 r20661  
    7575            <input type="hidden" name="cart_no" value="" /> 
    7676            <input type="hidden" name="cartKey" value="<!--{$key}-->" /> 
     77            <input type="hidden" name="category_id" value="<!--{$tpl_category_id|h}-->" /> 
    7778            <!--{if count($cartKeys) > 1}--> 
    7879            <h3><!--{$arrProductType[$key]}--></h3> 
  • branches/version-2_5-dev/data/class/pages/cart/LC_Page_Cart.php

    r20553 r20661  
    109109        case 'up'://1個追加 
    110110            $objCartSess->upQuantity($cart_no, $cartKey); 
    111             SC_Response_Ex::reload(array(), true); 
     111            SC_Response_Ex::reload(array('category_id' => $objFormParam->getValue('category_id')), true); 
    112112            exit; 
    113113            break; 
    114114        case 'down'://1個減らす 
    115115            $objCartSess->downQuantity($cart_no, $cartKey); 
    116             SC_Response_Ex::reload(array(), true); 
     116            SC_Response_Ex::reload(array('category_id' => $objFormParam->getValue('category_id')), true); 
    117117            exit; 
    118118            break; 
    119119        case 'delete'://カートから削除 
    120120            $objCartSess->delProduct($cart_no, $cartKey); 
    121             SC_Response_Ex::reload(array(), true); 
     121            SC_Response_Ex::reload(array('category_id' => $objFormParam->getValue('category_id')), true); 
    122122            exit; 
    123123            break; 
     
    139139        } 
    140140 
     141        $this->tpl_category_id = $objFormParam->getValue('category_id'); 
     142 
    141143        // ログイン判定 
    142144        if($objCustomer->isLoginSuccess(true)) { 
     
    149151        // TODO: SC_CartSession::setPrevURL()利用不可。 
    150152        $this->lfGetCartPrevUrl($_SESSION,$_SERVER['HTTP_REFERER']); 
    151  
    152153        $this->tpl_prev_url = (isset($_SESSION['cart_prev_url'])) ? $_SESSION['cart_prev_url'] : ''; 
    153154    } 
     
    171172        $objFormParam->addParam("カートキー", 'cartKey', INT_LEN, 'n', array('NUM_CHECK',"MAX_LENGTH_CHECK")); 
    172173        $objFormParam->addParam("カートナンバー", "cart_no", INT_LEN, 'n', array("NUM_CHECK", "MAX_LENGTH_CHECK")); 
     174        // PC版での値引き継ぎ用 
     175        $objFormParam->addParam("カテゴリID", "category_id", INT_LEN, 'n', array("NUM_CHECK", "MAX_LENGTH_CHECK")); 
    173176        // 値の取得 
    174177        $objFormParam->setParam($arrRequest); 
Note: See TracChangeset for help on using the changeset viewer.