瀏覽代碼

[Backend] Paramètres : ajout email from purchase order

feature/export_comptable
Guillaume 4 年之前
父節點
當前提交
f37d4d90bd
共有 3 個文件被更改,包括 5 次插入1 次删除
  1. +1
    -0
      ShopBundle/Resources/translations/lcshop.fr.yaml
  2. +3
    -0
      ShopBundle/Resources/views/backend/merchant/panel_email.html.twig
  3. +1
    -1
      ShopBundle/Services/MailUtils.php

+ 1
- 0
ShopBundle/Resources/translations/lcshop.fr.yaml 查看文件

@@ -267,6 +267,7 @@ field:
emailFromName: "Email (From) : nom"
emailSubjectPrefix: "Email : préfixe"
emailContact: Email (contact)
emailFromPurchaseOrder: "Email (From) : bons de commande"
order: Commande
subject: Sujet
metaTitle: Meta title

+ 3
- 0
ShopBundle/Resources/views/backend/merchant/panel_email.html.twig 查看文件

@@ -18,6 +18,9 @@
<div class="col-12">
{{ form_row(form.merchantConfigs['email-contact']) }}
</div>
<div class="col-12">
{{ form_row(form.merchantConfigs['email-from-purchase-order']) }}
</div>
{{ macros.card_end() }}
</div>
</div>

+ 1
- 1
ShopBundle/Services/MailUtils.php 查看文件

@@ -41,7 +41,7 @@ class MailUtils
$merchantCurrent = $this->merchantUtils->getMerchantCurrent();

$merchantConfigEmailFrom = $merchantCurrent->getMerchantConfig('email-from');
$emailFrom = isset($params[self::FROM_EMAIL]) ? $params[self::FROM_EMAIL] : $merchantConfigEmailFrom;
$emailFrom = (isset($params[self::FROM_EMAIL]) && $params[self::FROM_EMAIL] && strlen($params[self::FROM_EMAIL])) ? $params[self::FROM_EMAIL] : $merchantConfigEmailFrom;

$merchantConfigEmailFromName = $merchantCurrent->getMerchantConfig('email-from-name');
$emailFromName = isset($params[self::FROM_NAME]) ? $params[self::FROM_NAME] : $merchantConfigEmailFromName;

Loading…
取消
儲存