For most eCommerce websites, it is recommended to ensure that you have an SSL certificate installed for your domain. If you do not have a dedicated SSL installed properly, you may experience issues accessing your OpenCart 1.5 dashboard and the login/checkout pages of your store. Additionally, most payment processors such as Authorize.net will require you to purchase an SSL. You may want to purchase and install one prior to fully setting up your shopping cart.
Please see our tutorials if you need more information on what a SSL is and how to purchase one. Please keep in mind OpenCart does not support the use of the shared SSL certificate.
To enable SSL in OpenCart, there are three areas to edit: The System Settings in the OpenCart Dashboard, the config.php file in the directory where you installed OpenCart, and the config.php file in your OpenCart Admin folder.
Enabling SSL in the OpenCart 1.5 Dashboard
- Log into the OpenCart Dashboard
- Go to System > Settings
- Click on the Server tab
- Check the radio button to use SSL
Enabling SSL in the OpenCart 1.5 config.php file
- Log into cPanel and go to File Manager
- Navigate to your OpenCart installation directory
- Open (Edit or Code Editor) the configuration file (config.php)
- Look for the lines below // HTTPS that looks similar to this:
define('HTTPS_SERVER', 'https://opencart.inmotiontesting.com/');
define('HTTPS_IMAGE', 'https://opencart.inmotiontesting.com/image/');
- Edit the HTTPS settings to reflect your SSL URL path. For example:
define('HTTPS_SERVER', 'https://opencart.inmotiontesting.com/');
define('HTTPS_IMAGE', 'https://opencart.inmotiontesting.com/image/');
- Save changes and close the config.php file
Enabling SSL in the OpenCart 1.5 Admin config.php file
- Go to the Admin folder
- Open (Edit or Code Editor) the configuration file (config.php)
- Look for the lines below // HTTPS that looks similar to this:
define('HTTPS_SERVER', 'https://opencart.inmotiontesting.com/admin/');
define('HTTPS_CATALOG', 'https://opencart.inmotiontesting.com/');
define('HTTPS_IMAGE', 'https://opencart.inmotiontesting.com/image/');
- Edit the HTTPS settings to reflect your SSL URL path. For example:
define('HTTPS_SERVER', 'https://opencart.inmotiontesting.com/admin/');
define('HTTPS_CATALOG', 'https://opencart.inmotiontesting.com/');
define('HTTPS_IMAGE', 'https://opencart.inmotiontesting.com/image/');
- Save changes and close the config.php file
Now, anytime you login to your dashboard or a visitor purchases a product it will force the SSL for security purposes. If you need further assistance please feel free to ask a question on our support center.