Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Link text to Individual category ID


Recommended Posts

<?php echo '<p><a href="' . tep_href_link('product_info.php', 'cPath=1&products_id=1') . '"><img src="images/graphic.jpg" alt="Graphic" name="graphic_name" width="66" height="100" border="0" id="graphic_name"></a></p>'; ?>


well, i found this in the knowledge base, but i want it sligtly different i.e. instead of linking to indivdual product i want to link to individual category, with text as link. i have tried it but am not sure is it right can anybody confirm or edit it:


<?php echo '<a href="' . tep_href_link('index.php', 'cPath=1&products_id=1') . '">' . 'HEADER_TITLE_LOGOFF' . '</a>'; ?>



but i am worried about the text in bold there


1. should the "&" be "&"


2. it should be linked to category

Link to comment
Share on other sites

ok, guys i did it, but have another question , is it neceesary to startit with a href or can it be done by php echo itself, bcoz, i see that all the text info comes right from english.php , so will it be wrong under any case

Link to comment
Share on other sites


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

  • Create New...