How To Enable SSL (HTTPS) in OpenCart?

1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...
Enable SSL in OpenCart

Setting up SSL (HTTPS) on your OpenCart site is easy and important for keeping your website safe. SSL Certificate helps protect your customers’ information by safeguarding the communication between your – browsers and your server.

This guide shows you step-by-step how to turn on – SSL in OpenCart, making your site secure as well as trustworthy for the individuals who are visiting it.

What is OpenCart?

OpenCart is a straightforward and free tool (platform) for creating online stores. It’s built with PHP and uses a MySQL database. The OpenCart platform is flexible enough for both – small businesses just getting started with e-commerce and larger businesses looking for – a customizable and scalable solution.

How to Enable SSL (HTTPS) in OpenCart 1.5?

Enable SSL in OpenCart 1.5 Dashboard

Follow the steps mentioned below to enable HTTPS in OpenCart 1.5 Dashboard:

  • Enter your credentials to login into the OpenCart Dashboard.
  • Navigate to System > Settings.
  • Click on the Server tab.
  • Check the radio button to use SSL.

Enable SSL in OpenCart 1.5 config.php File

Follow the steps mentioned below to enable HTTPS in 1.5 config.php file:

  • Enter your credentials to login into the cPanel.
  • Navigate to File Manager > OpenCart installation directory.
  • Use a text editor, like – Notepad++ to open the config.php file.
  • Find these lines below – //HTTPS:
    • define(‘HTTPS_SERVER’, ‘https://opencart.inmotiontesting.com/’);
    • define(‘HTTPS_IMAGE’, ‘https://opencart.inmotiontesting.com/image/’);
  • Edit the HTTPS settings (as per your SSL URL path). For ex:
    • define(‘HTTPS_SERVER’, ‘https://opencart.inmotiontesting.com/’);
    • define(‘HTTPS_IMAGE’, ‘https://opencart.inmotiontesting.com/image/’);
  • Save the .config file.
  • Close the configuration file (config.php).

Enable SSL in OpenCart 1.5 Admin config.php File

Follow the steps mentioned below to enable HTTPS in 1.5 Admin config.php file:

  • Navigate to the Admin folder.
  • Use a text editor, like – Notepad++ to open the config.php file.
  • Find these lines below – //HTTPS:
    • define(‘HTTPS_SERVER’, ‘https://opencart.inmotiontesting.com/admin/’);
    • define(‘HTTPS_CATALOG’, ‘https://opencart.inmotiontesting.com/’);
    • define(‘HTTPS_IMAGE’, ‘https://opencart.inmotiontesting.com/image/’);
  • Edit the HTTPS settings (as per your SSL URL path). For ex:
    • define(‘HTTPS_SERVER’, ‘https://opencart.inmotiontesting.com/admin/’);
    • define(‘HTTPS_CATALOG’, ‘https://opencart.inmotiontesting.com/’);
    • define(‘HTTPS_IMAGE’, ‘https://opencart.inmotiontesting.com/image/’);
  • Save the .config file.
  • Close the configuration file (config.php).

How to Enable SSL (HTTPS) in OpenCart 2?

Follow the steps mentioned below to enable SSL (HTTPS) in OpenCert 2:

Step 1: Set HTTPS Rule in the Configuration (config.php) Files

  • Enter your credentials to login into your OpenCart 2 admin panel.
  • Navigate to the Settings menu.
  • From the Store list, click the edit icon placed next to your store name.
  • Navigate to the Server settings tab.
  • Under the Use SSL option, click the radio button in front of the Yes option.
  • Click on the save icon placed at the – top right corner of the screen.

Step 2: Set your HTTPS URL in Both the Config.php Files

  • Find the two config.php files. You’ll find one in the root directory of your OpenCart 2 application. And the other in the admin folder. They should appear like this-
  • [opencart-root-folder]/config.php
    • [opencart-root-folder]/admin/config.php
  • In each file, find the line that reads: $_[‘site_ssl’] = false;.
  • Change the above line to: $_[‘site_ssl’] = true;.
  • If you’re using FTP, save the files and re-upload them after doing the alterations to their original locations.
  • If you’re using the cPanel File Manager, just save the changes directly there.

Step 3: Alter the HTTPS Configurations in the admin/config & main config.php Files

define(‘HTTP_SERVER’, ‘http://bmitc.binhminhitc.com/’);

define(‘HTTPS_SERVER’, ‘http://bmitc.binhminhitc.com/’);

Step 4: Redirect the Site From HTTP to HTTPS Protocol by Using the .htaccess File

  • RewriteEngine On
  • RewriteBase /
  • RewriteCond %{HTTPS} off
  • RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}[L,R=301]

How to Enable SSL (HTTPS) in OpenCert 3?

Follow the steps mentioned below to enable SSL (HTTPS) in OpenCert 3:

  • Enter your credentials to login into the OpenCert Dashboard.
  • From the System list, click Settings.
  • Under the Store fieLd, find the name of your store listed.
  • Click the edit icon (pencil icon) placed adjacent to your store name.
  • The Settings page will appear.
  • In the Settings page, under the Edit Setting section, click on the Server tab.
  • Under the Security section, select the Yes radio button in front of the Use SSL option.
  • Click the Save icon placed at the top right.

Congratulations!! You have successfully enabled SSL (HTTPS) in OpenCart.

Cheap SSL Certificates
kb-postdetail-banner-1