Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

top of page in product info


Salvo

Recommended Posts

Posted

Hi,

 

I have some long info in some products and I have decide to put a (go to top of page) tag..

 

this sort <a href="#top">

 

this way which I know, and it works fine in default.php but in

product_info.php doesn't work, it send me to default.php #top

 

How do I make it to stay in the same page (product_info.php) and just go (TOP OF PAGE)?

 

thanks

 

Salvo

Posted

#top

 

But where is #top defined on default.php burt?

 

It looks like it might actaully work. I wish I was at home on my box to try this out on my store . .. . Actaully I just might leave my buddies house at 3:30am to go home and figure it out! lol :)

 

Basically what I was saying in my ^above reply, learn "HTML Anchors"

 

Sorry if I was so blunt . ..

Posted
<a href="<?php echo $PHP_SELF; ?>#top">

 

might work.

 

Hi,

this will turn to (product_info.php#top)

 

I need to go on top of the same page which is a product page

ie:

product_info.php?cPath=1_17&products_id=1

 

Thanks..

salvo

Posted
<a href="<?php echo $REQUEST_URI; ?>#top">top</a>

 

 

spot on, that is very good and nice......

 

Thanks Burt

 

 

Salvo

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...