Getting SSL HTTPS working in OpenCart v2.2.0.0

It took me some time to find out why SSL was not working. I had an installed security certificate but I was not getting the little green security lock icon and my checkout pages were not using HTTPS:// locations.

I edited config.php and admin/config.php
In both you just need to change the http://YOUR-URL to https://

// HTTPS
define('HTTPS_SERVER', 'https://YOUR-URL/admin/');
define('HTTPS_CATALOG', 'https://YOUR-URL/');

Then in settings you need to enable SSL

SSL_Settings OpenCart

STILL…. SSL was not working. After some digging I found there are 2 more files that need editing

system/config/catalog.php
system/config/admin.php

In both you need to change the following:

$_['site_ssl'] = false;

To:

$_['site_ssl'] = true;

That’s it!

Posted in Software Problems & Solutions

Leave a Reply

Your email address will not be published. Required fields are marked *

*