Opencart Contact Form Bug with Stores Running Over SSL

31st Mar 2016
Opencart Contact Form Bug with Stores Running Over SSL

If you use Opencart and move your shop over to use a secure certificate you might find the contact form stops sending. This appears to be a bug with the contact form in Opencart using the http version of the URL rather than the https version as the form action. To fix this try the following:

Update line 80 of public_html/catalog/controller/information/contact.php from:

$data['action'] = $this->url->link('information/contact');

to:

$data['action'] = $this->url->link('information/contact', '', true);

Easy peasy when you know how :)

Leave a Comment

Submitting this form will create you an account on this site for submitting comments, raising disputes and other features as we add them. If you've already got an account you will receive an email asking you to confirm this comment is really by you!

Know a great web designer, developer or marketer?

Tell them to apply to join The Web Guild - it’s free for anyone who gets a company profile approved before the end of March! Read our How it Works page or sign up here!

<< Back to news