Post by Weiqunw » Sat Aug 22, 2015 6:06 pm

Hi!

I've made a custom template for the order confirmation e-mails.
I also want to use this template for the new customer and order update e-mails. Has anybody experience to get this fixed?

I already tried to add the template in the model files but didn't get it worked yet.

Who knows what to do?

Many thanks.

- Weiqun

Active Member

Posts

Joined
Wed Jul 10, 2013 3:29 pm
Location - Arnhem, the Netherlands

Post by Weiqunw » Sun Aug 23, 2015 12:03 am

Managed to get a html e-mail for the order update e-mail.
Almost there, just need to net the order id, history link etc. right.

Image

Then next is the new customer e-mail.

Active Member

Posts

Joined
Wed Jul 10, 2013 3:29 pm
Location - Arnhem, the Netherlands

Post by IP_CAM » Sun Aug 23, 2015 10:50 am

Seemengly, you have NOT made a Custom Template according OC MVC-Programming-Standards. Therefore, it produces an error, informing you, that you have NOT, or not correctly, defined/declared the order_info Variable in the corresponding controller File.

Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Weiqunw » Sun Aug 23, 2015 5:23 pm

I did it like this in the admin/model/sale/order.php file, just like in the catalog/model/sale/order.php file.

The error is produced by this variable, still have to edit the controller file for it.
beside this i'm not getting any other errors.
<?php echo $text_date_added; ?> and $template->data['date_added'] = date($language->get('date_format_long'), strtotime($order_info['date_added']));
Last edited by Weiqunw on Mon Aug 24, 2015 8:04 pm, edited 1 time in total.

Active Member

Posts

Joined
Wed Jul 10, 2013 3:29 pm
Location - Arnhem, the Netherlands

Post by Weiqunw » Mon Aug 24, 2015 8:03 pm

Got the html mail working now including the status, link, order id etc.
No errors, so It seems ok.

Image

Active Member

Posts

Joined
Wed Jul 10, 2013 3:29 pm
Location - Arnhem, the Netherlands
Who is online

Users browsing this forum: No registered users and 13 guests