Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Categories Links with anchor


Grupo Olímpicos

Recommended Posts

This is my website www.belipecasadoqueijo.com.br

As you will see i have a big header, every time i use some link on the categories menu, the page reloads on the header.

I created an Anchor named "top", if you try to access for example: http://belipecasadoqueijo.com.br/index.php?cPath=21_31_59#top

It works as i need, the page reloads where i need it too.

 

What i need to know is how to make all links on categories menu and products listing to link to the anchor "#top".

 

Can anyone help-me with this one?

Link to comment
Share on other sites

Whenever you create links you must ensure you use the tep_href_link function, otherwise you risk costumers getting logged out, loosing thier cart, etc etc

 

http://www.oscommerce.com/forums/topic/330479-what-is-the-oscsid-why-you-must-not-loose-it/

 

So to add a anchor reference to a link you do

<a href="<?php echo tep_href_link(FILENAME_DEFAULT,'cPath=21_31_59'); ?>#top">Top</a>

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

In osC 2.3.x the categories menu is from includes/modules/bm_categories.php

 

product listing is from includes/modules/product_listing.php but you seem to be using a template, so the writer could have moved things, you would be best asking them.

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...