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

Nav*_*bos 15 html php 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!
Run Code Online (Sandbox Code Playgroud)

Toh*_*hid 37

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

/catalog/view/theme/default/template/mail/order.tpl
Run Code Online (Sandbox Code Playgroud)

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

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

/catalog/model/checkout/order.php
Run Code Online (Sandbox Code Playgroud)

然后找到

$mail->setSubject($subject);
Run Code Online (Sandbox Code Playgroud)

并将$ subject设置为你想要的任何东西:)