Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Your Shopping Cart is empty!


certify

Recommended Posts

generally if session ID is getting lost then this happens.

 

Make sure Your cookie settings are ok.

 

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

That should be fine (although if you are using file sessions, you may want to change the Session Directory, but you probably should be using mysql sessions anyway). The settings that are likely to be wrong would be the ones in the includes/configure.php file, e.g.

  define('HTTP_SERVER', ''); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // 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', '');
 define('DIR_WS_HTTPS_CATALOG', '');

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

these are the blank ones from prior to running the install. What do you have for these (you can leave off the rest of the configure.php file, especially the DB info)?

Always back up before making changes.

Link to comment
Share on other sites

Perform following checks:

1)The url that are getting generated do they have some oscsid.

1a)If Yes are these oscsid same before and after add to cart has been done.

 

If oscsid has changed then we can say session id is getting lost.

 

 

2)In case oscsid not in url then check cookies for oscsid values and

2a)If Yes are these oscsid same before and after add to cart has been done.

If oscsid has changed then we can say session id is getting lost.

 

 

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

  • 3 weeks later...
I am getting "Your Shopping Cart is empty!" from a new installation!

 

Can anybody point me to the right direction?

 

 

I had this very same problem, also with not saving a customer logon session with my system that I was testing on "localhost" on Apache server in Windows XP.

 

Changing the Cookie Domains and Cookie Paths to blank in the catalog\includes\configure.php file resolved this for me.

Link to comment
Share on other sites

If session ID is lost this generally happens.

 

Check the oscsid and make sure that it does not change.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...