[Skip to main content](#vessel-content)

#   Thumbnails not displaying on product page

##

- **[noisypenguin](/forum/user/4735-noisypenguin "View noisypenguin's Profile")**
- [![noisypenguin's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4735-noisypenguin "View noisypenguin's Profile") Topic Author
- [ Offline](/forum/user/4735-noisypenguin)

Less More

- Posts: 7
- Thank you received: 0
-
-

13 years 4 months ago [\#107692](#107692) by [noisypenguin](/forum/user/4735-noisypenguin "View noisypenguin's Profile")  *[Thumbnails not displaying on product page](/forum/4-how-to/83338-thumbnails-not-displaying-on-product-page#107692 "If I upload a product image that is not in the exact height / width ratio as set in the configuration &gt; images, then it does not show up on the page. I can click on it and the full size image is shown, just not the thumbnail.  If I inspect the code then I can see it is calling for an image in a directory thumbnail&#95;100x74, however the image is in directory thumbnail&#95;100x100, which is the default thumbnail size.  It appears the software automatically creates the thumbnail to the size set in the configuration, but the page is looking for the exact size thumbnail.  How do I fix this please.  Thanks for your help")* was created by *[noisypenguin](/forum/user/4735-noisypenguin "View noisypenguin's Profile")*

If I upload a product image that is not in the exact height / width ratio as set in the configuration &gt; images, then it does not show up on the page. I can click on it and the full size image is shown, just not the thumbnail.

If I inspect the code then I can see it is calling for an image in a directory thumbnail_100x74, however the image is in directory thumbnail_100x100, which is the default thumbnail size.

It appears the software automatically creates the thumbnail to the size set in the configuration, but the page is looking for the exact size thumbnail.

How do I fix this please.

Thanks for your help

- [ ![Screen&#95;Shot&#95;2013-06-05&#95;at&#95;00&#95;05&#95;19.png](/forum/attachment/10440) ](/forum/attachment/10440 "...t&#95;00&#95;05&#95;19.png") [ ](/forum/attachment/10440?download=1 "...t&#95;00&#95;05&#95;19.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgzMzM4LXRodW1ibmFpbHMtbm90LWRpc3BsYXlpbmctb24tcHJvZHVjdC1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86322
- Thank you received: 14281
-
-

13 years 4 months ago [\#107696](#107696) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Thumbnails not displaying on product page](/forum/4-how-to/83338-thumbnails-not-displaying-on-product-page#107696 "If I upload a product image that is not in the exact height / width ratio as set in the configuration &gt; images, then it does not show up on the page. I can click on it and the full size image is shown, just not the thumbnail.  If I inspect the code then I can see it is calling for an image in a directory thumbnail&#95;100x74, however the image is in directory thumbnail&#95;100x100, which is the default thumbnail size.  It appears the software automatically creates the thumbnail to the size set in the configuration, but the page is looking for the exact size thumbnail.  How do I fix this please.  Thanks for your help")*

That's because the customized view that you're using hasn't been made to work with anything else than images with the correct ratio as it was done for a very old version of HikaShop and that the code changed since then.

You would need to change the line: Code:

&lt;?php echo $this-&gt;image-&gt;display($image-&gt;file_path,true,$image-&gt;file_name,'id="hikashop_main_image" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle"','id="hikashop_main_image_link"'); ?&gt;

to: Code:

&lt;?php $height = $this-&gt;config-&gt;get('product_image_y'); $width = $this-&gt;config-&gt;get('product_image_x'); if(empty($height)) $height=$this-&gt;config-&gt;get('thumbnail_y'); if(empty($width)) $width=$this-&gt;config-&gt;get('thumbnail_x'); $divWidth=$width; $divHeight=$height; $this-&gt;image-&gt;checkSize($divWidth,$divHeight,$image); echo $this-&gt;image-&gt;display(@$image-&gt;file_path,true,@$image-&gt;file_name,'id="hikashop_main_image'.$variant_name.'" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle"','id="hikashop_main_image_link"', $width, $height); ?&gt;

The following user(s) said Thank You: [noisypenguin](/forum/user/4735-noisypenguin "View noisypenguin's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgzMzM4LXRodW1ibmFpbHMtbm90LWRpc3BsYXlpbmctb24tcHJvZHVjdC1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

- **[noisypenguin](/forum/user/4735-noisypenguin "View noisypenguin's Profile")**
- [![noisypenguin's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/4735-noisypenguin "View noisypenguin's Profile") Topic Author
- [ Offline](/forum/user/4735-noisypenguin)

Less More

- Posts: 7
- Thank you received: 0
-
-

13 years 4 months ago [\#107857](#107857) by [noisypenguin](/forum/user/4735-noisypenguin "View noisypenguin's Profile")  Replied by *[noisypenguin](/forum/user/4735-noisypenguin "View noisypenguin's Profile")* on topic *[Thumbnails not displaying on product page](/forum/4-how-to/83338-thumbnails-not-displaying-on-product-page#107857 "If I upload a product image that is not in the exact height / width ratio as set in the configuration &gt; images, then it does not show up on the page. I can click on it and the full size image is shown, just not the thumbnail.  If I inspect the code then I can see it is calling for an image in a directory thumbnail&#95;100x74, however the image is in directory thumbnail&#95;100x100, which is the default thumbnail size.  It appears the software automatically creates the thumbnail to the size set in the configuration, but the page is looking for the exact size thumbnail.  How do I fix this please.  Thanks for your help")*

Thank you

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzgzMzM4LXRodW1ibmFpbHMtbm90LWRpc3BsYXlpbmctb24tcHJvZHVjdC1wYWdlP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.061 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
