For enabling the SSL option in OpenCart, you may need to amend two config files. One of them will be located in sites root folder ‘/home/$user/public_html/config.php’ and the other config.php file is in /admin.
♦ In /home/$user/public_html/config.php
// HTTPS
define(‘HTTPS_SERVER’, ‘httpss://www.example.com/‘);
define(‘HTTPS_IMAGE’, ‘httpss://www.example.com/image/‘);
♦ In /home/$user/public_html/admin/config.php
// HTTPS
define(
'HTTPS_SERVER'
,
'httpss://www.example.com/admin/'
);
define(
'HTTPS_CATALOG'
,
'httpss://www.example.com/'
);
define(
'HTTPS_IMAGE'
,
'httpss://www.example.com/image/'
);
♦ Log into your OpenCart site’s admin area.
♦ Go to “System -> Settings tab”.
♦ Click on ‘Edit’ button in setting tab.
♦ Open the “server” section.
♦ Change the “Use SSL” radio button to “Yes” and click on the save link