Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Dynamic link from category name


tnfno

Recommended Posts

I am trying to make a link at the top of the category list that will open a .htm file that changes depending of the category name. I have got it all covered EXCEPT how to define the URL from the category name. I have tried something like this :

 

<?php echo '<a href= tep_get_categories_name($cPath) target="_self"><u>CLICK HERE</u></a>'; ?>

 

But it only gives me the name of the variable, not the content in the URL. I am also not sure how to add the .htm extention so i get the URL like:

 

mycategoryname.htm

 

when I click on the link.

 

Any help would be much appreciated !

 

 

Tim

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...