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

Is it possible to log user off at checkout_sucess page without redirect?

This is a discussion on Is it possible to log user off at checkout_sucess page without redirect? within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Is it possible to log user off at checkout_sucess page without any redirect? like when they land on that page ...

      
  1. #1
    Member
    Join Date
    Mar 2009
    Posts
    94
    Rep Power
    4


    Default Is it possible to log user off at checkout_sucess page without redirect?

    Is it possible to log user off at checkout_sucess page without any redirect? like when they land on that page its already logged off. I need this to use with google checkout since its always logged user on with a totally blank account when they return from Google.

  2. #2
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Default Re: Is it possible to log user off at checkout_sucess page without redirect?

    Can you provide more details about what you think is the issue with using Google Checkout when users return from payment. I am asking as Google Checkout is going into v2.5.

    Regards,
    pgmarshall
    _______________________________

  3. #3
    Member
    Join Date
    Mar 2009
    Posts
    94
    Rep Power
    4


    Default Re: Is it possible to log user off at checkout_sucess page without redirect?

    Well im not sure what the problem is, thats why im asking for a solution. But this is what i think, every time i get back from google im already logged in but when i click on my account, it's blank, the address, order details, everything is blank, its like its using a temporary session and blank info to be able to pass order data to admin but it doesn't clear up once its done and kept user logged in automatically. This confused the customer as when they click into my account, there is no record of the order, so I customized the gc_return file to display a message at the end to tell them to sign into their regular account or use the account details provided to them from Google if they are a new customer to be able to see the order status. If i can somehow make it not automatically logged in once they return from google, that should fix it.
    Last edited by ptt81; 11-07-2010 at 11:09 PM.

  4. #4
    Senior Member blackhawk's Avatar
    Join Date
    Aug 2009
    Location
    indiana
    Posts
    640
    Blog Entries
    1
    Rep Power
    27


    Default Re: Is it possible to log user off at checkout_sucess page without redirect?

    that sucks - is there a fix to this? blank accounts means no business for oscmax users.

  5. #5
    osCMax Developer

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


    Default Re: Is it possible to log user off at checkout_sucess page without redirect?

    Quote Originally Posted by blackhawk View Post
    that sucks - is there a fix to this? blank accounts means no business for oscmax users.
    This is a problem with his install only as far as I know. GC is not standard in v2.0 and it works fine in v2.5 Beta.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    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

  6. #6
    Member
    Join Date
    Mar 2009
    Posts
    94
    Rep Power
    4


    Default Re: Is it possible to log user off at checkout_sucess page without redirect?

    Quote Originally Posted by michael_s View Post
    This is a problem with his install only as far as I know. GC is not standard in v2.0 and it works fine in v2.5 Beta.
    I dont think its my install, i did a fresh install of OSCmax V2.025 and Google checkout v1.50 and the problem still exist, everything is fine, the order show up in admin, only problem is when user get back to the site and landed on either checkout_success or gc_return they are being logged into a blank account. Try it for yourself thru Sandbox see if you can replicate the problem. If i can somehow clear the session before the gc_return.tpl.php is loaded, may be then it will stay logged off. Is there a code to clear the session?
    Last edited by ptt81; 11-08-2010 at 01:36 PM.

  7. #7
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Default Re: Is it possible to log user off at checkout_sucess page without redirect?

    Have a look at
    tep_session_unregister

    regards,
    pgmarshall
    _______________________________

  8. #8
    Member
    Join Date
    Mar 2009
    Posts
    94
    Rep Power
    4


    Default Re: Is it possible to log user off at checkout_sucess page without redirect?

    tep_session_unregister will not work since it doesn't have any variable to clear the logged in session, can only clear payment, address, billing, comments, etc.

    The solution that works for me is to add the following codes to gc_return.php right before $content = CONTENT_GC_RETURN;

    tep_session_destroy();

    $cart->reset(true);

    This will take care of two problems:

    1. When customer click on my account as they returned from Google, they will be redirected to the login page regardless if they are an existing customer or a new customer. They can no longer get into the blank account.

    2. Empty the shopping cart (the items were still there for me before)

    If anyone has a better solution, please post. Hope that helps for anyone who has the same problem as I did.
    Last edited by ptt81; 11-11-2010 at 02:37 PM.

Similar Threads

  1. Index Redirect to Category Page
    By 20pictures in forum osCmax v2 Customization/Mods
    Replies: 18
    Last Post: 02-14-2010, 08:32 AM
  2. Add to cart without redirect to login page
    By aliha in forum osCMax v2 Features Discussion
    Replies: 10
    Last Post: 04-27-2009, 04:48 AM
  3. After account is created - user is not taken to payment page
    By Goweb in forum osCmax v2 Installation issues
    Replies: 2
    Last Post: 01-01-2006, 09:58 AM
  4. How to redirect page from www.store.com/catalog to just .com
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 4
    Last Post: 02-23-2004, 06:34 AM
  5. redirect user on arrival to correct language?
    By Typeface in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 10-30-2003, 11:55 AM

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
  •