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

#   multiple images in cart.php

##

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

Less More

- Posts: 16
- Thank you received: 0
-
-

13 years 11 months ago [\#82920](#82920) by [Fontijn](/forum/user/4300-fontijn "View Fontijn's Profile")  *[multiple images in cart.php](/forum/4-how-to/76932-multiple-images-in-cart-php#82920 "Hi,  I made it so that checkout/cart.php shows one image  But i want it to show all the images that i assign to that product.  Thanks in advance.")* was created by *[Fontijn](/forum/user/4300-fontijn "View Fontijn's Profile")*

Hi,

I made it so that *checkout/cart.php* shows one image Code:

echo '&lt;img src="'.$this-&gt;image-&gt;uploadFolder_url.$image-&gt;file_path.'" alt="'.$image-&gt;file_name.'" id="hikashop_main_image" style="max-width: 250px;"/&gt;';

But i want it to show all the images that i assign to that product.

Thanks in advance.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2OTMyLW11bHRpcGxlLWltYWdlcy1pbi1jYXJ0LXBocD90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14325
-
-

13 years 11 months ago [\#82987](#82987) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[multiple images in cart.php](/forum/4-how-to/76932-multiple-images-in-cart-php#82987 "Hi,  I made it so that checkout/cart.php shows one image  But i want it to show all the images that i assign to that product.  Thanks in advance.")*

Hi,

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

use that code:
&lt;?php foreach($row-&gt;images as $image) echo $this-&gt;image-&gt;display($image-&gt;file_path,true,$image-&gt;file_name,'style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle"', '', $width, $height); ?&gt;

in the file 'cart' of the view "checkout" via the menu Display-&gt;Views.

The following user(s) said Thank You: [Fontijn](/forum/user/4300-fontijn "View Fontijn's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2OTMyLW11bHRpcGxlLWltYWdlcy1pbi1jYXJ0LXBocD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

- Posts: 16
- Thank you received: 0
-
-

13 years 11 months ago [\#83087](#83087) by [Fontijn](/forum/user/4300-fontijn "View Fontijn's Profile")  Replied by *[Fontijn](/forum/user/4300-fontijn "View Fontijn's Profile")* on topic *[multiple images in cart.php](/forum/4-how-to/76932-multiple-images-in-cart-php#83087 "Hi,  I made it so that checkout/cart.php shows one image  But i want it to show all the images that i assign to that product.  Thanks in advance.")*

thank's it is working now.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzc2OTMyLW11bHRpcGxlLWltYWdlcy1pbi1jYXJ0LXBocD90bXBsPW1hcmtkb3du) 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.056 seconds

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