Changeset 19749
- Timestamp:
- 2010/12/19 14:29:22 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/class/helper/SC_Helper_Mail.php
r18820 r19749 79 79 function sfSendOrderMail($order_id, $template_id, $subject = "", $header = "", $footer = "", $send = true) { 80 80 81 $ objPage = new LC_Page();82 $objSiteInfo = new SC_SiteInfo(); 83 $arrInfo = $objSiteInfo->data; 84 $ objPage->arrInfo = $arrInfo;81 $arrTplVar = new stdClass(); 82 $objSiteInfo = new SC_SiteInfo(); 83 $arrInfo = $objSiteInfo->data; 84 $arrTplVar->arrInfo = $arrInfo; 85 85 86 86 $objQuery = new SC_Query(); … … 90 90 $where = "template_id = ?"; 91 91 $arrRet = $objQuery->select("subject, header, footer", "dtb_mailtemplate", $where, array($template_id)); 92 $ objPage->tpl_header = $arrRet[0]['header'];93 $ objPage->tpl_footer = $arrRet[0]['footer'];92 $arrTplVar->tpl_header = $arrRet[0]['header']; 93 $arrTplVar->tpl_footer = $arrRet[0]['footer']; 94 94 $tmp_subject = $arrRet[0]['subject']; 95 95 } else { 96 $ objPage->tpl_header = $header;97 $ objPage->tpl_footer = $footer;96 $arrTplVar->tpl_header = $header; 97 $arrTplVar->tpl_footer = $footer; 98 98 $tmp_subject = $subject; 99 99 } … … 105 105 $arrOrderDetail = $objQuery->select("*", "dtb_order_detail", $where, array($order_id)); 106 106 107 $ objPage->Message_tmp = $arrOrder['message'];107 $arrTplVar->Message_tmp = $arrOrder['message']; 108 108 109 109 // 顧客情報の取得 … … 112 112 $arrCustomer = isset($arrRet[0]) ? $arrRet[0] : ""; 113 113 114 $ objPage->arrCustomer = $arrCustomer;115 $ objPage->arrOrder = $arrOrder;114 $arrTplVar->arrCustomer = $arrCustomer; 115 $arrTplVar->arrOrder = $arrOrder; 116 116 117 117 //その他決済情報 … … 125 125 } 126 126 127 $ objPage->arrOther = $arrOther;127 $arrTplVar->arrOther = $arrOther; 128 128 } 129 129 130 130 // 都道府県変換 131 $ objPage->arrOrder['deliv_pref'] = $this->arrPref[$objPage->arrOrder['deliv_pref']];132 133 $ objPage->arrOrderDetail = $arrOrderDetail;131 $arrTplVar->arrOrder['deliv_pref'] = $this->arrPref[$arrTplVar->arrOrder['deliv_pref']]; 132 133 $arrTplVar->arrOrderDetail = $arrOrderDetail; 134 134 135 135 $objCustomer = new SC_Customer(); 136 $ objPage->tpl_user_point = $objCustomer->getValue('point');136 $arrTplVar->tpl_user_point = $objCustomer->getValue('point'); 137 137 138 138 $objMailView = new SC_SiteView(); 139 139 // メール本文の取得 140 $objMailView->assignobj($ objPage);140 $objMailView->assignobj($arrTplVar); 141 141 $body = $objMailView->fetch($this->arrMAILTPLPATH[$template_id]); 142 142
Note: See TracChangeset
for help on using the changeset viewer.