Jump to content

[SOLVED] How do I get my product images in 'New Products' and 'Top Sellers' back to Prestashop's standard position and size?


Recommended Posts

Pictures attached below.

I noticed the change after I changed the 'Subcategories' image size in the BO so that it's a bit larger to show 6 Subcategories rather than 8.

I don't know how to keep my 'Subcategories' image size but change 'New Products' and 'Top Sellers' size to the standard measurements.

Help please. I go live in a couple days.

Thanks in advance.

27231_4YVW7gjuJEpuR53qovdp_t

27232_EwneSubjZ0ZXteE6OLAO_t

Link to comment
Share on other sites

You need to change the subcategory image size back to the size it was before, then create a new image size on the Preferences > Images tab just for the subcategory images, then edit the following lines 38-42 of category.tpl in your theme's directory:

{if $subcategory.id_image}
   <img src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium')}" alt="" />
{else}
   <img src="{$img_cat_dir}default-medium.jpg" alt="" />
{/if}



Change both 'medium' to the name of the image size you created.

Link to comment
Share on other sites

×
×
  • Create New...