How do you edit the mail template / file / twigg, to add a "cc"( admin email address ) to the mail template / file in order to send the same information in the same format to the seller and buyer in version 3.0.3.6 ?, i have done it before in older versions, but the template is not the same in the newer versions.
You can't do that with the TWIG with 3..0.3.6.norspeed wrote: ↑Fri Jan 29, 2021 10:36 pmHow do you edit the mail template / file / twigg, to add a "cc"( admin email address ) to the mail template / file in order to send the same information in the same format to the seller and buyer in version 3.0.3.6 ?, i have done it before in older versions, but the template is not the same in the newer versions.
probably simplist way to try is this
Change line 270 to this
Code: Select all
Code: Select all
$mail->setTo($order_info['email'].','.$this->config->get('config_email'));
This has been edited and this line of code is in place of a less optimal piece of code.
Last edited by mikeinterserv on Sun Jan 31, 2021 6:46 am, edited 1 time in total.
Try the steps listed here - viewtopic.php?t=215662#p774260
Backup and learn how to recover before you make any changes!
Error logs.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
change line 270 to this
Code: Select all
$mail->setTo($order_info['email'].','.$this->config->get('config_email'));
Thats OK it works fine with both.
There is something wrong with your file
Just upload THIS one and you should be good
Attachments
It is still the same.
I am still getting the same admin e-mail.
---------------------
You have received an order.
Order ID: 94
Date Added: 30/01/2021
Order Status: Pending
Products
1x Petrol Generator 7500W Startup Power For Hire (7500W Startup Power) £650.00
Totals
Refundable Deposit: £50.00
Sub-Total: £650.00
Flat Delivery Rate: £10.00
Total: £710.00
I am still getting the same admin e-mail.
---------------------
You have received an order.
Order ID: 94
Date Added: 30/01/2021
Order Status: Pending
Products
1x Petrol Generator 7500W Startup Power For Hire (7500W Startup Power) £650.00
Totals
Refundable Deposit: £50.00
Sub-Total: £650.00
Flat Delivery Rate: £10.00
Total: £710.00
Have you refresh modifications, clear themes cache etc?norspeed wrote: ↑Sat Jan 30, 2021 10:44 pmIt is still the same.
I am still getting the same admin e-mail.
---------------------
You have received an order.
Order ID: 94
Date Added: 30/01/2021
Order Status: Pending
Products
1x Petrol Generator 7500W Startup Power For Hire (7500W Startup Power) £650.00
Totals
Refundable Deposit: £50.00
Sub-Total: £650.00
Flat Delivery Rate: £10.00
Total: £710.00
Got a burning question at 3 AM that even Google shrugs at? There’s a not-so-secret inbox that might just have your answer: khnaz35@gmail.com
Breathe in some nature while you're at it. It’s cheaper than therapy.
Feel free to sling a bear my way via PayPal @ khnaz35@gmail.com
You can turn off the standard email from email alerts in settings
You SHOULD now get I email to CUSTOMER HTML ORDER CONFIRMATION
and IDENTICAL HTML ORDER CONFIRMATION to the STORE ADDRESS
IF that file is NOT working there is a config issue of your EMAIL
I have tested it on 3 different servers
In MAIL parameters in shop setting add this
-f yourshopemail@yourdomain.com - MUST be the STORE EMAIL ADDRESS
WHAT HOSTING are you using
AND make sure your not using the SAME email for STORE and customer when testing
You SHOULD now get I email to CUSTOMER HTML ORDER CONFIRMATION
and IDENTICAL HTML ORDER CONFIRMATION to the STORE ADDRESS
IF that file is NOT working there is a config issue of your EMAIL
I have tested it on 3 different servers
In MAIL parameters in shop setting add this
-f yourshopemail@yourdomain.com - MUST be the STORE EMAIL ADDRESS
WHAT HOSTING are you using
AND make sure your not using the SAME email for STORE and customer when testing
No matter what e-mail address i use as a sender, or receiver, it still dosen`t work.
I have my own VPS, and many sites on it, so i am my own host.
I have worked with the OpenCart system many times in the past 10 years or so, and have probably edited more files that i have had hot dinners, and also the mail files before to make this work, but it has me beaten this time, it is probably just a simple error on my part, but i can`t find it.
I have my own VPS, and many sites on it, so i am my own host.
I have worked with the OpenCart system many times in the past 10 years or so, and have probably edited more files that i have had hot dinners, and also the mail files before to make this work, but it has me beaten this time, it is probably just a simple error on my part, but i can`t find it.
No worries it happens to all of us at some time or other.
Does it send the CUSTOMER confirmation when you do an order
We need to see the Complete original source for the email, in the To field there SHOULD be 2 email addresses separated by a comma
How are your emails sent through your own SMTP on the VPS or through your hosts mail system or a third party
Does it send the CUSTOMER confirmation when you do an order
We need to see the Complete original source for the email, in the To field there SHOULD be 2 email addresses separated by a comma
How are your emails sent through your own SMTP on the VPS or through your hosts mail system or a third party
Last edited by mikeinterserv on Sat Jan 30, 2021 11:48 pm, edited 1 time in total.
Look at the source of the customer email
Do you see 2 addresses in the To field
ie
To: youremail@gmail.com, shopemail@shopdomaincom
Subject: Your Shop - Order 21
MIME-Version: 1.0
Date: Sat, 30 Jan 2021 15:45:44 +0000
From: Your Shop <shopemail@shopdomaincom>
Reply-To: Your Shopt <shopemail@shopdomaincom>
X-Mailer: PHP/7.4.13
AND - what version of PHP are you on
You could delete that php code if you want, shorten the page
It dosent seem to make any difference what e-mail address i use, the site is http://generators-for-hire-iom.com no matter what i change the admin e-mail address to, ( i have even tried an "outside of the server / private " e-mail address ) it still wont send the same e-mail to that e-mail address, as sent to the customer e-mail.
But i cant understand why, something is wrong, but i dont know what.
But i cant understand why, something is wrong, but i dont know what.
Who is online
Users browsing this forum: Google [Bot] and 17 guests