Totally Zenned
- Join Date:
- Apr 2010
- Posts:
- 900
- Plugin Contributions:
- 0
PHP Question: Adding href to Manufacturer image
Hello,
A while back I added my manufacturers' logos to product pages by inserting this code:
<!--bof: Mfg logo image --> <?php if ($check_image = zen_get_products_manufacturers_image((int)$_GET['products_id'])) { echo '<a class="manufacturer">' . zen_image(DIR_WS_IMAGES . $check_image) . '</a>' . "\n" ; } else { echo ' '; } ?> <!--eof: Mfg logo image -->
You can see it in action here:
http://2staging.apswittcosalesDOTcom/Fine-L-Kotetrade_SR_Silicon_Conformal_Coating_2102-12S_12_oz._Aerosol
Now I would now like to make that Techspray logo clickable, redirecting here:
http://2staging.apswittcosalesDOTcom/index.php?main_page=index&manufacturers_id=31
Here is an example of code that generates the href I want:
<a href="' . DIR_WS_CATALOG . 'index.php?main_page=index&manufacturers_id=' . $manufacturers->fields['manufacturers_id'] . '">';
I just can't figure out how to wrap my image.
Can someone help me, pretty please! :D