Jump to content



Latest News: (loading..)

- - - - -

Shopping cart empty after 'add item'


This topic has been archived. This means that you cannot reply to this topic.
7 replies to this topic

#-19   Bazil52

Bazil52
  • Members
  • 20 posts

Posted 12 March 2012 - 10:07 PM

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?

#-18   DunWeb

DunWeb

    The Censored One

  • Members
  • 12,728 posts

Posted 12 March 2012 - 10:28 PM

@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
:|: Was this post helpful ? Click the LIKE THIS button :|:

See my Profile (click here)

#-17   Bazil52

Bazil52
  • Members
  • 20 posts

Posted 12 March 2012 - 10:39 PM

Thanks Chris, that worked great!  I have spent hours trying to see figure it out.

#-16   Bazil52

Bazil52
  • Members
  • 20 posts

Posted 12 March 2012 - 10:48 PM

Spoke too soon, now when I click on Checkout my shopping cart is empty.  Where else do I need to change things?

#-15   DunWeb

DunWeb

    The Censored One

  • Members
  • 12,728 posts

Posted 12 March 2012 - 10:48 PM

@Bazil52

No problem Jerry, sometimes the solution is right in front of you and just needs a second set of eyes to see it.



Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

See my Profile (click here)

#-14   DunWeb

DunWeb

    The Censored One

  • Members
  • 12,728 posts

Posted 12 March 2012 - 11:58 PM

@Bazil52

Jerry,

Did you check the session settings in admin ?

configuration>> sessions>>  ensure the bottom two options are set to TRUE



Chris
:|: Was this post helpful ? Click the LIKE THIS button :|:

See my Profile (click here)

#-13   Bazil52

Bazil52
  • Members
  • 20 posts

Posted 13 March 2012 - 11:29 PM

Changed those two items but still says cart is empty when clicking on 'Checkout'.  Go back and click on cart contents and it does have the item.

#-12   Bazil52

Bazil52
  • Members
  • 20 posts

Posted 16 March 2012 - 03:10 AM

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.