Introduction
OpenCart is an exclusive open source shopping cart system. It is a safe e-commerce solution for e-commerce stores, which furnishes you to establish your own e-commerce business cost-effectively. It can be utilized on several web servers with PHP and MySQL. OpenCart is free software, specified in the GNU General Public License released in 2009. OpenCart carries an order management, in-built numerous payment entrances, lifetime free support, and free software updates. At OpenCart, customers do not need to sign up. They can access OpenCart by simply entering the minimal details for order process. It is an easy to use, elegant, and search engine friendly open source with an attractive interface. To start OpenCart you just have to install it, choose the template, add products and your online business is set up.
Current Scenario
At the present time, hackers are targeting e-commerce frequently therefore, it is necessary to have a sturdy security for any shopping cart system where customers are indulging in online transactions using debit or credit card. Such sensitive information should be maintained securely over the web.
- Note: It is in the interest of users that they should have installed SSL certificate on their browser. If a user does not have installed SSL on his website, this configuration will show issues while accessing Opencart dashboard and login and checkout page of online store.
In this tip, we will discuss about how to enable SSL security in OpenCart that is defined in three steps like setting in OpenCart Dashboard,
config.php file, and
config.php in
admin folder.
Enable SSL in the OpenCart Dashboard
- You have to Log into Dashboard of OpenCart.
- Go to System and click on Settings.
- Click on the Server tab.
- Check box the radio button for SSL.
Enable SSL in the OpenCart Directory config.php File
- Open control panel and log into it, then go to File Manager.
- Navigate to OpenCart installation directory.
- Browse “Admin” folder.
- Open the configuration file (config.php) and look for the below lines appeared as HTTPS:
define('HTTPS_SERVER', 'http://opencart.mydomain.com/');
define('HTTPS_IMAGE', 'http://opencart.mydomain.com/image/');
- Edit the HTTPS settings in the file for SSL URL path. Just add- “S” to HTTP:// to turn it HTTPS:// and click on Save changes.
define('HTTPS_SERVER', 'https://opencart.mydomain.com/');
define('HTTPS_IMAGE','https://opencart.mydomain.com/image/');
Enable SSL in the OpenCart Admin Folder config.php File
- Browse Admin folder and open the configuration file.
- Look for the below lines appeared as HTTPS:
define('HTTPS_SERVER', 'http://opencart.mydomain.com/admin/');
define('HTTPS_CATALOG', 'http://opencart.mydomain.com/');
define('HTTPS_IMAGE', 'http://opencart.mydomain.com/image/');
- Last, again edit the HTTPS settings in the file for SSL URL path. Just add- “S” to HTTP:// to turn it HTTPS://.
define('HTTPS_SERVER', 'https://opencart.mydomain.com/admin/');
define('HTTPS_CATALOG', 'https://opencart.mydomain.com/');
define('HTTPS_IMAGE', 'https://opencart.mydomain.com/image/');
- Save changes and close the config.php file.
Your SSL installation is complete in OpenCart. Now, whenever you login to dashboard or a visitor buys a product, it will influence the SSL for security purposes. SSL certificate assures online visitors that they are secure over the internet and provides confidence for online shopping. Visitors feel secure when any online shopping site is secured with SSL certificate. It creates a brand image in the customer’s mindset.