Forums / Templates, Stylesheets, Page Layout / adding top link to prod listing bottom links

adding top link to prod listing bottom links

Views: 847

Results 1 to 3 of 3
3 Feb 2011, 1:09 AM
#1
igofresh avatar

igofresh

Zen Follower

Join Date:
Oct 2010
Posts:
149
Plugin Contributions:
0

adding top link to prod listing bottom links

I am trying to get a top of page link where the "1, 2, 3 , next" product listing links are at the bottom of each listing page.
I dont want the "back to top" link in the footer.
I found the area that I think is involved "tpl_modules_prouct_listing.php"
Is there an easy way to add some code here to re call the current page so customers can jump to the top of the same page?
https://www.igofresh.com (zc 1.3.9 f)

History does not repeat itself but it does rhyme - Mark Twain

3 Feb 2011, 2:25 AM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,185
Plugin Contributions:
0

Re: adding top link to prod listing bottom links

Ig,
includes/ templates/ your template/ templates / tpl_product_display_info.php

 > <a id="top"> quote                               

right after this piece of code in tpl_product_display_info.php
> <?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>
Then added this bit of code to my tpl_product_display_info.php where you want your link at the bottom to page up:

 > <a href="<?php echo zen_output_string_protected($_SERVER['REQUEST_URI']); ?>#top">Top of Page</a>

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

4 Feb 2011, 12:52 AM
#3
igofresh avatar

igofresh

Zen Follower

Join Date:
Oct 2010
Posts:
149
Plugin Contributions:
0

Re: adding top link to prod listing bottom links

Hardo,
Thanks for your reply.
Couple of questions as I am not the most advanced user.
I have a tpl_product_info_display.php rather than tpl_product_display_info.php. Im assuming thats just a typo?
I dont have tpl_product_info_display.php in MY_CUSTOM_TEMPLATE. Should I get it from template_default and put it in CUSTOM after modifying?
Will this give me a "top of page" link on my listing page or product info page? I am looking to add one to listing as my pages are pretty long

History does not repeat itself but it does rhyme - Mark Twain