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.

📣 Join the live AMA session with Adam Silverstein on open source and WordPress core! Register Now →

How To Enable SSL In OpenCart Ecommerce Stores

Updated on March 26, 2018

3 Min Read

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 www.yourdomain.com/admin. 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.

Conclusion

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

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.

×

Thankyou for Subscribing Us!

×

Webinar: How to Get 100% Scores on Core Web Vitals

Join Joe Williams & Aleksandar Savkovic on 29th of March, 2021.

Do you like what you read?

Get the Latest Updates

Share Your Feedback

Please insert Content

Thank you for your feedback!

Do you like what you read?

Get the Latest Updates

Share Your Feedback

Please insert Content

Thank you for your feedback!

Want to Experience the Cloudways Platform in Its Full Glory?

Take a FREE guided tour of Cloudways and see for yourself how easily you can manage your server & apps on the leading cloud-hosting platform.

Start my tour

CYBER WEEK SAVINGS

  • 0

    Days

  • 0

    Hours

  • 0

    Mints

  • 0

    Sec

GET OFFER

For 4 Months &
40 Free Migrations

For 4 Months &
40 Free Migrations

Upgrade Now