Web training courses

Develop your digital skill set

Share

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 :)

Tom
by Tom

Tom, Technical Director at 18a, has a degree in Computing and Information Systems and 20 years of commercial coding experience building websites, applications and tools for government departments and businesses all over the world. It was during his third year at university whilst working in industry that he discovered his passion for the web and hasn't looked back since.

Would you like to give your digital knowledge a boost? Join our mailing list.