Setting up SSL protection for your shop

The setup procedure varies, depending on whether you have your own certificate or you use the shared one of your hosting server. The process requires to manually change the following files:

includes/configure.php admin/includes/configure.php

Note: The admin folder name may vary. It depends on your installation setup. Check the folders's structure for the exact name.

It is important to note that in case you are using word processing software, additional symbols will be added to your files, causing malfunction of your shop. To avoid this, please use simple text editors, such as Notepad.

Using a certificate for the specific domain name (your own private SSL certificate)

For the new configuration settings to be applied, you need to change the both files. To do that, please find the files, listed above, and open them with a simple text editor.

Locate the following lines of code:

includes/configure.php

define('HTTP_SERVER', 'http://www.yourdomainname.com');
define('HTTPS_SERVER', 'https://www.yourdomainname.com');
// secure webserver for admin? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL', false);

admin/includes/configure.php

define('HTTP_SERVER', 'http://www.yourdomainname.com');
define('HTTPS_SERVER', 'https://www.yourdomainname.com');
define('HTTP_CATALOG_SERVER', 'http://www.yourdomainname.com');
define('HTTPS_CATALOG_SERVER', 'https://www.yourdomainname.com');
// secure webserver for admin? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL', false);

Set your domain name in the appropriate slots, and replace false in the last row with true.

Again, whether you place www. in front of your domain name depends on the certificate you have purchased.

The SSL certificate can be purchased for "yourdomainname.com" and/or for "www.yourdomainname.com".

The SSL certificates offered by SiteGround are valid for both options.

Using a shared SSL certificate

Again, you need to open the files with a text editor. Change them as shown below:

includes/configure.php

define('HTTP_SERVER', 'http://www.yourdomainname.com');
define('HTTPS_SERVER', 'https://server.IP.address.here/~YOUR_USERNAME');
// secure webserver for admin? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL', true);

admin/includes/configure.php

define('HTTP_SERVER', 'http://www.yourdomainname.com');
define('HTTPS_SERVER', 'https://server.IP.address.here/~YOUR_USERNAME');
define('HTTP_CATALOG_SERVER', 'http://yourdomainname.com');
define('HTTPS_CATALOG_SERVER', 'https://server.IP.address.here/~YOUR_USERNAME');
// secure webserver for admin? Valid choices are 'true' or 'false' (including quotes).
define('ENABLE_SSL', true); // secure webserver for checkout procedure?

Disabling SSL usage

Locate the files and in the code segment modify the following line

define('ENABLE_SSL', true);
// secure webserver for checkout procedure?

change the word true to false. That would be enough to turn the encryption off for your store.

Zen Cart is a trademark of Zen Ventures, LLC. SiteGround is not affiliated with or endorsed by the Zen Cart Project or its trademark owners.