enable SSL (https) for osCommerce
So, this article is for enabling SSL (Secure Sockets Layer) for your osCommerce installation. Before you go ahead with this step you first need to get yourself a Private SSL Certificate. I advise you go with a private one rather than a shared one. A shared one will display another URL for the certificate and you may scare away some customers that way.
So, since we’re hosting homedecorr at siteground we decided to buy the certificate from them. We thought it would make things easier and we would avoid a few emails back and forth. Their current price is $74 for a year.

After this purchase is done maybe a wait a couple of days and then edit two files. Both files are named configure.php but they’re in different directories. And don’t confuse them with configuration.php.
The files you need to edit are admin/includes/configure.php and includes/configure.php.
Let’s start with admin/includes/configure.php. The lines you need to edit are at the top:
define('HTTP_SERVER', 'http://www.homedecorr.com');
define('HTTP_CATALOG_SERVER', 'http://www.homedecorr.com');
define('HTTPS_CATALOG_SERVER', 'http://www.homedecorr.com');
define('ENABLE_SSL_CATALOG', 'false');
You actually need only two changes in this chunk of code. Make that ‘false’ a ‘true’ and add an ’s’ for the HTTPS_CATALOG_SERVER URL.
define('HTTP_SERVER', 'http://www.homedecorr.com');
define('HTTP_CATALOG_SERVER', 'http://www.homedecorr.com');
define('HTTPS_CATALOG_SERVER', 'https://www.homedecorr.com');
define('ENABLE_SSL_CATALOG', 'true');
Now let’s edit includes/configure.php. Again the lines you need to edit are at the very top:
define('HTTP_SERVER', 'http://www.homedecorr.com');
define('HTTPS_SERVER', 'http://www.homedecorr.com');
define('ENABLE_SSL', false);
define('HTTP_COOKIE_DOMAIN', 'www.homedecorr.com');
define('HTTPS_COOKIE_DOMAIN', 'www.homedecorr.com');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');
define('DIR_WS_HTTP_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
After these changes reload your page and now every page where customers need to enter their information should behind SSL:

And that’s it.








