Learn Opencart 3

Opencart is an E-Commerce platform with a great focus on usability and scalability!

• Last Updated: 01/09/2020
• ( 6 minutes reading )

How to enable SSL in OpenCart 3

Introduction

One of the most important components of online business is creating a trusted environment where your customers will feel confident in making purchases.SSL (Secure Socket Layer)  certificates create an encrypted connection and secure the data (personal information, payment details, etc.) transfer to your website. In this tutorial, we will guide you on how to enable SSL (HTTPS) on your OpenCart Online Store within a few simple steps.

 

Getting Started

Before you step into enabling SSL on your store note that you are expected to have an SSL certificate already installed on your domain name. Please note that enabling SSL on your OpenCart store without having a valid SSL certificate will lead to displaying security warnings and might affect the accessibility of the website. Therefore, please make sure to do that before you continue further. If you are HostArmada customer you are welcome to request the SSL installation by submitting a support ticket to our Technical Staff.

 

Step One: Editing the Config files

The first thing you will need to do is to edit OpenCart’s configuration files. There are two “config.php” files - one of them is located directly under the root directory of the application and the other one is located under the “admin” folder. You can edit the files using your favorite FTP Client or the “File Manager” integrated into your “cPanel account.

Please, open the “config.php” file located under the root folder. All you will need to do is change the protocol under the second //HTTPS line from http to https.

 

Editing the root config file

 

In case you would like to force your website to be accessible only over the secure HTTPS protocol, please make sure to change it under the first //HTTP line from http to https as well. Once you are ready, please do not forget to save the changes.

Now, please access the “admin” folder and locate the second “config.php” file. Once you open the file, please change both protocols under the //HTTPS line from http to https.

 

Editing the admin config file

 

In case you want to force your Admin Area to be accessible only over the secure HTTPS protocol, please change the protocols under the first //HTTP line from http to https as well. Once you are ready, please make sure to save the changes.

Now that you have successfully edited the configuration files, it is time to enable the SSL option in your OpenCat backend.

 

Step Two: Enabling the use of SSL

In order to enable the use of SSL, please log in to your OpenCart Admin Dashboard and navigate through the left menu bar to System > Settings. Once you are there, please select the website to edit by clicking on the blue “Edit” button next to it.

 

Selecting the website to edit

 

When you access the “Setting” page, please switch to the “Server” tab. Look for the “Use SSL” setting located under the “Security” section and tick “Yes”.

 

Enabling the SSL use

 

When you are ready, please do not forget to click on the blue “Save” button positioned at the upper-right corner of the page.

 

Saving the changes

 

Well done! Now you have successfully enabled SSL on your OpenCart Online Store. We will recommend you to go ahead and test the website in order to ensure everything functions properly. If you have experienced any difficulties or you have received certain error messages, please make sure to escalate the request to our Technical Support for further investigation and resolution.

 

 

...
Sebahat
Content Marketing Specialist

Sebahat is a young and bright woman who has become an invaluable part of our team. She started as a Customer Care Representative, mastering that role and, along the way, growing into a tech-savvy individual who is well acquainted with every support layer of the company. Driven by her aim to improve our customers’ experience constantly, she is committed to enhancing the extraordinary support we deliver.