{"id":56400,"date":"2015-10-26T07:18:46","date_gmt":"2015-10-26T11:18:46","guid":{"rendered":"http:\/\/www.templatemonster.com\/help\/?p=56400"},"modified":"2016-02-17T04:28:56","modified_gmt":"2016-02-17T09:28:56","slug":"opencart-2-x-how-to-enable-ssl","status":"publish","type":"post","link":"https:\/\/www.templatemonster.com\/help\/opencart-2-x-how-to-enable-ssl.html","title":{"rendered":"OpenCart 2.x. How to enable SSL"},"content":{"rendered":"<p>\r\n<p>This tutorial will show you how to enable SSL in OpenCart 2.x.<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=Y_iyf3FbAo0?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart 2.x. How to enable SSL<\/a><\/p>\r\n<p>SSL stands for Secure Sockets Layer and is a standard security technology used to encrypt the connection between the browser and the hosting server on which your website is hosted. A website having an SSL certificate is most commonly recognized by the https URL and the secured padlock in the client browser.<\/p>\r\n<ol>\r\n<li>\r\n<p>The first step is to purchase and install a SSL certificate on the hosting account.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Before you enable the SSL support in your OpenCart admin dashboard, you will need to edit the two configuration files of your OpenCart store. Both files are called config.php and they are located under the root directory of your OpenCart application and under the <strong>admin<\/strong> folder. You can edit your files either via your cPanel File Manager or by downloading them on your local computer via FTP and reupload them after the changes.<\/p>\r\n<\/li>\r\n<li>\r\n<p> After you found the files you need to locate the following section in both of your files:<\/p>\r\n<pre class=\"brush:php\">\r\n    \/\/ HTTPS\r\n    define('HTTPS_SERVER', 'http:\/\/yourdomain.com\/');\r\n  <\/pre>\r\n<p> Modify the line to include <strong>https<\/strong> instead of <strong>http<\/strong>:<\/p>\r\n<pre class=\"brush:php\">\r\n    \/\/ HTTPS\r\n    define('HTTPS_SERVER', 'https:\/\/yourdomain.com\/');\r\n  <\/pre>\r\n<p>When you have the correct https URL set for your OpenCart application, save the files and upload them back to your OpenCart installation if you are performing the changes locally on your computer. Remember to modify both the main <strong>config.php<\/strong> file and the <strong>admin<\/strong> folder <strong>config.php<\/strong>.<\/p>\r\n<\/li>\r\n<li>\r\n<p>Now you need to activate the SSL support via the OpenCart admin dashboard. You can do this by logging into your OpenCart 2 admin panel and navigating to the <strong>System->Settings<\/strong> menu. After that click <strong>Edit<\/strong> on your store and click the <strong>Server<\/strong> tab:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/10\/OpenCart-2.x.-How-to-enable-SSL-1.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2015\/10\/OpenCart-2.x.-How-to-enable-SSL-1-300x169.jpg\" alt=\"OpenCart 2.x. How to enable SSL-1\" width=\"300\" height=\"169\" class=\"aligncenter size-medium wp-image-56401\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/OpenCart-2.x.-How-to-enable-SSL-1-300x169.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/OpenCart-2.x.-How-to-enable-SSL-1-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/OpenCart-2.x.-How-to-enable-SSL-1.jpg 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\r\n<p>The first settings under the <strong>Server<\/strong> tab should be the <strong>Use SSL<\/strong> option. Click on the <strong>Yes<\/strong> radio button and save your settings via the save icon at the top right corner of your screen:<\/p>\r\n<p><a href=\"\/help\/wp-content\/uploads\/2015\/10\/OpenCart-2.x.-How-to-enable-SSL-2.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"\/help\/wp-content\/uploads\/2015\/10\/OpenCart-2.x.-How-to-enable-SSL-2-300x169.jpg\" alt=\"OpenCart 2.x. How to enable SSL-2\" width=\"300\" height=\"169\" class=\"aligncenter size-medium wp-image-56402\" srcset=\"https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/OpenCart-2.x.-How-to-enable-SSL-2-300x169.jpg 300w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/OpenCart-2.x.-How-to-enable-SSL-2-150x84.jpg 150w, https:\/\/www.templatemonster.com\/help\/wp-content\/uploads\/2015\/10\/OpenCart-2.x.-How-to-enable-SSL-2.jpg 1000w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\r\n  <\/li>\r\n<li>\r\n<p> Now your checkout, registration and other pages on which sensitive information is submitted will be accessible only via HTTPS.<\/p>\r\n<\/li>\r\n<\/ol>\r\n<p>Thank you for checking our tutorial. Now you know how to enable SSL in OpenCart 2.x.<\/p>\r\n<p>Feel free to check the detailed video tutorial below:<\/p>\r\n<p><a href=\"http:\/\/www.youtube.com\/watch?v=Y_iyf3FbAo0?width=1280&amp;height=720\" rel=\"prettyPhoto\">OpenCart 2.x. How to enable SSL<\/a><\/p>\r\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial will show you how to enable SSL in OpenCart 2.x.<\/p>\n","protected":false},"author":93,"featured_media":56405,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1156],"tags":[1297,1157,1079],"class_list":["post-56400","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-opencart-tutorials","tag-enable","tag-opencart-2","tag-ssl"],"_links":{"self":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/56400","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/users\/93"}],"replies":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/comments?post=56400"}],"version-history":[{"count":0,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/posts\/56400\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media\/56405"}],"wp:attachment":[{"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/media?parent=56400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/categories?post=56400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.templatemonster.com\/help\/wp-json\/wp\/v2\/tags?post=56400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}