Forums / Templates, Stylesheets, Page Layout / Login take me to home page?

Login take me to home page?

Locked

Started by chrisdrumm on 4 Jul 2006, 1:19 PM · Views: 3,308

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
4 Jul 2006, 1:19 PM
#1
chrisdrumm avatar

chrisdrumm

New Zenner

Join Date:
Jul 2005
Posts:
53
Plugin Contributions:
0

Login take me to home page?

I have found a few threads on this but none with any answers... After a customer logs in it takes them to the home page - from what I have read it should take them back to the last page they were viewing.

I have a fairly new installation of 1.3.0.2, and tha only mods I have installed so far are:

  • SuperOrders
  • Froogle Feeder
  • Google XML Site Map
  • Froogle File Genorator (which I don't use anymore & can uninstall)

I have also customized a few templates (mainly product pages)
but I am wondering where to start troubleshooting this error.

Thanks!

4 Jul 2006, 1:25 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Login take me to home page?

can you post a url...this is not normal behaviour as you know.

If you have used the override system correctly, look at your altered files that may be associated with this.
Last resort might be to re-upload the catalog files as there might have been something corrupt in a file. Use a good FTP client.

Zen-Venom Get Bitten

7 Jul 2006, 3:36 AM
#3
castylx avatar

castylx

New Zenner

Join Date:
Jul 2006
Posts:
12
Plugin Contributions:
0

Re: Login take me to home page?

I'm running into the exact same problem. I'll see if I can narrow my problem... please anyone post anything that solves this problem.

-- Fernando

7 Jul 2006, 6:31 PM
#4
chrisdrumm avatar

chrisdrumm

New Zenner

Join Date:
Jul 2005
Posts:
53
Plugin Contributions:
0

Re: Login take me to home page?

I disabled my custom template and reverted to the Zen Cart default with no change...

I tried looking at the tpl_login_default.php file to see if I can figure out where it picks up the previous page -- no luck yet...

It this info stored in the database, or in a cookie, or is it passed allong in the url...

I noted that I had a few mods installed, but they are all in the admin folder, so these shouldn't have anything to do with this, should they?

Again, thanks to anyone who can shed a little light...

13 Jul 2006, 10:19 PM
#6
chrisdrumm avatar

chrisdrumm

New Zenner

Join Date:
Jul 2005
Posts:
53
Plugin Contributions:
0

Re: Login take me to home page?

I found...

zen_back_link()

which is on the shopping cart page - It's the continue shopping button, which takes the user back to the last item they viewed... This does work on my site.

Do I need to add this to the login?

23 Sep 2006, 3:46 PM
#7
magicpants avatar

magicpants

Zen Follower

Join Date:
Aug 2005
Posts:
314
Plugin Contributions:
0

Re: Login take me to home page?

Anybody ever figure anything out regarding this issue? We have the same problem -- seems like a lot of people have had this 'return to home page' when logging in issue.

Wonder if there's a legitimate bug or configuration issue that could be tracked down.

Currently using ZEN CART v. 1.3.6

26 Sep 2006, 11:56 AM
#8
allthat avatar

allthat

New Zenner

Join Date:
Sep 2006
Posts:
22
Plugin Contributions:
0

Re: Login take me to home page?

I have this problem too. Also when you are in the shopping cart and hit continue shopping it takes you to the home page. I want it to take the customer back to where they were.

27 Sep 2006, 3:35 PM
#9
nykc avatar

nykc

New Zenner

Join Date:
Sep 2006
Location:
Toledo, OH.
Posts:
10
Plugin Contributions:
0

Re: Login take me to home page?

I am also experiencing similiar problem, i can successfully sign up for the site, and it says successful. I go to login and it says welcome guest! would you like to login? basically taking me back to the initial homepage. if i add to the shopping cart and go to checkout, i have to login, and once i do that i go back to home page and cart contents disappears. Basically i cant add products or go live until i get this matter resolved. i do have one test product out there. https://www.nykcsports.com i am using the nifty_zen template. any input would be helpful as i am getting very frustrated. :( :down: :bored: :cry:

28 Sep 2006, 5:02 PM
#10
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Login take me to home page?

To all:

Carefully, follow this as this is not an overrideable file:

FTP a copy of the includes/modules/pages/product_info/header_php.php file to you pc.

Now rename the host copy to header_php.old

Open the local file in an editor and add the following code in red:

 // This should be first line of the script:
  $zco_notifier->notify('NOTIFY_HEADER_START_PRODUCT_INFO');
  
  $_SESSION['navigation']->set_snapshot(); 
  require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));

  // This should be last line of the script:
  $zco_notifier->notify('NOTIFY_HEADER_END_PRODUCT_INFO');
?>

Save the edit, and upload back to your host.

This should correct this action

Zen-Venom Get Bitten

28 Sep 2006, 10:35 PM
#11
magicpants avatar

magicpants

Zen Follower

Join Date:
Aug 2005
Posts:
314
Plugin Contributions:
0

Re: Login take me to home page?

Thanks Kobra!

This has fixed this problem when the customer is on a product info page, but not if they're on a product listing page.

Is there any way to fix it so it takes them back to a product listing page?

Currently using ZEN CART v. 1.3.6

1 Oct 2006, 7:34 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Login take me to home page?

Try adding this to the bottom of /includes/init_includes/overrides/init_customer_auth.php:

if ($request_type == 'NONSSL')  $_SESSION['navigation']->set_snapshot();

I'm not convinced that this is the "best" solution, but it should be workable.

.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

1 Oct 2006, 10:30 PM
#13
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Login take me to home page?

Thank you DrByte!!!

Zen-Venom Get Bitten

8 Apr 2007, 9:54 PM
#14
rwclark avatar

rwclark

New Zenner

Join Date:
Mar 2007
Posts:
18
Plugin Contributions:
0

Re: Login take me to home page?

I was having this problem and the solution posted here fixed it for me. Is this going to be incorporated into the next update for ZenCart? It would be a good idea, I think.