EC-CUBE:「のしの種類」情報をメールと納品書に反映させる

EC-CUBE:購入者が「のし」の付加を選択できるようにする

上記のコンテンツに、今回のコンテンツを追加することで、「のしの種類」情報をメールと納品書に反映させることができます。

1 メールに反映

(1) ■data/class/helper/SC_Helper_Mail.php 2カ所に追加

43行目あたりに追加

$this->arrGIFTPAPER = $masterData->getMasterData('mtb_gift_paper');

151行目あたりに追加

// のし情報の変換
$arrTplVar->arrGIFTPAPER = $this->arrGIFTPAPER;

(2)PC用メール

 ■data/Smarty/templates/default/mail_templates/order_mail_pay.tpl
33行目あたり

のしの種類:<!--{$arrGIFTPAPER[$arrOrder.gift_paper]}-->

 ■data/Smarty/templates/default/mail_templates/order_mail.tpl
33行目あたり

のしの種類:<!--{$arrGIFTPAPER[$arrOrder.gift_paper]}-->

(3)携帯用メール

 ■data/Smarty/templates/mobile/mail_templates/order_mail_pay.tpl
33行目あたり

のしの種類:<!--{$arrGIFTPAPER[$arrOrder.gift_paper]}-->

 ■data/Smarty/templates/mobile/mail_templates/order_mail.tpl
33行目あたり

のしの種類:<!--{$arrGIFTPAPER[$arrOrder.gift_paper]}-->

2 納品書に反映

■data/class/SC_Fpdf.php 2カ所に追加
 44行目あたり

$this->arrGIFTPAPER = $masterData->getMasterData('mtb_gift_paper');

 320行目あたり

//のし情報
if ($this->arrDisp['gift_paper'] != 0) {
$text ="のしの種類:". $this->arrGIFTPAPER[$this->arrDisp['gift_paper']];
$this->lfText(22, 142, $text, 10);
}