Post by Arslan Ash » Sat Feb 13, 2021 6:58 pm

Hi Support.

My Opencart version is 3.0.3.2. I need your help about the Order confirmation email editing

1. I would like to add a "disclaimer text" on the bottom of the order confirmation email template.
However I try edit the "order_add.twig" file ( location: /catalog/view/theme/default/template/mail/) and put the <p> text</p> tag there but the system got no response of my changes and still showing the original confirmation email.

2. The order alert email too simpler to the shop owner, I want to have the same copy of the "order confirmation" as the customer received.
I edited the file "order_alert.twig" ( location: /catalog/view/theme/default/template/mail/), copy and page the same code as the "order_add.twig".
Unfortunately, the alert email content became the raw html code.

I would appreciate if you can help to solve those issues for me at your early convenience.

Many Thanks,
https://bookonboard.com/

Newbie

Posts

Joined
Sat Feb 13, 2021 6:52 pm

Post by mikeinterserv » Sat Feb 13, 2021 7:57 pm

This will send a cc of the original html order to the store email

In catalog>controller>mail>order.php

Find

Code: Select all

$mail->setTo($order_info['email']);
Replace with

Code: Select all

$mail->setTo($order_info['email'].','.$this->config->get('config_email'));
If you want I can make an OCMod that will do this and add the disclaimer, let me know or you can just edit the code

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by mikeinterserv » Sat Feb 13, 2021 9:05 pm

Here is an OCMod that will send a cc of the html order email to the store email address.
If you edit the install.xml you will see txt disclaimer ADDED after the standard text in the email.
Just change the TXT you want there and install the mod.
Tested on 3.0.3.2 and 3.0.3.6

Attachments

Last edited by mikeinterserv on Sun Feb 14, 2021 2:37 am, edited 1 time in total.

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by kirkhall » Sun Feb 14, 2021 2:34 am

Thanks mikeinterserv,
Might come in handy as I think management had me do that our live older version of OC which I am working on upgrading right now.

Active Member

Posts

Joined
Thu May 22, 2014 11:31 am
Who is online

Users browsing this forum: No registered users and 31 guests