2.14.3.1.5. Additional HTTPS configuration in OpenCart 2.2

Attention!

Before performing actions, we strongly recommend create a site backup or save copies of modified files.

If you use OpenCart 2.2 and standard HTTPS configuration actions are not sufficient (for example, OpenCart admin panel does not work on site), try the following:

  1. Make sure that all actions from instruction Configure HTTPS in OpenCart have been completed.
  2. In system/config directory, edit four files — admin.php, catalog.php, default.php, install.php. In each of them, find this line:
    $_['site_ssl'] = false;

    And replace it with the following:

    $_['site_ssl'] = true;
  3. In catalog/controller/common directory, edit header.php file. Find this line in it:
    $server = $this->config->get('config_ssl');

    And replace it with the following:

    $server = str_replace('http:', 'https:', $this->config->get('config_url'));
  4. Check the site operation.
Content