Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

cart auto emptys on user login


wbhendrix

Recommended Posts

Posted

so after someone comes to our site, adds product to their cart and clicks checkout, they are brought to the login or create an account screen... after doing one or the other their shopping cart is automatically deleted...

 

is this a common bug or a known way of fixing it?

 

thanks

 

PS - it only does this in firefox... IE seems cool

music. love. harmony.

  • 1 month later...
Posted

could be a cookie problem. What's your website? You could also post your catalog/includes/configure.php (minus the database login pieces) here for additional help.

 

-jared

Posted

Hey

 

I had the same problem, after months or everything working fine suddenly the carts emptied when going to checkout - my hosts must have changed something.

 

To fix it I changed the cookie path in my configure.php and seemed to sort it

 

Alex

Posted

thanks for your help guys... heres my config file... is everything the way it should be?

 

<?php
// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://travisfloors.com'); // eg, [url="http://localhost"]http://localhost[/url] - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://www.travisfloors.com/'); // eg, [url="https://localhost"]https://localhost[/url] - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'travisfloors.com');
 define('HTTPS_COOKIE_DOMAIN', 'travisfloors.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', '/home/content/w/m/h/wmhendrix/html/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

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

music. love. harmony.

Posted

change this:

define('HTTPS_COOKIE_PATH', '');

 

to this:

define('HTTPS_COOKIE_PATH', '/');

 

and this:

define('DIR_WS_HTTPS_CATALOG', '');

 

to this:

define('DIR_WS_HTTPS_CATALOG', '/');

  • 3 weeks later...
Posted

im still having problems with this error, does anyone know if they can fix it for a fee?

music. love. harmony.

Archived

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

×
×
  • Create New...