Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Formulating tep links


SuperCrank

Recommended Posts

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

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

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

Archived

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

×
×
  • Create New...