rekhis Posted July 12, 2005 Share Posted July 12, 2005 Under Tips & Tricks section of oscommerce.info, there is a topic (Add php Links for Regular Graphics 12 Jul 2005 [252]). The solution given is a php code. Which file should I be modifying to put this code? Thanks in advance ...Manjeet Link to comment Share on other sites More sharing options...
dburchm1 Posted July 12, 2005 Share Posted July 12, 2005 I would say you should post on that thread or at least post a link to the thread, so people know what you are talking about. Link to comment Share on other sites More sharing options...
rekhis Posted July 12, 2005 Author Share Posted July 12, 2005 I am sorry; the link is - http://www.oscommerce.info/kb/osCommerce/G..._and_Tricks/252 I would say you should post on that thread or at least post a link to the thread, so people know what you are talking about. <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Jack_mcs Posted July 12, 2005 Share Posted July 12, 2005 It depends on where the graphic is loacted. If it is in the left column, then edit includes/column_left.php. If it's only on the index pages, tehn edit index.php, and so on. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
dburchm1 Posted July 12, 2005 Share Posted July 12, 2005 Where do you want the graphic to be? It is just like a regular html link and the only part that is php is the tep_href_link('product_info.php', 'cPath=1&products_id=1') Which uses the tep_href_link function so that it adds the session id, You just put it where you want it to go just like you would an html link but use the whole thing <?php echo '<p><a href="' . tep_href_link('product_info.php', 'cPath=1&products_id=1') . '"><img src="images/graphic.jpg" alt="Graphic" name="../images/graphic" width="66" height="100" border="0" id="../images/graphic"></a></p>'; ?> Of course you have to change the name ot the graphic and the category and the product id in cPath=1&products_id=1 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.