Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Creating category links in footer


Guest

Recommended Posts

What I want to do is add (not move) just the top level categories to the footer as a horizontal link bar. I can add them in there as HTML, but then the user loses all cookie information when they click on one of the links.

 

How do I go about adding these links in along with the" ?osCsid= " part?

 

Thanks

Link to comment
Share on other sites

What I want to do is add (not move) just the top level categories to the footer as a horizontal link bar. I can add them in there as HTML, but then the user loses all cookie information when they click on one of the links.

 

How do I go about adding these links in along with the" ?osCsid= " part?

 

Thanks

 

<?php echo '<a href="' . tep_href_link("index.php", "cPath=31") . '"' ?> </a>

 

that should work...jus change the cPath to whicever category u are refering to

Link to comment
Share on other sites

<?php echo '<a href="' . tep_href_link("index.php", "cPath=31") . '"' ?> </a>

 

that should work...jus change the cPath to whicever category u are refering to

 

the code is not complete

 

try

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=1_4') . '">Whatevername</a>'; ?>

 

PS. Bumping is not allowed in the forums

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Sorry if i bump to..

 

I have tryed now again but it dont work for me..

 

I can just se Whatevername.. but its no link..

 

did you tried replacing category ID 1_4 with your number into this:

 

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=1_4') . '">Whatevername</a>'; ?>

 

i did that and changed the whatevername and it worked. ;)

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...