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
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?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
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
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
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.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
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Welcome,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
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);
}
Hope this helps
Who is online
Users browsing this forum: No registered users and 3 guests