Post by Limon12 » Wed Mar 10, 2021 6:46 am

I was willing to edit reward points mail's twig. \admin\view\template\mail\reward.twig
Bold the {{ text_received }} for example
In cased like order_add.twig it is possible with a simple html code, but not in case of rewards mails.
Why is that ?
Can I somehow edit it?
Thank you for any idea.
Last edited by Limon12 on Mon Apr 12, 2021 4:59 pm, edited 2 times in total.



Sun Jan 10, 2021 7:05 am

Post by sw!tch » Wed Mar 10, 2021 7:36 am

Because that email is sent as plain text. To use html you would need to set the Content-Type to html.


Code: Select all

$mail->setText($this->load->view('mail/reward', $data));

Code: Select all

 $mail->setHtml($this->load->view('mail/reward', $data));
Then clear your twig cache.

Full Stack Web Developer :: Send a PM for Custom Work.
Backup and learn how to recover before you make any changes!

Active Member


Sat Apr 28, 2012 2:32 pm
Location - USA
Who is online

Users browsing this forum: thekrotek and 20 guests