Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

"Your shopping cart is empty!" error after adding item


Recommended Posts

I have an ssl installation... since installing the SLL, customers can not add items to their cart and new users can not register on the "sign up" page. When they complete the form it just seems to refresh the create an account form.


When you add an item to the shopping cart it takes you to the cart and displays a "Your shopping cart is empty!" error .


I've seen other threads that ask folks for the config file, so I'll paste it here. I'm removing the website reference, but I can PM to anyone who might need it to help.


Also, the SSL is issued with the full "www.(domain).net" address, not just "(domain).net".






osCommerce, Open Source E-Commerce Solutions



Copyright © 2003 osCommerce


Released under the GNU General Public License



// Define the webserver and path parameters

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

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

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

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

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

define('HTTP_COOKIE_DOMAIN', 'www.(domain).net');

define('HTTPS_COOKIE_DOMAIN', 'www.(domain).net');

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

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

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

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

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/(domainlogin)/public_html/store/');

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



// define our database connection

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

define('DB_SERVER_USERNAME', '(real_db_login)');

define('DB_SERVER_PASSWORD', '(real_db_password)');

define('DB_DATABASE', '(real_db_name)');

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

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


define('DIR_FS_CACHE_XSELL', 'cache/');


Link to comment
Share on other sites

I'll also add the following information if it's helpful (it seemed to be part of a recommended solution to another person's similar problem)...


Configuration > Sessions


Title Value				  Action  
Session Directory			/tmp   
Force Cookie Use			 True   
Check SSL Session ID		 False   
Check User Agent			 False   
Check IP Address			 False   
Prevent Spider Sessions	  False   
Recreate Session			 False

Link to comment
Share on other sites

This keeps slipping to page two and it is rather urgent for me, so I'm really, really hoping there might be someone who can assist in trouble shooting this problem with me. I've tried to proactively provide the information that one would need to help.


If this is not the right information to provide, please also let me know and I will obtain whatever is necessary.



Link to comment
Share on other sites

I'm concenred that this problem isn't getting any responses. It seems not entirely uncommon and I'd like to be able to fix this without having to reinstall completely.

Link to comment
Share on other sites

  • 3 years later...

I'm having what sounds to be the same issue. My SSL is also issued for the www.mydom.com and not just mydomain.com. When trying to create an account it just takes you to an empty shopping cart. When I try to add a product to the cart, the cart is always empty. It's getting really frustrating :(


Anyone had this problem or know the solution?

Link to comment
Share on other sites


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

  • Create New...