我如何按照自己的意愿更改opencart订单电子邮件内容?可能吗?

时间:2012-08-13 10:39:28

标签: php html opencart

我可以更改订单电子邮件的内容吗?这是对######的在线交易的确认。 AuthOnly交易总计为$171.90,并将处理到您的帐户。

Order Number  : 10372    Approval Code : 321321 This content to This

ORDER CONFIRMATION
SUBJECT:
• Your host.com order #XXXXXXX
EMAIL MESSAGE:
• Howdy, (customer name) :
Thank you for ordering from #### We received your order (XXXXXXXX) on (00/00/00). Your work is currently being handled with the utmost care by one of the crew members. We will let you know when it’s on its way! Please visit us again soon.

Your order includes the following item(s):

Description – product
Quantity & Price – 1 @ $29.99
Shipping Method – Standard FREE

Subtotal – $29.99
Sales Tax – $ 2.10

Order Total – $32.09

Over & out,
the SSSSSS crew

thank you!

3 个答案:

答案 0 :(得分:37)

是的,当然有可能。您可以通过编辑以下模板文件来修改内容:

/catalog/view/theme/default/template/mail/order.tpl

(假设您使用的是默认模板)

但是如果你想修改主题和其他东西,你需要编辑订单模型文件:

/catalog/model/checkout/order.php
然后找

$mail->setSubject($subject);

并将$ subject设置为您想要的任何内容:)

答案 1 :(得分:3)

您可以访问以下模型/视图文件来执行更改。

参考文献如下:

  1. .. \ catalog \ view \ theme \ default \ template \ mail \ order.tpl(to doinvoice模板结构或数据更新)

  2. .. \ catalog \ model \ checkout \ order.php(检索/发送任何数据值以订购发票模板。)

  3. .. \ catalog \ language \ english \ mail \ order.php(添加更多语言变量或任何自定义更新。)

  4. 希望这很有用。

    谢谢!

答案 2 :(得分:1)

如果您只是想通过链接进行更改,请转到

catalog\language\english\mail\order.php

并改变它。