Jump to content

Category Thumbnails not appearing prestashop 1.6.0.13


Recommended Posts

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.

  • Like 1
Link to comment
Share on other sites

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}" />

  • Like 1
Link to comment
Share on other sites

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. 

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

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

  • 9 months later...

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

  • 8 months later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...