This article will explain how to set up your OsCommerce or Zen Cart shopping cart with either a shared or a dedicated SSL certificate. Dedicated SSL certificates must be purchased from us or another vendor and will show your domain name in the address bar, while our free shared SSL certificates will show our machine name with your username, in the format of https://secureXX.inmotionhosting.com/~userna5
These instructions are mainly aimed at OsCommerce, but the same settings are applied to Zen Cart, minus the COOKIE_DOMAIN options.
Shared SSL Setup
Locate your configure.php file, absolute to the location of your shopping cart. The file location starts at the root folder for your application and is then located at /includes/configure.php, so if you had set up the application at example.com/cart your configure.php file would be located at the following:
If the cart is installed at the main domain, such as example.com, then the file would be found at the following path:
Specifically, you’ll want to pay attention to these lines:
define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'example.com'); define('HTTPS_COOKIE_DOMAIN','secureXX.inmotionhosting.com/~userna5');
http://example.com’); // eg, http://localhost – should not be empty for productive servers
You’ll need to modify the HTTPS_SERVER, HTTPS_COOKIE_DOMAIN, and ENABLE_SSL fields with your account information. The format is as follows:
“secureXX” will represent the server your account is located on, so you will need to make sure the server number is correct. If you are not sure, please refer to your Welcome email or contact support.
“userna5” will represent your InMotion account username Once this information is saved, your cart will switch to the SSL server whenever a customer logs in or goes to checkout.
Dedicated SSL Setup
Dedicated SSL certificates are set up the same as the shared, only you use your domain rather than the machine name:
define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'example.com'); define('HTTPS_COOKIE_DOMAIN', 'example.com');