Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shared Secure Certificate - Shopping Cart empties


charmed

Recommended Posts

Please help.

 

I am using a shared secure certificate and all is working GREAT, EXCEPT that when user adds items to cart and then, goes to check out, and the pages switch back over to shared secure certificate, items in cart are gone and cart is empty.

 

I know this is probably due to catalog/includes/configure.php set up, but I have searched all over the forum and tried change after change and cannot resolve this problem.

 

My site secure URL is:

 

https://michaelscustomrods.ixwebhosting.com/catalog/

 

Here is a test user you can use:

u: [email protected]

p: polka1

 

and here is my configure.php file as it is currently set:

 

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

define('HTTPS_SERVER', 'https://michaelscustomrodsproducts.ixwebhosting.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('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '');

define('HTTPS_COOKIE_PATH', '');

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

define('DIR_WS_HTTPS_CATALOG', '/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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));

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

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

 

// define our database connection

define('DB_SERVER', ''); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', '');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'osCommerce');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

 

THANK YOU FOR ANY HELP YOU CAN OFFER!!

Link to comment
Share on other sites

Hi Folks,

 

I just found the right answer thru trial and error:

 

define('HTTPS_COOKIE_DOMAIN', ''); -- I set this to https://michaelscustomrodsproducts.ixwebhosting.com

 

 

That was it!! (I think... :) ). I would certainly appreciate any obvious other things I am missing to set the Shared Secure Certificate paths correctly if anyone sees anything in the above set up that will come back to bite me later. Such as -- do I need to make changes to the admin configure.php file also??

 

Thanks all.

 

FYI I typed the Secure domain address wrong above - it's

 

https://michaelscustomrodsproducts.ixwebhosting.com/catalog/

 

Next time... maybe we'll just get our own Secure Certificate, seems a lot simpler from what I can glean from posts.

Link to comment
Share on other sites

OK, now I have a problem.

 

In the admin section-->

 

I can no longer add attributes to products. I can add new products and they display fine, and I can add new attributes. But, on the front end of the catalog, the new products have no attributes.

 

This was fine before the Secure Certificate changes to the configure.php files. Now what have I done! Are these two things related?

 

Please advise!!

Link to comment
Share on other sites

Looks like you are losing your session id:

 

Try this:

define('HTTP_SERVER', 'http://www.michaelscustomrods.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://michaelscustomrodsproducts.ixwebhosting.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.michaelscustomrods.com');
define('HTTPS_COOKIE_DOMAIN', 'michaelscustomrodsproducts.ixwebhosting.com');
define('HTTP_COOKIE_PATH', '');
define('HTTPS_COOKIE_PATH', '');
define('DIR_WS_HTTP_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...