簡體   English   中英

Magento編輯電子郵件訂單確認模板不在后端

[英]Magento Edit Email Order Confirmation Template NOT in the backend

我想知道,訂單確認電子郵件的電子郵件模板文件存儲在magento中。 我想編輯最后3行,其中含稅,運費和總計。

有人知道它在哪里嗎?

它們位於template/sales/order/totals.phtml 但是請注意,該文件也在“我的帳戶”頁面中使用。

相反,您應該通過向布局文件(主題中為fx local.xml)添加布局更新來覆蓋它:

<sales_email_order_items>
   <action method="setTemplate"><template>path/to/another/template.phtml</template></action>
</sales_email_order_items>

您可以在app/locale/country_code/email/sales/找到不同電子郵件的主模板

  1. 請登錄管理面板
  2. 轉到系統->交易電子郵件
  3. 點擊“添加新模板”。
  4. 選擇“模板”,然后單擊“加載模板”。

在已加載的html模板中進行更改,然后單擊“保存模板”。

您還可以將主題設置為模塊,在config.xml中添加模板替代,並在app / locale / en_US / template / email / themename中添加模板

<config>
  <global>
    <template>
        <email>
            <sales_email_order_template translate="label" module="sales">
                <label>New Order</label>
                <file>themename/sales/order_new.html</file>
                <type>html</type>
            </sales_email_order_template>
        </email>
    </template>
  </global>
</config>

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM