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

#   Problem with thumbnail in cart module and chechout

##

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

Less More

- Posts: 11
- Thank you received: 1
-
-

11 years 8 months ago -  11 years 8 months ago [\#192649](#192649) by [hahovec](/forum/user/35336-hahovec "View hahovec's Profile")  *[Problem with thumbnail in cart module and chechout](/forum/36-reports-statistics/875324-problem-with-thumbnail-in-cart-module-and-chechout#192649 "-- HikaShop version -- : 2.3.5  Show diferent thumbnail in cart module and checkout. In administration all pictures are with 0 in position.  Code for the thumbnails:")* was created by *[hahovec](/forum/user/35336-hahovec "View hahovec's Profile")*

-- HikaShop version -- : 2.3.5

Show diferent thumbnail in cart module and checkout. In administration all pictures are with 0 in position.

Code for the thumbnails: Code:

&lt;?php $image_options = array('default' =&gt; true,'forcesize'=&gt;$this-&gt;config-&gt;get('image_force_size',true),'scale'=&gt;$this-&gt;config-&gt;get('image_scale_mode','inside')); $img = $this-&gt;image-&gt;getThumbnail($row-&gt;images[0]-&gt;file_path, array('width' =&gt; $width, 'height' =&gt; $height), $image_options); if($img-&gt;success) { echo '&lt;img title="'.$this-&gt;escape(@$row-&gt;images[0]-&gt;file_description).'" alt="'.$this-&gt;escape(@$row-&gt;images[0]-&gt;file_name).'" src="'.$img-&gt;url.'"/&gt;'; } ?&gt;

- [ ![Untitled&#95;2015-03-01.png](/forum/attachment/22735) ](/forum/attachment/22735 "...2015-03-01.png") [ ](/forum/attachment/22735?download=1 "...2015-03-01.png")
- [ ![Untitled2.png](/forum/attachment/22736) ](/forum/attachment/22736 "Untitled2.png") [ ](/forum/attachment/22736?download=1 "Untitled2.png")

Last edit: 11 years 8 months ago by [Jerome](/forum/user/80-jerome "View Jerome's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84NzUzMjQtcHJvYmxlbS13aXRoLXRodW1ibmFpbC1pbi1jYXJ0LW1vZHVsZS1hbmQtY2hlY2hvdXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86363
- Thank you received: 14297
-
-

11 years 8 months ago [\#192768](#192768) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Problem with thumbnail in cart module and chechout](/forum/36-reports-statistics/875324-problem-with-thumbnail-in-cart-module-and-chechout#192768 "-- HikaShop version -- : 2.3.5  Show diferent thumbnail in cart module and checkout. In administration all pictures are with 0 in position.  Code for the thumbnails:")*

Hi,

In your products, you should set the order values of your images with numbers instead of 0s. The lower number will be the one used on both listings. If you have several images with the same lower number, you might get a different image used as the queries loading the data of the images from the database need to be done differently.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM2LXJlcG9ydHMtc3RhdGlzdGljcy84NzUzMjQtcHJvYmxlbS13aXRoLXRodW1ibmFpbC1pbi1jYXJ0LW1vZHVsZS1hbmQtY2hlY2hvdXQ/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) 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.049 seconds

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