バージョン選択

フォーラム

メニュー

オンライン状況

16 人のユーザが現在オンラインです。 (8 人のユーザが フォーラム を参照しています。)
登録ユーザ: 0
ゲスト: 16
もっと...

サイト内検索

質問 > その他 > 2.12.2で購入時のメール送信先を商品ごとに追加

その他

新規スレッドを追加する

フラット表示 前のトピック | 次のトピック
投稿者 スレッド
long20th
投稿日時: 2014/8/25 10:46
対応状況: −−−
常連
登録日: 2014/6/25
居住地:
投稿: 35
Re: 2.12.2で購入時のメール送信先を商品ごとに追加
>bucchi様
ありがとうございます。

    /* 受注完了メール送信 */
    function sfSendOrderMail($order_id, $template_id, $subject = '', $header = '', $footer = '', $send = true) {

        $arrTplVar = new stdClass();
        $arrInfo = SC_Helper_DB_Ex::sfGetBasisData();
        $arrTplVar->arrInfo = $arrInfo;

        $objQuery =& SC_Query_Ex::getSingletonInstance();
//ここから追加

	$addressList = array();

	foreach ($arrOrderDetail as $orderDetail) {
	    $productId = $orderDetail["product_id"];
	    
	    // 商品データごとのメールアドレス取得
	    $arrProduct = $objQuery->select("comment1", "dtb_products", "product_id = ?", array($productId));
	    $addressList[] = $arrProduct[0]["comment1"];
	}

	// $addressList[]をBccに利用
	$bcc = $arrInfo['email01'] . "," . implode(",", $addressList);

//ここまで


        if ($subject == '' && $header == '' && $footer == '') {
            // メールテンプレート情報の取得
            $where = 'template_id = ?';
            $arrRet = $objQuery->select('subject, header, footer', 'dtb_mailtemplate', $where, array($template_id));
            $arrTplVar->tpl_header = $arrRet[0]['header'];
            $arrTplVar->tpl_footer = $arrRet[0]['footer'];
            $tmp_subject = $arrRet[0]['subject'];
        } else {
            $arrTplVar->tpl_header = $header;
            $arrTplVar->tpl_footer = $footer;
            $tmp_subject = $subject;
        }


としましたが、適用されませんでした。

こちらのコードの記述場所違い、また、SC_Helper_Mail.php以外にも触る必要のあるファイル等あれば、
お教え下さい。

お願い致します。
フラット表示 前のトピック | 次のトピック


題名 投稿者 日時
   2.12.2で購入時のメール送信先を商品ごとに追加 long20th 2014/8/6 17:02
     Re: 2.12.2で購入時のメール送信先を商品ごとに追加 bucchi 2014/8/24 0:38
     » Re: 2.12.2で購入時のメール送信先を商品ごとに追加 long20th 2014/8/25 10:46
         Re: 2.12.2で購入時のメール送信先を商品ごとに追加 yuh 2014/8/25 14:12
           Re: 2.12.2で購入時のメール送信先を商品ごとに追加 long20th 2014/9/1 9:47
             Re: 2.12.2で購入時のメール送信先を商品ごとに追加 yuh 2014/9/1 10:37
             Re: 2.12.2で購入時のメール送信先を商品ごとに追加 kuro_r 2014/9/1 10:45
               Re: 2.12.2で購入時のメール送信先を商品ごとに追加 long20th 2014/9/1 13:26
                 Re: 2.12.2で購入時のメール送信先を商品ごとに追加 long20th 2014/9/1 13:42
                 Re: 2.12.2で購入時のメール送信先を商品ごとに追加 yuh 2014/9/1 13:44

 



ログイン


EC-CUBE公式 Amazon Payプラグイン

統計情報

総メンバー数は89,352名です
総投稿数は110,082件です

投稿数ランキング

1
seasoft
7367
2
468
3217
3
AMUAMU
2712
4
nanasess
2314
5
umebius
2085
6
yuh
1819
7
h_tanaka
1652
8
red
1570
9
mcontact
1304
10
tsuji
958
11
fukap
907
12
shutta
835
13
tao_s
799
14 ramrun 789
15 karin 689
16 sumida 641
17
homan
633
18 DELIGHT 572
19
patapata
502
20
flealog
485


ネットショップの壺

EC-CUBEインテグレートパートナー

Copyright© EC-CUBE CO.,LTD. All Rights Reserved.