Post by johnhandscomb22 » Thu Jul 28, 2016 9:35 pm

hi

how do i target my modified order.tpl file to send out when the order status is changed to processing, complete, shipped etc. and not just the confirmation email?


Cheers


Posts

Joined
Thu Jul 28, 2016 9:30 pm

Post by straightlight » Thu Jul 28, 2016 9:41 pm

johnhandscomb22 wrote:hi

how do i target my modified order.tpl file to send out when the order status is changed to processing, complete, shipped etc. and not just the confirmation email?


Cheers
Welcome to the Opencart forum. Would it be possible to provide your OC version? As for send out, could you clarify that a little? What are you trying to do with this file exactly?

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by johnhandscomb22 » Thu Jul 28, 2016 10:11 pm

hi

it's Version 2.0.2.0

i've designed and developed a template for the order confirmation email that is emailed to the customer, this is the order.tpl file. but as the order status is updated and a notify is sent to the customers email, it sends out the standard template instead of my custom one. can i target the template i've designed to send out when the order status is updated?


Cheers


Posts

Joined
Thu Jul 28, 2016 9:30 pm

Post by straightlight » Thu Jul 28, 2016 10:15 pm

johnhandscomb22 wrote:hi

it's Version 2.0.2.0

i've designed and developed a template for the order confirmation email that is emailed to the customer, this is the order.tpl file. but as the order status is updated and a notify is sent to the customers email, it sends out the standard template instead of my custom one. can i target the template i've designed to send out when the order status is updated?


Cheers
By posting your block of codes (in Code tags from your text area window), a more accurate answer could be provided on that end.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by cyclops12 » Thu Aug 04, 2016 3:06 am

johnhandscomb22 wrote:hi

it's Version 2.0.2.0

i've designed and developed a template for the order confirmation email that is emailed to the customer, this is the order.tpl file. but as the order status is updated and a notify is sent to the customers email, it sends out the standard template instead of my custom one. can i target the template i've designed to send out when the order status is updated?


Cheers
Welcome,
You could try in catalog/model/checkout/order.php around lines 603-607 you should find

Code: Select all

if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/mail/order.tpl')) {
					$html = $this->load->view($this->config->get('config_template') . '/template/mail/order.tpl', $data);
				} else {
					$html = $this->load->view('default/template/mail/order.tpl', $data);
				}
As you can see the default file is called order.tpl so maybe rename YOUR template file to dev_order.tpl or something

Hope this helps

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am
Who is online

Users browsing this forum: No registered users and 3 guests