Post by jrunique » Thu Mar 19, 2020 9:13 am

Open cart Version 3.0.3.2
Hello, I have a strange problem with my contact form. The email entered by the sender is replaced with my store email address. This is a new install. I have received a couple of new sales enquires however I'm unable to reply to them because the customers email has been overwritten with my own email address.
Thanks for any help you can provide.

New member

Posts

Joined
Mon Aug 15, 2016 1:47 pm

Post by letxobnav » Thu Mar 19, 2020 9:44 am

seems like the latest version of 3.0.3.2 is wrong there.
in catalog/controller/information/contact.php

change

Code: Select all

$mail->setFrom($this->config->get('config_email'));
to

Code: Select all

$mail->setFrom($this->request->post['email']);

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Expert Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by jrunique » Thu Mar 19, 2020 10:21 am

Thank you for your fast reply. I changed that line of code, however it didn't seem fix the problem. :(

New member

Posts

Joined
Mon Aug 15, 2016 1:47 pm

Post by sw!tch » Thu Mar 19, 2020 11:06 am

jrunique wrote:
Thu Mar 19, 2020 10:21 am
Thank you for your fast reply. I changed that line of code, however it didn't seem fix the problem. :(
Clear your modification cache.

Ensure you implemented correctly - https://github.com/opencart/opencart/co ... 796ce30967

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


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by jrunique » Thu Mar 19, 2020 11:16 am

I'm sorry, I forgot to clear vqmod/vqcache after clearing the modification cache. It is working okay now. Thanks everyone for your help.

New member

Posts

Joined
Mon Aug 15, 2016 1:47 pm

Post by paulfeakins » Fri Mar 20, 2020 6:56 pm

jrunique wrote:
Thu Mar 19, 2020 11:16 am
I'm sorry, I forgot to clear vqmod/vqcache

Image
https://www.antropy.co.uk/blog/how-to-c ... t-3-0-2-0/

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: No registered users and 61 guests