If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / All my links not going to top of page when clicked.

All my links not going to top of page when clicked.

Locked

Started by jackfarrel on 13 Oct 2009, 3:22 AM · Views: 2,432

Results 1 to 20 of 20
This thread is locked. New replies are disabled.
13 Oct 2009, 3:22 AM
#1
jackfarrel avatar

jackfarrel

New Zenner

Join Date:
Sep 2009
Posts:
12
Plugin Contributions:
0

Post #1 by jackfarrel

I really need some help here, I'm trying to figure out how to make all my links go back to the top of the page when you click them. EX: when you click "add to cart" if the "add to cart" button is at the bottom of the page, when you click it it will go to the checkout page but the page will be scrolled down, it does not go to the top of the page.
I need all my links to "Go to top" or my customers will think the page is not working.
Please help!

13 Oct 2009, 5:49 AM
#2
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

Post #2 by tino_schlegel

I think this is a browser issue. Doesnt have anything to do with zencart or your links. Are you sure you dont have a similar behaviour with other websites?

Try a different browser before you try to fix something!

13 Oct 2009, 6:48 AM
#3
muzz avatar

muzz

Totally Zenned

Join Date:
Mar 2009
Location:
Australia
Posts:
604
Plugin Contributions:
0

Post #3 by muzz

Test in a few browsers to see if a difference.

IE, Firefox, Chrome.

You can redirect to a particular section of a page but by default in Zen cart there isn't any scripting that does this.... thus as suggested above may be browser related.

A website link may help us with your issue.

That wasn't the plan!

16 Oct 2009, 5:31 PM
#4
jackfarrel avatar

jackfarrel

New Zenner

Join Date:
Sep 2009
Posts:
12
Plugin Contributions:
0

Post #4 by jackfarrel

I tried all browsers and it's the same, and even if it was a browser issue, ex: it works on firefox and not IE, I still have the issue to deal with. And it's really getting on my nerves, does anyone know how to get into the code for these ez pages or something, perhaps putting a script in there attaching it to all the links so it goes to the "top" of page when clicked.
ANy ideals?
Please help!!!!

18 Oct 2009, 8:23 PM
#5
jackfarrel avatar

jackfarrel

New Zenner

Join Date:
Sep 2009
Posts:
12
Plugin Contributions:
0

Post #5 by jackfarrel

Anyone, I still need help on this issue, can't figure it out :(

18 Oct 2009, 8:24 PM
#6
jackfarrel avatar

jackfarrel

New Zenner

Join Date:
Sep 2009
Posts:
12
Plugin Contributions:
0

Post #6 by jackfarrel

I really need some help here, I'm trying to figure out how to make all my links go back to the top of the page when you click them. EX: when you click "add to cart" if the "add to cart" button is at the bottom of the page, when you click it it will go to the checkout page but the page will be scrolled down, it does not go to the top of the page.
I need all my links to "Go to top" or my customers will think the page is not working.
Please help!

18 Oct 2009, 9:15 PM
#7
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Post #7 by clydejones

Jackfarrel:

I tried all browsers and it's the same, and even if it was a browser issue, ex: it works on firefox and not IE, I still have the issue to deal with. And it's really getting on my nerves, does anyone know how to get into the code for these ez pages or something, perhaps putting a script in there attaching it to all the links so it goes to the "top" of page when clicked.
ANy ideals?
Please help!!!!

Jackfarrel:

Anyone, I still need help on this issue, can't figure it out :(

Can you provide a URL for your site?

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

19 Oct 2009, 12:06 AM
#8
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

Post #8 by tino_schlegel

This shouldnt be a problem of zencart. Unless you have added javascript that sets the current screen to the bottom of the page. Try a different browser or post a link to ur website, so someone can see if this is happening for others.

19 Oct 2009, 2:13 AM
#10
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

Post #10 by tino_schlegel

Indeed. And, if you do not wish to share the url of your online shop because you want to keep it a secret, it doesnt matter where if it goes to top or bottom since no one will see it anyway.

Post a url so people can see the problem or do not post at all, please.

20 Oct 2009, 1:27 AM
#11
jackfarrel avatar

jackfarrel

New Zenner

Join Date:
Sep 2009
Posts:
12
Plugin Contributions:
0

Post #11 by jackfarrel

yes, please go to https://www.LightNgo.com
And when you click anything like the checkout button, or pretty much anything, it leaves you at the bottom of the page.

20 Oct 2009, 1:36 AM
#12
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Post #12 by clydejones

Jackfarrel:

yes, please go to https://www.LightNgo.com
And when you click anything like the checkout button, or pretty much anything, it leaves you at the bottom of the page.

Are you by any chance trying to run Zen Cart inside an iFrame configuration?

If so that would explain all of the validation errors on your site as well as the problem your are reporting.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

20 Oct 2009, 1:44 AM
#13
jackfarrel avatar

jackfarrel

New Zenner

Join Date:
Sep 2009
Posts:
12
Plugin Contributions:
0

Post #13 by jackfarrel

Yes I am, but the problem does not occur when clicking any links outside that frame, only when clicking links within the frame.

20 Oct 2009, 1:46 AM
#14
jackfarrel avatar

jackfarrel

New Zenner

Join Date:
Sep 2009
Posts:
12
Plugin Contributions:
0

Post #14 by jackfarrel

lol, not trying to keep it secret its: https://www.lightngo.com
I do have java script in there, not sure at what point it started not going to the top.

20 Oct 2009, 1:47 AM
#15
jackfarrel avatar

jackfarrel

New Zenner

Join Date:
Sep 2009
Posts:
12
Plugin Contributions:
0

Post #15 by jackfarrel

sorry for the double post, I thought I had posted the first post in the wrong category.

20 Oct 2009, 1:52 AM
#16
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Post #16 by clydejones

Jackfarrel:

Yes I am, but the problem does not occur when clicking any links outside that frame, only when clicking links within the frame.

do a search of the forum for more information on Zen Cart and iframes. You might find an answer in of those forum posts.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

20 Oct 2009, 1:54 AM
#17
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,758
Plugin Contributions:
0

Post #17 by Kim

Moderator's note - duplicate threads merged into one.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

20 Oct 2009, 4:00 AM
#18
jackfarrel avatar

jackfarrel

New Zenner

Join Date:
Sep 2009
Posts:
12
Plugin Contributions:
0

Post #18 by jackfarrel

Yes I discovered it is the iframe that's doing this, but I don't understand how without the iframe it brings the page to the top, and how it is unable to perform this action when it's in an iframe, to at least take it to the top of the iframe. When I load the iframe by its-self, it works fine. All links / checkout links bring it back to the top of the page. Please, any other solutions? I checked the forum and can't seem to find anything relating to this issue.

20 Oct 2009, 4:12 AM
#19
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,758
Plugin Contributions:
0

Post #19 by Kim

The problem is that iFrame can cause problems with sessions - You should not run Zen Cart in an iFrame

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

20 Oct 2009, 4:17 PM
#20
jackfarrel avatar

jackfarrel

New Zenner

Join Date:
Sep 2009
Posts:
12
Plugin Contributions:
0

Post #20 by jackfarrel

Ok, well, I agree, the problem is that I'm not real skilled with CSS as you can see, and basically all I need to do is drop the logo on the top, and all the menus that I made, into zen cart, but doing this.. I don't even know where to start!
I can easily add the entire thing to say... the main_page define_main_page.php problem is that it will put it below the zencart menu, then the second problem is that it does not make the global change, as soon as someone clicks a link, it changes to the original zencart with no header or interactive menu. I don't know how to make it global. *sigh
Also there is the problem of the header and menu re-loading each time a link is pressed. So it's like trading 2 problems for 3.

I hate frames to, but don't know how to do this any other way, it's like trading 1 problem for another.