Guest Posted March 5, 2005 Share Posted March 5, 2005 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 More sharing options...
theman Posted March 6, 2005 Share Posted March 6, 2005 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 <{POST_SNAPBACK}> <?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 More sharing options...
shellie Posted March 6, 2005 Share Posted March 6, 2005 i want to create my categories as top horizontal links and i tried that code and got nothing. :( any more suggestions? :D Link to comment Share on other sites More sharing options...
xciso Posted March 6, 2005 Share Posted March 6, 2005 I want to do the same. Come on guys!! how will we do? :) Link to comment Share on other sites More sharing options...
shellie Posted March 6, 2005 Share Posted March 6, 2005 >>BUMP<< please guys? o:) Link to comment Share on other sites More sharing options...
241 Posted March 6, 2005 Share Posted March 6, 2005 <?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 <{POST_SNAPBACK}> 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! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
shellie Posted March 6, 2005 Share Posted March 6, 2005 oooh! yea thank you so much! sorry about the bumping. :( i saw it on another topic and assumed it was okay. thanks though. Link to comment Share on other sites More sharing options...
xciso Posted March 6, 2005 Share Posted March 6, 2005 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.. Link to comment Share on other sites More sharing options...
Guest Posted March 6, 2005 Share Posted March 6, 2005 Ok guys, I got a response to this on another thread and it works great. Here is the link: http://www.oscommerce.com/forums/index.php?sho...16entry564416 It's much easier than making links to all of your categories and having to change them if you add/edit a category. Link to comment Share on other sites More sharing options...
shellie Posted March 6, 2005 Share Posted March 6, 2005 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.. <{POST_SNAPBACK}> 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.