How to Install OpenCart SSL Certificate?

How to Install OpenCart SSL Certificate?

Firstly, let's briefly explain to those who do not know OpenCart. OpenCart is ecommerce software built on open source PHP. Because it is open source, it allows OpenCart software to be developed with the knowledge of everybody. There are many e-commerce sites that use OpenCart because it is easy to use and develop.

An SSL certificate is an essential feature for e-commerce sites. Because in e-commerce sites, customers enter sensitive data such as credit cards. This data must be transferred safely and protected and for this you need to use SSL certificate. You can learn more about the SSL certificate from our What is an SSL Certificate? Why Use SSL? article.

Purchase SSL Certificate

Firstly you need to purchase an SSL Certificate and this certificate needs to be installed on your server. You may have information about the installation steps from our How to Install an SSL Certificate? article. If you have purchased one of our SSL certificate products, we have free installation support if you request.

OpenCart SSL Settings

After completing the SSL certificate installation, log in to the OpenCart admin panel and activate the Use SSL option under the Security heading under the System->Settings->Store Edit Button->Server tab.

After this setting, we will complete the SSL setup after changing the config.php and admin/config.php files in the main directory where OpenCart software is installed.

Open and Find in config.php file.

define('HTTPS_SERVER', '');

Replace with the following.

define('HTTPS_SERVER', '');

In the same way, open admin/config.php and find the following code.

define('HTTPS_SERVER', '');
define('HTTPS_CATALOG', '');

Replace with the following.

define('HTTPS_SERVER', '');
define('HTTPS_CATALOG', '');

Making All Links SSL

After the above steps, the SSL certificate will be activated on the pages where customer data is entered, such as payment, registration etc. on your e-commerce site. However, if you want to use SSL for all your links on your site, replace all of your addresses beginning with http:// with https:// in the above files.

As a final step, find the RewriteBase / code in your .htaccess file and add the following code.

RewriteCond %{HTTP_HOST} ^www\.yoursiteaddress\.com [NC]
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$$1 [R=301,L]

If you're using your site address with the www prefix, also change the www prefix in the above code. After all these changes, all links on our site will work as https.

You can purchase from our SSL Certificates products for secure e-commerce and benefit from our OpenCart free SSL setup support.

  • 21/08/2017
  • 216

How to Install WordPress SSL C..

WordPress SSL certificate install is one of the most complicated software among popular software. In addition to being difficult to switch, Do I lose..

  • 12/07/2017
  • 2032

OpenCart Turkish Full..

The latest version of OpenCart was released on 18.07.2017 with version number As of 22.07.2017 we also offer Turkish version for you. Now le..