Changeset 19872 for branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Multiple.php
- Timestamp:
- 2011/01/11 22:31:49 (13 years ago)
- bzr:base-revision:
- svn-v4:1e3b908f-19a9-db11-a64c-001125224ba8:branches/version-2_5-dev:19871
- bzr:committer:
- Kentaro Ohkouchi <ohkouchi@loop-az.jp>
- bzr:file-ids:
data/class/helper/SC_Helper_Purchase.php sc_helper_purchase.p-20101020100530-jyaoa7ch9pdfjqzp-1
data/class/pages/mypage/LC_Page_Mypage_DeliveryAddr.php 16093@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fmypage%2FLC_Page_Mypage_DeliveryAddr.php
data/class/pages/shopping/LC_Page_Shopping.php 15223@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2Fpages%2Fshopping%2FLC_Page_Shopping.php
data/class/pages/shopping/LC_Page_Shopping_Multiple.php lc_page_shopping_mul-20110109122547-u3fq5xmi1b4jn5n4-2- bzr:mapping-version:
- v4
- bzr:merge:
ohkouchi@loop-az.jp-20110111133017-qkwxf5r153zqh0i9- bzr:repository-uuid:
- 1e3b908f-19a9-db11-a64c-001125224ba8
- bzr:revision-id:
- ohkouchi@loop-az.jp-20110111133146-xxt8xxsbcdj7rkzt
- bzr:revno:
- 2601
- bzr:revprop:branch-nick:
- branches/version-2_5-dev
- bzr:root:
- branches/version-2_5-dev
- bzr:text-revisions:
data/class/helper/SC_Helper_Purchase.php ohkouchi@loop-az.jp-20110111133017-qkwxf5r153zqh0i9
data/class/pages/mypage/LC_Page_Mypage_DeliveryAddr.php ohkouchi@loop-az.jp-20110111133017-qkwxf5r153zqh0i9
data/class/pages/shopping/LC_Page_Shopping.php ohkouchi@loop-az.jp-20110111133017-qkwxf5r153zqh0i9
data/class/pages/shopping/LC_Page_Shopping_Multiple.php ohkouchi@loop-az.jp-20110111133017-qkwxf5r153zqh0i9- bzr:timestamp:
- 2011-01-11 22:31:46.545000076 +0900
- bzr:user-agent:
- bzr2.2.1+bzr-svn1.0.4
- svn:original-date:
- 2011-01-11T13:31:46.545000Z
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/pages/shopping/LC_Page_Shopping_Multiple.php
r19868 r19872 73 73 $this->objFormParam = new SC_FormParam(); 74 74 75 $this->addrs = $this->getDelivAddrs($objCustomer); 75 $uniqid = $objSiteSess->getUniqId(); 76 77 $this->addrs = $this->getDelivAddrs($objCustomer, $objPurchase, $uniqid); 76 78 $this->items = $this->splitItems($objCartSess); 77 79 … … 79 81 $this->objFormParam->setParam($_POST); 80 82 81 $uniqid = $objSiteSess->getUniqId();82 83 $objPurchase->verifyChangeCart($uniqid, $objCartSess); 83 84 … … 106 107 while ($params['cart_no' . $i] != null) { 107 108 $other_deliv_id = $params['shipping' . $i]; 108 if ($other_deliv_id != 0) { 109 $otherDeliv = $objQuery->select("*", "dtb_other_deliv", 110 "other_deliv_id = ?", 111 array($other_deliv_id)); 112 foreach ($otherDeliv[0] as $key => $val) { 113 $sqlval[$other_deliv_id]['shipping_' . $key] = $val; 109 if ($objCustomer->isLoginSuccess()) { 110 if ($other_deliv_id != 0) { 111 $otherDeliv = $objQuery->select("*", "dtb_other_deliv", 112 "other_deliv_id = ?", 113 array($other_deliv_id)); 114 foreach ($otherDeliv[0] as $key => $val) { 115 $sqlval[$other_deliv_id]['shipping_' . $key] = $val; 116 } 117 } else { 118 $objPurchase->copyFromCustomer($sqlval[0], $objCustomer, 119 "shipping"); 114 120 } 115 121 } else { 116 $objPurchase->copyFromCustomer($sqlval[0], $objCustomer,117 "shipping");118 122 } 119 123 $sqlval[$other_deliv_id]['deliv_id'] = $objPurchase->getDeliv($this->cartKey); … … 182 186 * 非会員の場合は, 「お届け先の指定」画面で入力した住所を取得する. 183 187 */ 184 function getDelivAddrs(&$objCustomer ) {188 function getDelivAddrs(&$objCustomer, &$objPurchase, $uniqid) { 185 189 if ($objCustomer->isLoginSuccess()) { 186 190 $addrs = $objCustomer->getCustomerAddress($_SESSION['customer']['customer_id']); 191 $results = array(); 192 foreach ($addrs as $key => $val) { 193 $other_deliv_id = SC_Utils_Ex::isBlank($val['other_deliv_id']) ? 0 : $val['other_deliv_id']; 194 $results[$other_deliv_id] = $val['name01'] . $val['name02'] 195 . " " . $this->arrPref[$val['pref']] . $val['addr01'] . $val['addr02']; 196 } 187 197 } else { 188 // TODO 189 $addrs = array(); 190 } 191 $results = array(); 192 foreach ($addrs as $key => $val) { 193 $other_deliv_id = SC_Utils_Ex::isBlank($val['other_deliv_id']) ? 0 : $val['other_deliv_id']; 194 $results[$other_deliv_id] = $val['name01'] . $val['name02'] 195 . " " . $this->arrPref[$val['pref']] . $val['addr01'] . $val['addr02']; 198 $shipping = $objPurchase->getShippingTemp(); 199 foreach ($shipping as $shipping_id => $val) { 200 $results[$shipping_id] = $val['shipping_name01'] . $val['shipping_name02'] 201 . " " . $this->arrPref[$val['shipping_pref']] 202 . $val['shipping_addr01'] . $val['shipping_addr02']; 203 } 196 204 } 197 205 return $results;
Note: See TracChangeset
for help on using the changeset viewer.