Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Maintaining Session ID


Guest

Recommended Posts

I am tryng to link from an image directly to a product within the catalog, and maintain the session ID.

 

I should end up with the following:

 

catalog/product_info.php?products_id=103&osCsid=34457f5573420dc4e0be93612fb04263

 

But I actually end up with:

 

catalog/product_info.php?products_id=103?osCsid=34457f5573420dc4e0be93612fb04263

 

Thus losing the session ID. I have the following set:

 

filenames.php:

 

define('FILENAME_GIFT_CERTIFICATE', 'product_info.php?products_id=103');

 

miscellaneous box:

 

'<a href="' . tep_href_link(FILENAME_GIFT_CERTIFICATE) .'"><img src="images/gift_certificates_btn.gif" border="0" alt="Gift Certificates"></a>');

 

Any info as to where I am going wrong?

 

Thank you.

 

Rebecca

Link to comment
Share on other sites

You will have to do it like below and let tep_href_link() put the parameters on.

'<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=103') .'"><img src="images/gift_certificates_btn.gif" border="0" alt="Gift Certificates"></a>');

 

It worked!

 

Thank you very much for your help!!

 

Rebecca

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...