SuperCrank Posted October 8, 2004 Share Posted October 8, 2004 anyone have any tips on creating links so that the session stays with the customer from link to link. for example: I want to create a link that goes directly to an item, but I want to keep the session in the link. <?php echo '<a href="http://www.site.com/catalog/product_info.php/cPath/48_57/products_id/100">' . tep_image(DIR_WS_IMAGES . 'picture.gif', 'alt tag') . '</a>'; ?> so how do I code the path above so it will stay with the same session? thanks. Link to comment Share on other sites More sharing options...
Qihun Posted October 8, 2004 Share Posted October 8, 2004 Try to do like this <?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id='100') . '">' . tep_image(DIR_WS_IMAGES . 'picture.gif', 'alt tag') . '</a>'; ?> Link to comment Share on other sites More sharing options...
Qihun Posted October 8, 2004 Share Posted October 8, 2004 i made typo try this one <?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=100') . '">' . tep_image(DIR_WS_IMAGES . 'picture.gif', 'alt tag') . '</a>'; ?> Link to comment Share on other sites More sharing options...
SuperCrank Posted October 8, 2004 Author Share Posted October 8, 2004 works great thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.