Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Menu button Link


ortho

Recommended Posts

I making a navagation menu. Is there a better way to call this page instead of just using

 

<a herf=http://nolongerquiet.com/osCommerce/catalog/index.php?cPath=21><image scr=buttons/image.jpg height="#" width="#"></a>

 

I know that somehow this

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?>

 

can be changed to work i am just not sure how. Still learning everything. i did search for about an hour but didn't have any luck so decided i wolud post.

 

Thanks.

Link to comment
Share on other sites

Could you give us a little more information on what your trying to do.

 

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?>

 

That code you listed is for the header image. Where exactly are you wanting to place this menu?

Link to comment
Share on other sites

Dada1,

Thanks for your response.

Sorry about that. I think I might be making this way harder than it has to be. I am making a navagation menu across the top of the store for my different categories, such as "apparel", "music." I have buttons for each of these and want to link them appropriately. I thought I read somewhere on here that it is better to use the PHP code than the basic html code for this. I am working in the english\index.php file What do you think? If so than here is my basic code:

 

<a herf=http://nolongerquiet.com/osCommerce/catalog/index.php?cPath=21><image scr=buttons/apparel.gif></a>

 

I only put in the

<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'oscommerce.gif', 'osCommerce') . '</a>'; ?>

as an example of what I believe that it might look like however I may be way off on this one. I am not sure what to change and what to leave alone if this can be changed to work.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...