Jump to content



Photo
- - - - -

Categories Links with anchor

categories

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1   Grupo Olímpicos

Grupo Olímpicos
  • Members
  • 8 posts

Posted 27 March 2012 - 12:52

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://belipecasadoq...th=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?

#2   spooks

spooks
  • Members
  • 7,017 posts

Posted 27 March 2012 - 13:06

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://forums.oscomm...t-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.

#3   Grupo Olímpicos

Grupo Olímpicos
  • Members
  • 8 posts

Posted 27 March 2012 - 14:19

OK, But how can I Put the Anchor Link to my default categories menu and product listing?
Wichh file has this links?

#4   spooks

spooks
  • Members
  • 7,017 posts

Posted 27 March 2012 - 14:41

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.

#5   Grupo Olímpicos

Grupo Olímpicos
  • Members
  • 8 posts

Posted 27 March 2012 - 15:48

OK, i'll do this!