Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shopping cart empty during checkout (SSL)


jlaha

Recommended Posts

Hi. I recently enabled SSL for my site because it's about to go live. Now, when you go to my catalog, it's not in SSL (which is normal). Then, when you go to checkout, it goes into SSL mode like it's supposed to. When I fill out the billing information and submit it, it then leads me to the shopping cart page and says that it's empty! On rare occasions, I don't have this problem though. My site is using session variables. Here's my config file:

 

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://www.gotscooters.com/'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://lucky7.secure.powweb.com/'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
//define('HTTP_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_DOMAIN', 'www.gotscooters.com');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '');
 define('HTTPS_COOKIE_PATH', '');
 define('DIR_WS_HTTP_CATALOG', '');
 define('DIR_WS_HTTPS_CATALOG', '');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '');
 define('DIR_FS_CATALOG', '/www/g/o/gotscooters.com/htdocs/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
 define('DB_SERVER', 'mysql05.powweb.com'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', '');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', 'liquidwebhost');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

Link to comment
Share on other sites

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

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

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

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

//define('HTTP_COOKIE_DOMAIN', '');

?define('HTTP_COOKIE_DOMAIN', 'www.gotscooters.com');

?define('HTTPS_COOKIE_DOMAIN', 'lucky7.secure.powweb.com');

?define('HTTP_COOKIE_PATH', '/');

?define('HTTPS_COOKIE_PATH', '/');

?define('DIR_WS_HTTP_CATALOG', '/');

?define('DIR_WS_HTTPS_CATALOG', '/');

?define('DIR_WS_IMAGES', 'images/');

?define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

?define('DIR_WS_INCLUDES', 'includes/');

?define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

?define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

?define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

?define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

?define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

?define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

?define('DIR_FS_CATALOG', '');

?define('DIR_FS_CATALOG', '/www/g/o/gotscooters.com/htdocs/');

?define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

?define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

I guess there is something wrong with my sessions or something. I remember when first installing osCommerce, I had the option to use cookies or sessions. I chose sessions because I think that's what the server recommended. But, I guess I should try cookies now. What file do I have to configure to configure that? With the above config file changes, it still doesn't use cookies and I still get the same error.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...