Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

After adding item to cart, Your Shopping cart is empty!


Urbluffingme

Recommended Posts

Posted

Hi.

I did a fresh install in a directory called "secureshop" and got the cart up. I have a php.ini in my cgi-bin directory to allow for register_globals to be set to "on." The host my client is using is Network Solutions. After adding item to cart, I get this in my cart: Your Shopping cart is empty! I have tried several different configure.php settings and nothing seems to work. I have posted my current configure settings. Can anybody help me with this?

 

 define('HTTP_SERVER', 'http://www.mysite.com); // 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', 'www.mysite.com/');
 define('HTTPS_COOKIE_DOMAIN', '/');
 define('HTTP_COOKIE_PATH', '/secureshop/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/secureshop/');
 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', '/data/.........................../htdocs/secureshop/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
 define('DB_SERVER', 'ip-address'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', 'username');
 define('DB_SERVER_PASSWORD', 'password');
 define('DB_DATABASE', 'db_name');
 define('USE_PCONNECT', 'true'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql')

 

This error occurs in both firefox and IE with all the privacy and cookie settings set to minimal security.

Obviously, these arent my db settings, but the real values I have these set to work.

Posted

Try removing the "/" after 'www.mysite.com/ in define('HTTP_COOKIE_DOMAIN', 'www.mysite.com/');

Posted
Try removing the "/" after 'www.mysite.com/ in define('HTTP_COOKIE_DOMAIN', 'www.mysite.com/');

 

THANKS! Not sure how I missed it 500 times, but THANKS AGAIN!!

Archived

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

×
×
  • Create New...