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); }