Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / add extra back button on mainpages

add extra back button on mainpages

Views: 1,173

Results 1 to 11 of 11
30 Aug 2012, 1:37 PM
#1
elbert06 avatar

elbert06

New Zenner

Join Date:
Jan 2011
Location:
Westzaan, Netherlands
Posts:
28
Plugin Contributions:
0

add extra back button on mainpages

Hello Zenners,

I would like to add a back button on my main page shop. I know there is a navigation row at the top wich says were you are and how to get back. My customer wants a clear back button at the topright of the main page and categorie pages. Any ideas, I can't seem to find how to do this?

30 Aug 2012, 2:20 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: add extra back button on mainpages

First, where do you see a Back button on the main page linking to ?

31 Aug 2012, 1:25 PM
#3
elbert06 avatar

elbert06

New Zenner

Join Date:
Jan 2011
Location:
Westzaan, Netherlands
Posts:
28
Plugin Contributions:
0

Re: add extra back button on mainpages

Just back to the last page visited in the shop

31 Aug 2012, 1:41 PM
#4
elbert06 avatar

elbert06

New Zenner

Join Date:
Jan 2011
Location:
Westzaan, Netherlands
Posts:
28
Plugin Contributions:
0

Re: add extra back button on mainpages

Attachment 11052

A=navigation done by template
B=what customer wants as extra button (please don't ask why, i've tried her to rethink, but no, she wants that button!)

31 Aug 2012, 2:38 PM
#5
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: add extra back button on mainpages

I guess you could add the code from one of the pages that already has a back button (Contact Us, for example) to define_main_page.php. It looks like this: <div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>

31 Aug 2012, 2:38 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: add extra back button on mainpages

So what she wants is essentially the browser's back button permanently in the corner of the website. And she doesn't think her customers are going to be able or willing to use the browser button...

31 Aug 2012, 2:40 PM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: add extra back button on mainpages

I think you would want to add that code to tpl_header.php.

31 Aug 2012, 2:49 PM
#8
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: add extra back button on mainpages

gjh42:

I think you would want to add that code to tpl_header.php.

Right. My way wouldn't be nearly as useful :laugh:.

1 Sep 2012, 9:30 AM
#9
elbert06 avatar

elbert06

New Zenner

Join Date:
Jan 2011
Location:
Westzaan, Netherlands
Posts:
28
Plugin Contributions:
0

Re: add extra back button on mainpages

gjh42:

So what she wants is essentially the browser's back button permanently in the corner of the website. And she doesn't think her customers are going to be able or willing to use the browser button...

Yep, she herself is a digital disaster so she thinks everybody is like her (plain stupid) so she wants that button.....I know, I know, she doesn't take her websitevisitors serious

1 Sep 2012, 9:33 AM
#10
elbert06 avatar

elbert06

New Zenner

Join Date:
Jan 2011
Location:
Westzaan, Netherlands
Posts:
28
Plugin Contributions:
0

Re: add extra back button on mainpages

I wil give it a try in the header then it will be there all the time, no matter where you are on the site. Thanks, and I will keep you informed of the result

2 Sep 2012, 10:27 PM
#11
elbert06 avatar

elbert06

New Zenner

Join Date:
Jan 2011
Location:
Westzaan, Netherlands
Posts:
28
Plugin Contributions:
0

Re: add extra back button on mainpages

Hey, I got it worked out! I put the code in the headeras suggested, figured out where and yep there is now a bright red button saying TERUG (=back in dutch). I know there is at least one happy customer this monday morning when she looks at her website....

Thanks for your help!! All of you! :D