Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Resize Thumbnail Size Of Gallery Images On Single Product Pages Rate Topic   - - - - -

  • tbirnseth
  • CS Cart Expert
  • Authorized Reseller
  • Join Date: 08-Nov 08
  • 12044 posts

Posted 26 October 2017 - 08:32 PM #21

Sure seems like it would be easier for cs-cart to have a thumbnail setting for "product alternate image thumbnails" and then just apply that setting where it needs to be in the templates (width and height).  It would take less than an hour for them to do it and build it into the cart than the countless hours merchants/developers spend doing it with hooks/overrides and updating forum posts to account for newer versions....  Maybe the keyword Imac will help!

EZ Merchant Solutions: Custom (USA based) B2B Development, Consulting, Development and Special Projects (get a quote here).
Commercial addons, payment methods and modifications to meet your business and operations needs.

  • al-bert
  • Advanced Member
  • Trial users
  • Join Date: 27-Jul 18
  • 60 posts

Posted 01 December 2018 - 03:05 AM #22


Hi again


I mention this on the last post. 1st part is for big picture templtate and second part for default


For the default template you need to activate your My changes addon and create in the addons folder of your theme  this path and file


responsive / templates / addons / my_changes / hooks / products / image_wrap.override.tpl


The  image_wrap.override.tpl should have these lines                  

 {if !$no_images}
                        <div class="ty-product-block__img cm-reload-{$product.product_id}" id="product_images_{$product.product_id}_update">

                            {assign var="discount_label" value="discount_label_`$obj_prefix``$obj_id`"}
                            {$smarty.capture.$discount_label nofilter}

                             {include file="views/products/components/product_images.tpl" product=$product show_detailed_link="Y"  thumbnails_size=85 image_width=$settings.Thumbnails.product_details_thumbnail_width image_height=$settings.Thumbnails.product_details_thumbnail_height}

You need to change the thumbnails_size=85 to whatever you like (its in the third line from the bottom somewhere in the middle)




Hello Dvsgr, thank you for sharing your coding experience with us newbies.


Do you know if this work on 4.8.2.SP2?

Yes, I enabled add-on, added file correctly increasing to size 100 (so that I could notice the change), and cleaned cache, but mini thumbnail stays the same size. I used the default template for regular responsive theme.

  • al-bert
  • Advanced Member
  • Trial users
  • Join Date: 27-Jul 18
  • 60 posts

Posted 01 December 2018 - 04:45 PM #23

Sorry guys, my bad :(


I was copying local my_changes directory to wrong path in server. 


All is working fine, thank you everyone!