- Timestamp:
- 2013/05/02 18:11:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_12-dev/data/class/pages/mypage/LC_Page_Mypage_History.php
r22567 r22796 32 32 * @version $Id$ 33 33 */ 34 class LC_Page_Mypage_History extends LC_Page_AbstractMypage_Ex 35 { 34 class LC_Page_Mypage_History extends LC_Page_AbstractMypage_Ex { 36 35 37 36 // }}} … … 43 42 * @return void 44 43 */ 45 function init() 46 { 44 function init() { 47 45 parent::init(); 48 46 $this->tpl_mypageno = 'index'; … … 62 60 * @return void 63 61 */ 64 function process() 65 { 62 function process() { 66 63 parent::process(); 67 64 } … … 72 69 * @return void 73 70 */ 74 function action() 75 { 71 function action() { 76 72 77 73 $objCustomer = new SC_Customer_Ex(); 78 74 $objDb = new SC_Helper_DB_Ex(); 79 75 $objPurchase = new SC_Helper_Purchase_Ex(); 80 $objProduct = new SC_Product();81 76 82 77 if (!SC_Utils_Ex::sfIsInt($_GET['order_id'])) { … … 84 79 } 85 80 86 $order_id = $_GET['order_id']; 87 $this->is_price_change = false; 81 $order_id = $_GET['order_id']; 88 82 89 83 //受注データの取得 … … 98 92 $this->isMultiple = count($this->arrShipping) > 1; 99 93 // 支払い方法の取得 100 $this->arrPayment = SC_Helper_Payment_Ex::getIDValueList();94 $this->arrPayment = $objDb->sfGetIDValueList('dtb_payment', 'payment_id', 'payment_method'); 101 95 // 受注商品明細の取得 102 96 $this->tpl_arrOrderDetail = $objPurchase->getOrderDetail($order_id); 103 foreach ($this->tpl_arrOrderDetail as $product_index => $arrOrderProductDetail) {104 //必要なのは商品の販売金額のみなので、遅い場合は、別途SQL作成した方が良い105 $arrTempProductDetail = $objProduct->getProductsClass($arrOrderProductDetail['product_class_id']);106 if($this->tpl_arrOrderDetail[$product_index]['price'] != $arrTempProductDetail['price02']) {107 $this->is_price_change = true;108 }109 $this->tpl_arrOrderDetail[$product_index]['product_price'] = ($arrTempProductDetail['price02'])?$arrTempProductDetail['price02']:0;110 }111 112 97 $this->tpl_arrOrderDetail = $this->setMainListImage($this->tpl_arrOrderDetail); 113 98 $objPurchase->setDownloadableFlgTo($this->tpl_arrOrderDetail); … … 125 110 * @return void 126 111 */ 127 function destroy() 128 { 112 function destroy() { 129 113 parent::destroy(); 130 114 } … … 136 120 * @return array 受注メール送信履歴の内容 137 121 */ 138 function lfGetMailHistory($order_id) 139 { 122 function lfGetMailHistory($order_id) { 140 123 $objQuery =& SC_Query_Ex::getSingletonInstance(); 141 124 $col = 'send_date, subject, template_id, send_id'; … … 153 136 * @return array お届け先情報 154 137 */ 155 function lfGetShippingDate(&$objPurchase, $order_id, $arrWDAY) 156 { 138 function lfGetShippingDate(&$objPurchase, $order_id, $arrWDAY) { 157 139 $arrShipping = $objPurchase->getShippings($order_id); 158 140 … … 176 158 * @return array 画像をセットした購入履歴の配列 177 159 */ 178 function setMainListImage($arrOrderDetails) 179 { 160 function setMainListImage($arrOrderDetails) { 180 161 $i = 0; 181 162 foreach ($arrOrderDetails as $arrOrderDetail) { … … 194 175 * @return array MIMETYPE、ファイル名をセットした購入履歴の配列 195 176 */ 196 function lfSetMimetype($arrOrderDetails) 197 { 177 function lfSetMimetype($arrOrderDetails) { 198 178 $objHelperMobile = new SC_Helper_Mobile_Ex(); 199 179 $i = 0; … … 216 196 * @param $arrOrderDetail 購入履歴の配列 217 197 */ 218 function lfSetAU($arrOrderDetails) 219 { 198 function lfSetAU($arrOrderDetails) { 220 199 $this->isAU = false; 221 200 // モバイル端末かつ、キャリアがAUの場合に処理を行う
Note: See TracChangeset
for help on using the changeset viewer.