How can i change opencart order email content as our wish ? is it possible?

Naveenbos picture Naveenbos · Aug 13, 2012 · Viewed 57.3k times · Source

Can I change the content of order email, which file it exactly refers? This is a confirmation of an online transaction placed with ######. The AuthOnly transaction totaled $171.90 and will be processed to your account.

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!

Answer

Tohid picture Tohid · Aug 13, 2012

Yes of course it's possible. You can modify the content by editing the following template file:

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

(assuming that you are using the default template)

But if you want to modify the subject and other stuff, you'll need to edit the order Model file:

/catalog/model/checkout/order.php

then find

$mail->setSubject($subject);

and set the $subject to whatever you want :)