ITOBEN STYLE > EC-CUBE:「のしの種類」情報をメールと納品書に反映させる 2012年5月1日カテゴリー:未分類 EC-CUBE:「のしの種類」情報をメールと納品書に反映させる EC-CUBE:購入者が「のし」の付加を選択できるようにする 上記のコンテンツに、今回のコンテンツを追加することで、「のしの種類」情報をメールと納品書に反映させることができます。 1 メールに反映 (1) ■data/class/helper/SC_Helper_Mail.php 2カ所に追加 ①43行目あたりに追加 [php] $this->arrGIFTPAPER = $masterData->getMasterData(‘mtb_gift_paper’); [/php] ②151行目あたりに追加 [php] // のし情報の変換 $arrTplVar->arrGIFTPAPER = $this->arrGIFTPAPER; [/php] (2)PC用メール ① ■data/Smarty/templates/default/mail_templates/order_mail_pay.tpl 33行目あたり [php] のしの種類: [/php] ② ■data/Smarty/templates/default/mail_templates/order_mail.tpl 33行目あたり [php] のしの種類: [/php] (3)携帯用メール ① ■data/Smarty/templates/mobile/mail_templates/order_mail_pay.tpl 33行目あたり [php] のしの種類: [/php] ② ■data/Smarty/templates/mobile/mail_templates/order_mail.tpl 33行目あたり [php] のしの種類: [/php] 2 納品書に反映 ■data/class/SC_Fpdf.php 2カ所に追加 ① 44行目あたり [php] $this->arrGIFTPAPER = $masterData->getMasterData(‘mtb_gift_paper’); [/php] ② 320行目あたり [php] //のし情報 if ($this->arrDisp[‘gift_paper’] != 0) { $text =”のしの種類:”. $this->arrGIFTPAPER[$this->arrDisp[‘gift_paper’]]; $this->lfText(22, 142, $text, 10); } [/php]
EC-CUBE:購入者が「のし」の付加を選択できるようにする
上記のコンテンツに、今回のコンテンツを追加することで、「のしの種類」情報をメールと納品書に反映させることができます。
1 メールに反映
(1) ■data/class/helper/SC_Helper_Mail.php 2カ所に追加
①43行目あたりに追加
[php]
$this->arrGIFTPAPER = $masterData->getMasterData(‘mtb_gift_paper’);
[/php]
②151行目あたりに追加
[php]
// のし情報の変換
$arrTplVar->arrGIFTPAPER = $this->arrGIFTPAPER;
[/php]
(2)PC用メール
① ■data/Smarty/templates/default/mail_templates/order_mail_pay.tpl
33行目あたり
[php]
のしの種類:
[/php]
② ■data/Smarty/templates/default/mail_templates/order_mail.tpl
33行目あたり
[php]
のしの種類:
[/php]
(3)携帯用メール
① ■data/Smarty/templates/mobile/mail_templates/order_mail_pay.tpl
33行目あたり
[php]
のしの種類:
[/php]
② ■data/Smarty/templates/mobile/mail_templates/order_mail.tpl
33行目あたり
[php]
のしの種類:
[/php]
2 納品書に反映
■data/class/SC_Fpdf.php 2カ所に追加
① 44行目あたり
[php]
$this->arrGIFTPAPER = $masterData->getMasterData(‘mtb_gift_paper’);
[/php]
② 320行目あたり
[php]
//のし情報
if ($this->arrDisp[‘gift_paper’] != 0) {
$text =”のしの種類:”. $this->arrGIFTPAPER[$this->arrDisp[‘gift_paper’]];
$this->lfText(22, 142, $text, 10);
}
[/php]