Results 1 to 9 of 9

Add Item to Cart, authenticate, then deletes cart contents?

This is a discussion on Add Item to Cart, authenticate, then deletes cart contents? within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; Like most eCommerce sites, I don't login right away, I will add stuff to my cart, then login. When I ...

      
  1. #1
    Anonymous
    Guest


    Default Add Item to Cart, authenticate, then deletes cart contents?

    Like most eCommerce sites, I don't login right away, I will add stuff to my cart, then login. When I do it here, after I login, the cart is empty. What do I have to do to fix this?

    Thanks, Corey

  2. #2
    New Member
    Join Date
    Jul 2004
    Posts
    29
    Rep Power
    0


    Default

    This is a friendly bump, because I wasn't logged in before and I want to be notified if somebody replies

  3. #3
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    Check your ssl settings in the configure.php, and also make sure your sessions settings in the admin are correct for your ssl settings. Make sure the https cookie domain is correct.

    Shared SSL = You cannot have 'Force Cookies' on
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  4. #4
    Member
    Join Date
    Aug 2003
    Location
    Southampton UK
    Posts
    63
    Rep Power
    0


    Default

    Having the same problems with shared SSL.

  5. #5
    Member
    Join Date
    Aug 2003
    Location
    Southampton UK
    Posts
    63
    Rep Power
    0


    Default

    I'm sure the 'cart empty' issue is caused by the same problem which requires the customer to login a second time at the checkout even though they are already logged in. I've just setup two test stores using shared SSL in different directories on the same domain, one is osc standard the other is oscMax. I've been very careful to ensure that the settings in the catalog configure are identical apart from the directory name. Also in the Admin section under sessions all settings are set to False and the cookie dir is /tmp for both stores.

    I've created an account in both stores, logged in via https and added an item to the cart in both stores. On clicking the checkout button, osc goes straight to the delivery information page, oscMax goes to the login page. Somewhere there must be a differece in cookie or session handling between osc and oscMax?

  6. #6
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    There isn't a difference. MAX uses the exact cookie/session handling as MS2, but the base settings in the sessions section of the admin may be different. Check them.

    I have no issues using ssl, shared ssl at all. Both max and MS2 behave identically for me, no matter where I install. Do you have a link to see this in action?

    If you are losing the seesion, it is either a path/file problem or your sessions settings are not correct. Try storing your sessions in the database. That will eliminate physically losing the session, since it will be stored in the db. Then you can concentrate on the nuts and bolts.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  7. #7
    Member
    Join Date
    Aug 2003
    Location
    Southampton UK
    Posts
    63
    Rep Power
    0


    Default

    koltz, I hope I haven't hijacked your question, but I believe you are having the same issues I was and I think I've solved mine.

    msasek, I think you were absolutely right, it was my SSL settings. Since my last post I tried the site on another PC and the second login appears to have gone, so maybe that was a browser caching issue. I think the problem with my SSL settings was that I hadn't included the 'http://' in the cookie path. My settings now look like this:

    In catalog/configure.php:
    Code:
    define('HTTP_SERVER', 'http://my_domain_name.co.uk'); 
    define('HTTPS_SERVER', 'https://my_shared_ssl_domain.co.uk/~my_package_name'); 
    define('ENABLE_SSL', true); 
    define('HTTP_COOKIE_DOMAIN', 'http://my_domain_name.org.uk');
    define('HTTPS_COOKIE_DOMAIN', 'http://my_domain_name.org.uk');
    define('HTTP_COOKIE_PATH', '/');
    define('HTTPS_COOKIE_PATH', '/');
    NB: there is no www in front of my_domain_name, I don't know how vital that is.

  8. #8
    New Member
    Join Date
    Jul 2004
    Posts
    29
    Rep Power
    0


    Default

    No problem, I put it on the back burner trying to figure out MoPics which I did last night. I had 200 pics that needed to be moved and thumbed, found free software to do the thumbs, but I just decided not to rename the files with _big. Anyway, will check out my configure.php. Problem is I don't know if I have shared SSL or not. Does this mean shared with another store only or just in general? I am using e-smith which works great, but don't know what it does behind the scenes.

  9. #9
    New Member
    Join Date
    Jul 2004
    Posts
    29
    Rep Power
    0


    Default

    I had most of that configured correctly, here is the line that I needed to change:

    define('STORE_SESSIONS', '');

    I had mysql for a session instead of blank, deleted it and worked fine. Weird. Well got that working Now just mostly cosmetic and add more items and can advertise.

Similar Threads

  1. Remove total from 'cart contents' box
    By icecold in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 04-27-2006, 04:43 AM
  2. double item name in shopping cart
    By PerzianKabob in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 03-26-2005, 08:01 PM
  3. How to get item numbers to show in the CART?
    By beachbum2377 in forum osCommerce 2.2 Modification Help
    Replies: 4
    Last Post: 03-15-2005, 03:43 PM
  4. checkout says theres no item in cart when there is
    By humbags in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 07-18-2003, 01:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •