Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Newbie Linking Question


Wild.Willy

Recommended Posts

Can some one help me with the linking syntax for the following:

 

I would like to make a link from an image on default.php pointing to a specific catagory. Something like -

 

<?php echo tep_href_link(CATAGORY_NAME_HERE,'', 'NONSSL'); ?><image></a>

 

I tried <a href="http://localhost/lp/catalog/default.php?cPath=8"> but I loose the session id.

 

Thanks

Willy

Link to comment
Share on other sites

The image is in the body of default.php. It seams when I hardcode an html link the session id changes, if someone has been surfing around and then returns to default.php and clicks on a hard coded link.

 

I guess I am trying to figure out how to do something like this;

 

<?php echo tep_href_link(FILENAME_DEFAULT, $cPath =8,'', 'NONSSL'); ?><image></a>

 

I understand how to difine a filename and then link to it, just not a specific product catagory.

 

Thanks again for your help

Willy

Link to comment
Share on other sites

WW,

 

<?php echo tep_href_link(FILENAME_DEFAULT, $cPath =8,'', 'NONSSL'); ?><image></a>

 

Try this..It works in my store:

<a href="<?php echo tep_href_link(FILENAME_DEFAULT, 'cPath=8', 'NONSSL'); ?>">test</a>

 

mjh

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...