Hi,
I'd like to know if it is possible to change the recipient address of the contact form. My client would like sales orders to go to sales@ and enquiries to go to enquiries@
Thanks
Tom
The correct way to achieve this is to create an additional database field, a new file in admin for the enquiries email to be entered and for contact.php and other files to be altered (suggest you put in a request for this to Daniel or Qphoria)blackwebs wrote:Hi,
I'd like to know if it is possible to change the recipient address of the contact form. My client would like sales orders to go to sales@ and enquiries to go to enquiries@
Thanks
Tom
BUT:
A quick workaround is as follows:
For Orders:
In the control panel:
Admin/System/General
Set E-mail to the email address you want for orders eg:
sales@whatever.com
For Enquiries:
Change code in file at approx line 19 of:
catalog/controller/information/contact.php
Change from:
Code: Select all
$mail->setTo($this->config->get('config_email'));
Code: Select all
$mail->setTo('enquiries@whatever.com');
If you upgrade Opencart version where contact.php is substituted you will have to do this again in the new file!
The solution above worked perfectly to hard code the recipients address into the controller file. We were having an issue where we simply were not getting the e-mail from the contact us form. All of the e-mail addresses were setup correctly so this was a last resort and worked as explained.
OC v1.5.6.4
OC v1.5.6.4
Who is online
Users browsing this forum: gunownergear and 10 guests