Jump to content

Create link for product image?

Recommended Posts

What i am trying to do is to get the category image to show instead of the product image. what i have done for the category product list which works is this.


This only works if you are looking at all the products in a category but not if you search for a product ?

<a href="{$product.link|escape:'htmlall':'UTF-8'}" class="product_img_link" title="{$product.name|escape:'htmlall':'UTF-8'}">
<img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'large_default')}" style="width:140px!important;" alt="{$product.legend|escape:'htmlall':'UTF-8'}" />

i was wondering how do i get this to work all of the site ? how do i make it pull the category image ? like it is above but for the whole site ?


Thank you 

Link to comment
Share on other sites

  • Create New...