Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I change opencart order email content as our wish? Is it possible?

Tags:

html

php

opencart

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
like image 333
Naveenbos Avatar asked Aug 13 '12 10:08

Naveenbos


People also ask

How do I change my OpenCart email template?

Edit the mail templates by clicking the Edit icon. Delete the mail template by clicking the Delete icon. Add/Create a new mail template by clicking the Add icon.


Video Answer


1 Answers

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 :)

like image 149
Tohid Avatar answered Sep 21 '22 14:09

Tohid