Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Syntax questions


cielorganic

Recommended Posts

This is, I hope a simple correct syntax question. I have three images on my index page and I want to turn them into images that when clicked go to a certain product category path.

 

Can anyone help me turn this:

 

<td class="pageHeading" align="left"><?php echo tep_image(DIR_WS_IMAGES . 'oclothes.jpg' ); ?></td>

 

into an image link to :

 

/catalog/index.php?cPath=17

 

Thanks in advance

Link to comment
Share on other sites

Maybe:

 

<td class="pageHeading" align="left"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT . '?cPath=17') . '">' . tep_image(DIR_WS_IMAGES . 'oclothes.jpg' , 'Click Me') . '</a>'; ?></td>

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Maybe:

 

<td class="pageHeading" align="left"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT . '?cPath=17') . '">' . tep_image(DIR_WS_IMAGES . 'oclothes.jpg' , 'Click Me') . '</a>'; ?></td>

:unsure:

Thank you so much for that bit o help. It worked like a charm. I guess you can tell I'm kinda new to all this. Hope someday I'll be able to answer these questions for others just as you did....

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...