Crop thumbnails for category view, but not for product page?

  • Posts: 40
  • Thank you received: 2
3 years 4 months ago #336682

-- HikaShop version -- : 4.4.4

I don't have the best thumbnails. They are of different sizes and aspect ratios. What I did is that I cropped the thumbnails. All in all this looks a little better, especially for the category overview.

What I want now is to keep the humbnails for the category overview cropped so it looks allright, but keep the aspect ratio fo the product pages so customers can see the entire picture in the thumbnail (not cropped).

Is this possible? If so, how do I do this?

What I do now is change the option in the main settings of hikashop under "Images" and this option changes thumbnails on the category page and the product pages.

Please Log in or Create an account to join the conversation.

  • Posts: 83402
  • Thank you received: 13496
  • MODERATOR
3 years 4 months ago #336686

Hi,

If you change the code:

$this->config->get('image_scale_mode','inside')
to:
'inside'
in the file show_block_img.php via the menu Display>Views, you'll be able to force the thumbnails to be in "keep ratio" mode, regardless of what is set in the setting of the HikaShop configuration.

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum