私は今、注文セクションで作業しています。私はmagento 2.1.5バージョンで注文電子メールを受け取るために1つ以上の電子メールを追加したいと思っています。私はファイルにコードを追加しようとしています。 vendor/magento/module-quote/Model/QuoteManagement.php2つ以上の電子メールをmagentoの注文確認メールに追加します2
475 $ order-> setCustomerEmail($ quote-> getCustomerEmail());
$objectManager = \Magento\Framework\App\ObjectManager::getInstance();
$connection = $objectManager->get('Magento\Framework\App\ResourceConnection')->getConnection('\Magento\Framework\App\ResourceConnection::DEFAULT_CONNECTION');
$result1 = $connection->fetchAll(" SELECT *
FROM `mg1_customer_entity_varchar` WHERE `entity_id` = '$suser_id' ");
$customemail = $result1[0]['value'];
$order->setCustomerEmail($customemail ,$quote->getCustomerEmail());
$order->setCustomerFirstname($quote->getCustomerFirstname());
$order->setCustomerMiddlename($quote->getCustomerMiddlename());
$order->setCustomerLastname($quote->getCustomerLastname());
私はobjectManager | magento \ frmework \ app \ objectManagerエラーを取得しています。
さらに 私は電子メールアドレスを$ order-> setCustomerEmail( "[email protected]"、$ quote-> getCustomerEmail())に追加します。私はそれを解決するために誰も助けることができる2番目の電子メールアドレスのパラメータを選択しません最初の電子メールアドレスを送信します。おかげ
私のカスタムモジュールデータベーステーブルから取得したい動的電子メールを追加したいので、私のコードでは、私の問題は実際にはコードに関連しています。このファイル(vendor/magento/module-quote/Model/QuoteManagement.php)にはオプションがありますが、エラーを修正することはできません。私を助けてください.. –