Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

using SSL


Spaceman-Spiff

Recommended Posts

Posted

hi,

 

i'm trying to figure out how to add SSL to the shopping cart or checkout page

i noticed that the option is already available, inside /includes/header.php, theres a piece of code that says:

<a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a>

 

but I can't find anywhere to define the SSL url

do i need to edit the FILENAME_CHECKOUT_SHIPPING value to the ssl url manually?

 

btw, we're using a subdomain ssl. the store is in www.domain.com/store and the SSL is in secure.domain.com

Posted

You would configure your SSL in /catalog/includes/configure.php

 

This is the file that contains all of the information regarding your database and cookies.

 

 

I used Shared SSL. I know how to configure for my provider, but I'm a little lost on how to explain how to configure for your provider.

 

define('HTTP_SERVER', 'http://www.yourdomain.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://secure.domain.com/yourdomain.com'); // eg, https://localhost - should not be empty for productive servers

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

define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com');

define('HTTPS_COOKIE_DOMAIN', 'secure.domain.com');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/yourdomain.com');

 

I think that should do it.

 

Just plug your info into those spots in configure.php and you are set. You can also use this same approach at setting up SSL for your /store/admin/includes/configure.php file.

 

hth,

 

Khim~

Do not meddle in the affairs of Dragons, for you are crunchy and good with ketchup :-)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...