Jump to content

[SOLVED] Default category information on product page


Recommended Posts

Hello, Im developing a site but Im stuck and I hope you can point me to the right direction, 

 

Products will have 2 or more categories, the default category will be a "price and distinction" where all products that have some kind of award will display its logo and place, What Im planning is the next thing : 

 

use the category image to display the award, and an extra field on product where we set the place and maybe some quotes, 

 

right now Im using 

<img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'catlogo')|escape:'html'}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage"  />

 

 

to get the category image, the problem comes when I come from any other category to the same product, it wont display the image I want. is there a way I can get always the default category image? 

 

I know I can get the default category id with $product->id_category_default, and I know we have 

getProductCategoriesFull

 

but I havent being able to get the images with those tools, can you point me to the right direction ?

Link to comment
Share on other sites

×
×
  • Create New...