Chat with us, powered by LiveChat

This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

How To Enable SSL In OpenCart Ecommerce Stores

February 22, 2018

3 Min Read
Reading Time: 3 minutes

SSL or Secure Sockets Layer has become increasingly important over the past few years. Its importance is warranted by the fact that Google gives preference to sites that use SSL on their search index. And the sites that are not equipped with SSL display a clear ‘not secure’ badge beside the URL. It has become essential for site owners to use SSL, not only for security purposes but for SEO rankings as well.

enable ssl opencart

And when we talk about OpenCart ecommerce stores, SSL can’t be ignored. Online stores have to deal with sensitive information such as customer credit card details and need to be visible to their niche.

In this post, I’ll show you how to enable SSL on OpenCart store easily by hosting my OpenCart site on Cloudways, a managed cloud hosting provider. Cloudways offers almost all the major features at the convenience of 1-Click, including the installation of OpenCart and SSL. Using Let’s Encrypt SSL, Cloudways provides SSL for free.

Enable SSL in Your Application

Once you’ve signed up at Cloudways and launched your OpenCart application, navigate to your application dashboard and click OpenCart SSL Certificate from the toolbar on the left. Here, you will be presented with a screen that allows you to enter your email and the domain name for which you wish to enable SSL.

Note that you can also add multiple domains directly from here, without having to go through any extra setup hurdles.

Enable SSL in OpenCart

Now, login to your OpenCart store as an admin by visiting From the toolbar on the left, navigate to System -> Settings. Here, click the edit button beside your store.

Once here, click the server tab at the top and find the Security subheading. Under this subheading, you will see an option to enable ‘Use SSL’. Select yes, and click save at the top of this page.

That’s it for your site, but you will have to make a few changes in your OpenCart config files before SSL is successfully installed.

Edit Config Files

Using your preferred FTP client, access your OpenCart store and find the /config.php file. Here, you’ll find a line similar to:

define('HTTPS_SERVER', '{your-website-domain}');

You will have to make sure that your website domain starts with HTTPS instead of HTTP. Save the file after making the necessary change.

Now navigate to the admin folder, where you’ll find another config.php file. Inside this file, you will have two lines like this:

define('HTTPS_SERVER', '{your-website-domain}');

define('HTTPS_CATALOG', '{your-website-domain}');

Similar to the previous step, make sure your website domain starts with HTTPS instead of HTTP in both of these lines and save the file.


That’s it! You’ve successfully enabled SSL on your OpenCart site. You can check whether Opencart SSL was successfully installed on your site by ensuring that a green padlock or a ‘secure’ badge appears beside the URL. If you have any questions, leave me a comment and I’ll get back to you.

Share your opinion in the comment section. COMMENT NOW

Share This Article

Convert Traffic into Buyers with Managed Ecommerce Hosting

See your business grow without worrying about server management!

Hamza Zia

Hamza is a Drupal Community Manager at Cloudways - A Managed Drupal Hosting Platform. He loves to write about Drupal and related topics. During his free time, he can be seen obsessing over Football, Cars, Android and Gaming.

Do you like what you read?

Get the Latest Updates

Share Your Feedback

Please insert Content

Thank you for your feedback!