We recommend that you make sure that you have an active and functional SSL certificate on your server. If you need an SSL certificate, we recommend that you use one of the ssl certificates in our offer.

Enable SSL using the OpenCart administration panel

  1. Log in to the OpenCart administration panel
  2. From the menu on the left, go to System> Settings
  3. Choose the store and click on the edit icon
  4. Navigate to the Server tab> in the Security section check Use SSL to be Yes

Enable SSL from the config.php file located in the OpenCart directory

  1. Log in to the cPanel administration panel
  2. Access the File Manager and navigate to the directory where the OpenCart application was installed
  3. Edit the config.php file
  4. Check whether the lines of code under //HTTPS look similar to these:
define('HTTPS_SERVER', 'http://opencart.numedomeniu.tld/');
define('HTTPS_IMAGE', 'http://opencart.numedomeniu.tld/image/');

Edit in:

define('HTTPS_SERVER', 'https://opencart.numedomeniu.tld/');
define('HTTPS_IMAGE', 'https://opencart.numedomeniu.tld/image/');

5. Save the config.php file.

Enable SSL for Admin from the config.php file located in the OpenCart directory

  1. Log in to the cPanel administration panel
  2. Access the File Manager and navigate to the directory where the OpenCart application was installed in the /admin directory
  3. Edit the config.php file
  4. Check whether the lines of code under //HTTPS look similar to these:
define('HTTPS_SERVER', 'http://opencart.numedomeniu.tld/admin/');
define('HTTPS_CATALOG', 'http://opencart.numedomeniu.tld/');
define('HTTPS_IMAGE', 'http://opencart.numedomeniu.tld/image/')

Change to:

define('HTTPS_SERVER', 'https://opencart.numedomeniu.tld/admin/');
define('HTTPS_CATALOG', 'https://opencart.numedomeniu.tld/');
define('HTTPS_IMAGE', 'https://opencart.numedomeniu.tld/image/')

5. Save the config.php file.

 

If you encounter problems in applying the above instructions please contact us. HostX offers the best OpenCart web hosting service and can help you solve your problems.

Was this answer helpful? 0 Users Found This Useful (0 Votes)