Christian.Isai Posted December 20, 2013 Share Posted December 20, 2013 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 More sharing options...
Christian.Isai Posted December 20, 2013 Author Share Posted December 20, 2013 I end up using this as a turn around.. <img src="{$img_cat_dir}{$product->id_category_default}-medium_default.jpg"> hope it helps somebody 1 Link to comment Share on other sites More sharing options...
vekia Posted December 20, 2013 Share Posted December 20, 2013 thank you so much! this simple solution will be helpful for other merchants here, definitely i marked your topic as a solution and whole topic as [solved] with regards, Milos Link to comment Share on other sites More sharing options...
Recommended Posts