mhdiqbal3000 Posted March 21, 2015 Share Posted March 21, 2015 hi! I struggled hard but can't find anywhere else. Here in this forum there is one closed thread but the problem is still not solved. In Prestashop 1.6.0.13 category interface you have the option for adding category thumbnails and category main images separately. That's what I want to put the square small images as my category thumbnail and another one large image for the main image on my category page. Unfortunately, whenever I upload thumbnail image it do not appear on the website. Instead the reduced version of the main category image always displayed which is very annoying. I tried to upload only thumbnail image but that also didn't work, instead "No Image Available" shown. I also replaced a fresh copy of category.tpl but no progress. Please if someone help me as the blanks category images do not look nice and little bit confusing to the customers. 1 Link to comment Share on other sites More sharing options...
mhdiqbal3000 Posted March 22, 2015 Author Share Posted March 22, 2015 This is a serious matter. Why not anyone is responding? Am I alone in this regard? 1 Link to comment Share on other sites More sharing options...
tromas Posted March 24, 2015 Share Posted March 24, 2015 I have the same problem. Trying to fix it alone, but unfortunately without success 1 Link to comment Share on other sites More sharing options...
tromas Posted March 24, 2015 Share Posted March 24, 2015 Found it. In category.tpl in your theme change medium_default to 0_thumb in line (84) {if $subcategory.id_image} <img class="replace-2x" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, '0_thumb')|escape:'html':'UTF-8'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> 1 Link to comment Share on other sites More sharing options...
stevepack Posted March 27, 2015 Share Posted March 27, 2015 Ok, just to be clear. What I am HOPING to achieve are thumbnails of all my categories, when clicked I'd like to see the products in that category but no image on the top. To do this I assume I upload a thumbnail, and not upload an image file. But uploading a thumbnail seems to do nothing. I tried the fix above but it didn't seem to work. All I saw were broken image placeholders. 1 Link to comment Share on other sites More sharing options...
kamaaina Posted April 7, 2015 Share Posted April 7, 2015 I have the same issue anyone have a fix cannot find any info on this anywhere Link to comment Share on other sites More sharing options...
tromas Posted April 7, 2015 Share Posted April 7, 2015 Ok, just to be clear. What I am HOPING to achieve are thumbnails of all my categories, when clicked I'd like to see the products in that category but no image on the top. To do this I assume I upload a thumbnail, and not upload an image file. But uploading a thumbnail seems to do nothing. I tried the fix above but it didn't seem to work. All I saw were broken image placeholders. In this case - you have to do the chnage I wrote + there can be no text in title abot category Link to comment Share on other sites More sharing options...
smahnaqvi Posted January 25, 2016 Share Posted January 25, 2016 Found it. In category.tpl in your theme change medium_default to 0_thumb in line (84) {if $subcategory.id_image} <img class="replace-2x" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, '0_thumb')|escape:'html':'UTF-8'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> hey Tromos! it worked. Thanks Link to comment Share on other sites More sharing options...
mehtabali Posted October 16, 2016 Share Posted October 16, 2016 well this is not the solution but fixed my problem as per my theme design: i just used inline css <img src="{$link->getCatImageLink($subcategory->link_rewrite, $subcategory->id, $cat_img)|escape:'html'}" alt="{$subcategory->name|escape:'htmlall':'UTF-8'}" style="max-width:100%; min-height:200px;" />in this tag.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now