Post by EvilEd » Fri Feb 11, 2011 3:20 am

I want to include the "Terms & Conditions" for order confirm email sent to customers.
Alternatively, attach a file in the email.
Someone who knows how to do this modification smoothly? ???

Newbie

Posts

Joined
Mon Jan 03, 2011 3:08 am

Post by gocreative » Sun Feb 13, 2011 7:22 am

I'm by no means a pro with modifying OpenCart, but the most rudimentary method I can think of would be to edit the function that sends the order email, and insert the terms and conditions directly into that. Alternatively perform a database query that returns the HTML from your site's terms and conditions section, and insert that content into the order email function.

User avatar
Active Member

Posts

Joined
Tue Jan 12, 2010 5:46 pm

Post by mewolar » Sat May 10, 2014 5:22 pm

Good morning,

I also want to add a pdf-file to my order confirmation.

Did you find a solution?

Regards,


Joost

Newbie

Posts

Joined
Sat Apr 12, 2014 1:03 am

Post by nigermain » Wed Dec 17, 2014 7:48 pm

Good afternoon,

Could you then tell me please which file to edit to be able to include to the "Terms & Conditions" for order confirm email sent to customers.

Thank you very much for your quick response.

Germain.

Newbie

Posts

Joined
Wed Dec 17, 2014 7:45 pm

Post by mewolar » Fri Dec 19, 2014 12:57 am

In /catalog/model/checkout/order.php after

$mail->setText(html_entity_decode($text, ENT_QUOTES, 'UTF-8'));

add

$mail->addAttachment('folder/filename.pdf');

Newbie

Posts

Joined
Sat Apr 12, 2014 1:03 am
Who is online

Users browsing this forum: No registered users and 17 guests