Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Shopping cart empty after 'add item'


Bazil52

Recommended Posts

I cannot find an answer to this after trying several forum fixes. I am using osc 2.2ms2. I installed this on a windows server and had no problems but they didn't offer cURL so I did a clean install without ANY modifications on a Linux sever and I cannot get the cart to show items. Every other part of the store seems fine. Here is the configure.php entry:

 

// Define the webserver and path parameters

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

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

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

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

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

define('HTTP_COOKIE_DOMAIN', 'http://mydomain.com');

define('HTTPS_COOKIE_DOMAIN', 'https://mydomain.com');

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

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

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

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

define('DIR_WS_IMAGES', 'images/');

 

Does anyone know why the cart won't fill?

Link to comment
Share on other sites

@@Bazil52

 

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

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

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

define('HTTP_COOKIE_DOMAIN', 'http://mydomain.com');

define('HTTPS_COOKIE_DOMAIN', 'https://mydomain.com');

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

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

 

Should be:

 

define('HTTP_SERVER', 'http://www.mydomain.com/');

define('HTTPS_SERVER', 'https://www.mydomain.com/');

define('ENABLE_SSL', 'True'); //If you have an SSL installed. The correct entry is True or False

define('HTTP_COOKIE_DOMAIN', 'www.mydomain.com');

define('HTTPS_COOKIE_DOMAIN', 'www.mydomain.com');

define('HTTP_COOKIE_PATH', '/mystore/'); // If your store is in a sub-directory. if not, leave this as / only

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

 

 

Chris

Link to comment
Share on other sites

Does anyone have any ideas why when I click on "Checkout" it takes me back to the shopping_cart.php and says that my cart is empty. When I click on my cart, it shows the appropriate content. I could certainly use some help here. Thanks.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...