zerodash Posted August 6, 2004 Posted August 6, 2004 Hello. I am adding my own custom html to replace the standard category boxes in the left colomn. I simply inserted html code into the includes/colomn_left.php file. No prob there. As per advice on these boards, I made my links to categories by using the following code for my link- in order to keep the session ID from resetting: <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=21') . '">Category 1</a>'; ?> However, when I try to make a link to a specific product listing, I tried to use this code: <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=21&products_id=28') . '">Product 1</a>'; ?> this produces identical results as the category link- displaying the entire category rather than the individual item. I presume the key lies in changing something else in this code, but I am at a loss. If someone could help me out it would be appreciated. Thanks :D
zerodash Posted August 6, 2004 Author Posted August 6, 2004 Solved my own problem.... Instead of this: <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=21&products_id=28') . '">Product 1</a>'; ?> It should be this: <?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=21&products_id=31') . '">Product 1</a>'; ?> The "FILENAME_PRODUCT_INFO" was the key.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.