Tuesday, December 24, 2013

SSL Protection for Your Store in ZenCart

To verify whether you are going to use your own certificate or the shared hosting you can manually edit the following files:

“includes/ configure.php”

“admin/ includes/ configure.php”


To avoid possible problems using word processors as your editing software (E.g. some additional symbols) you should use common text editors like Notepad or Dreamweaver.


If you want to use your own private SSL certificate (the one for the specific domain name) you can do the editing within either of the files listed above. Please, find them and open with the simple text editor. Search for the following lines of the file code:


// Define the webserver and path parameters

define(‘HTTP_SERVER’, ‘http://www.yourdomain.com’);

define(‘HTTPS_SERVER’, ‘https://(www.)yourdomain.com’);

define(‘ENABLE_SSL’, false); // secure webserver for checkout procedure?

Insert your domain name appropriately, and change False to True in the last line. Note that placing www. in front of your domain name depends on the certificate that you have purchased. SSL certificate can be purchased either for “yourdomain.com” or for “www.yourdomain.com” so, please, be very attentive here.


Using a shared SSL certificate, again, you need to open “/includes/configure.php” and “/admin/includes/configure.php” files with a text editor. Change the code above to:


// Define the webserver and path parameters

define(‘HTTP_SERVER’, ‘http://www.YOUR_SHOP.com’);

define(‘HTTPS_SERVER’, ‘https://server.IP.address.here/~YOUR_USERNAME’);

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

To disable SSL usage, find the files “/includes/configure.php” and “/admin/includes/configure.php” and in the following code:


// Define the webserver and path parameters

define(‘HTTP_SERVER’, ‘http://www.YOUR_SHOP.com’);

define(‘HTTPS_SERVER’, ‘https://www.YOUR_SHOP.com’);

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


SSL Protection for Your Store in ZenCart

No comments:

Post a Comment