Changeset 20312 for branches/version-2_5-dev/data/class/SC_CartSession.php
- Timestamp:
- 2011/02/22 04:53:09 (15 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/SC_CartSession.php
r20112 r20312 225 225 226 226 // カートへの商品追加 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']; 228 231 $find = false; 229 232 $max = $this->getMax($productTypeId); 230 233 for($i = 0; $i <= $max; $i++) { 231 234 232 if($this->cartSession[$productTypeId][$i]['id'] == $ id) {235 if($this->cartSession[$productTypeId][$i]['id'] == $product_class_id) { 233 236 $val = $this->cartSession[$productTypeId][$i]['quantity'] + $quantity; 234 237 if(strlen($val) <= INT_LEN) { … … 239 242 } 240 243 if(!$find) { 241 $this->cartSession[$productTypeId][$max+1]['id'] = $ id;244 $this->cartSession[$productTypeId][$max+1]['id'] = $product_class_id; 242 245 $this->cartSession[$productTypeId][$max+1]['quantity'] = $quantity; 243 246 $this->cartSession[$productTypeId][$max+1]['cart_no'] = $this->getNextCartID($productTypeId);
Note: See TracChangeset
for help on using the changeset viewer.
