osCmax v2.5 User Manual
Results 1 to 5 of 5

Login causes cart to empty

This is a discussion on Login causes cart to empty within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; Quick Note: If this post is in the wrong place will Admin please correct? My problem is that I have ...

      
  1. #1
    New Member dragonkeeper1973's Avatar
    Join Date
    Jan 2007
    Posts
    14
    Rep Power
    0


    Question Login causes cart to empty

    Quick Note: If this post is in the wrong place will Admin please correct?

    My problem is that I have noticed as I have been trying to get my site put together that when testing I run into the following problem:

    As a Guest I browse what products I have posted and add one to the cart. After it goes to the cart I click checkout and it prompts to login or create a new account. When doing either it causes the cart to empty during the change from non-secure to secure.

    Is this a config issue or is there code that needs to be fixed?

    the store is located at osCMax v2.0 : DWM Computers On-Line Store
    if anyone would like to take a look at see what the problem could be.

    I am trying to get things up and going full swing now that I am fully licenced.


    Thank you for your help in advance.

  2. #2
    osCMax Development Team met00's Avatar
    Join Date
    Oct 2005
    Location
    wherever I happen to be at the moment
    Posts
    854
    Blog Entries
    2
    Rep Power
    26


    Default Re: Login causes cart to empty

    here is the problem

    cart: Cart Contents : osCMax v2.0

    login: https://secure.bluehost.com/~pcprogr...dadfc7f9a53d1a

    as you can see, you're not on the same host, so the osCid you are picking up is NOT from the host where there is a shopping cart associated to the osCid for the cart.

    Think of it this way. When you create the cart as a guest it creates and osCid which it passes back and forth as a cookie. This cookie is on the first host. When you move to the login on the HTTPS it is going to a different host, so it creates a cookie on that host. That cookie knows nothing about the cookie on the HTTP host, therefore the cart is empty now.

    Thus the cart contents are "dropped".

    The solution is to properly set up the HTTPS so that it is going through the correct host (https://shop.dwmcomputers.com/login.php). This should be done at the includes/configure.php level.
    so endith the lesson
    <think>sometimes I just sit's and thinks</think>
    "Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB

  3. #3
    New Member dragonkeeper1973's Avatar
    Join Date
    Jan 2007
    Posts
    14
    Rep Power
    0


    Default Re: Login causes cart to empty

    That's partly what I thought but I wasn't sure. Because of settings that are availe with my hoster, I have the HTTPS set the only way I can at this time ( I am working on getting things changed). Is there a temp work around that I could use untill changes with my host take place?

  4. #4
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: Login causes cart to empty

    You have a shared SSL which works fine with OSC - but you have to store session data in MYSQL (set in both your configure.php files) and not files and also try to set "force cookies" sessions in the admin

  5. #5
    New Member dragonkeeper1973's Avatar
    Join Date
    Jan 2007
    Posts
    14
    Rep Power
    0


    Default Re: Login causes cart to empty

    I've check the settings in the configure.php(both) have session data set to msql. I tried setting force cookie use and got a Cookie Usage warning page. I then double checked my browser setting and all was as it should be but still kept getting the Cookie Usage.

    Any other suggestions as to what it could be and ways that I could resolve it?

    I have thought about posting a note on the front page to the customer but how would that look? oh, the horror.

Similar Threads

  1. How to hide shopping cart when empty?
    By mjfontec in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 03-21-2007, 07:31 PM
  2. osCmax 2.0, new install empty cart
    By barrowj in forum osCmax v2 Installation issues
    Replies: 7
    Last Post: 06-23-2005, 08:51 AM
  3. shopping cart empty error
    By jasonabc in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 12-18-2004, 10:06 PM
  4. Empty cart on secure checkout
    By fragzilla in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 09-17-2003, 01:35 PM
  5. Shopping cart won't empty
    By judoka in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 07-14-2003, 01:07 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
  •