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

#   Change size of image on cart page

##

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

Less More

- Posts: 28
- Thank you received: 0
-
-

14 years 9 months ago [\#37576](#37576) by [david34ni](/forum/user/5775-david34ni "View david34ni's Profile")  *[Change size of image on cart page](/forum/2-general-talk-about-hikashop/37576-change-size-of-image-on-cart-page#37576 "I have looked at the code on the cart view for my theme but for the life of me i cant see how to change the thumbnail height and width i dont want to change the main thumbnail height and width as i...")* was created by *[david34ni](/forum/user/5775-david34ni "View david34ni's Profile")*

I have looked at the code on the cart view for my theme but for the life of me i cant see how to change the thumbnail height and width i dont want to change the main thumbnail height and width as i use those dimensions for different areas of the shop where can i change the image that is displayed beside the cart qty etc i tried adding height and width to the style but it had no effect why does the cart module miss the thumbnail width and height

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

Less More

- Posts: 86323
- Thank you received: 14282
-
-

14 years 9 months ago [\#37697](#37697) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Change size of image on cart page](/forum/2-general-talk-about-hikashop/37576-change-size-of-image-on-cart-page#37697 "I have looked at the code on the cart view for my theme but for the life of me i cant see how to change the thumbnail height and width i dont want to change the main thumbnail height and width as i...")*

You should edit the file "cart" of the view "checkout" of your frontend template via the menu Display-&gt;views and change the code: Code:

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"');

to: Code:

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"','',XXX,YYY);

Where XXX and YYY are the width and height for your thumbnails

The following user(s) said Thank You: [pina](/forum/user/7074-pina "View pina's Profile"), [santhis](/forum/user/29605-santhis "View santhis's Profile")

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

- **[gasoline](/forum/user/6454-gasoline "View gasoline's Profile")**
- [![gasoline's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6454.jpg)](/forum/user/6454-gasoline "View gasoline's Profile")
- [ Offline](/forum/user/6454-gasoline)
- Still searching ...

Less More

- Posts: 247
- Thank you received: 9
-
-
-
- [](https://gasoline.nl)
-

14 years 3 months ago [\#58797](#58797) by [gasoline](/forum/user/6454-gasoline "View gasoline's Profile")  Replied by *[gasoline](/forum/user/6454-gasoline "View gasoline's Profile")* on topic *[Re: Change size of image on cart page](/forum/2-general-talk-about-hikashop/37576-change-size-of-image-on-cart-page#58797 "I have looked at the code on the cart view for my theme but for the life of me i cant see how to change the thumbnail height and width i dont want to change the main thumbnail height and width as i...")*

Is there a Typo in the code??

I tried:
Code:

vertical-align:middle"','',58,70); ?&gt;

and
Code:

vertical-align:middle"','',58px,70px); ?&gt;

Both not working

---

I'll keep on trying!

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

Less More

- Posts: 86323
- Thank you received: 14282
-
-

14 years 3 months ago [\#58849](#58849) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Change size of image on cart page](/forum/2-general-talk-about-hikashop/37576-change-size-of-image-on-cart-page#58849 "I have looked at the code on the cart view for my theme but for the life of me i cant see how to change the thumbnail height and width i dont want to change the main thumbnail height and width as i...")*

The second one is definitely not ok. The first one should work.
If you don't see any difference, it's probably because you're editing the file for another template that the template you're using on your front end.

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

- **[gasoline](/forum/user/6454-gasoline "View gasoline's Profile")**
- [![gasoline's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6454.jpg)](/forum/user/6454-gasoline "View gasoline's Profile")
- [ Offline](/forum/user/6454-gasoline)
- Still searching ...

Less More

- Posts: 247
- Thank you received: 9
-
-
-
- [](https://gasoline.nl)
-

14 years 3 months ago [\#58900](#58900) by [gasoline](/forum/user/6454-gasoline "View gasoline's Profile")  Replied by *[gasoline](/forum/user/6454-gasoline "View gasoline's Profile")* on topic *[Re: Change size of image on cart page](/forum/2-general-talk-about-hikashop/37576-change-size-of-image-on-cart-page#58900 "I have looked at the code on the cart view for my theme but for the life of me i cant see how to change the thumbnail height and width i dont want to change the main thumbnail height and width as i...")*

> nicolas wrote: The second one is definitely not ok. The first one should work.
> If you don't see any difference, it's probably because you're editing the file for another template that the template you're using on your front end.

Ah, you'r right. It's working now.

Thanks.

---

I'll keep on trying!

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

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

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

Less More

- Posts: 84
- Thank you received: 0
-
-

12 years 6 months ago [\#151150](#151150) by [lwlbar](/forum/user/7236-lwlbar "View lwlbar's Profile")  Replied by *[lwlbar](/forum/user/7236-lwlbar "View lwlbar's Profile")* on topic *[Change size of image on cart page](/forum/2-general-talk-about-hikashop/37576-change-size-of-image-on-cart-page#151150 "I have looked at the code on the cart view for my theme but for the life of me i cant see how to change the thumbnail height and width i dont want to change the main thumbnail height and width as i...")*

Hi,

sorry to scotch onto this post, however it seems appropriate....

I am trying to achieve the same (reduced image size in cart) and am in the checkout/cart.php on the right template however things seem to have evolved since this post was created and the code edit suggested doesn't seem relevant anymore - gone responsive ![:)](/media/kunena/emoticons/3.png ":)"). Any clues as to how to achieve this?

kindly

Luke

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 6 months ago [\#151180](#151180) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Change size of image on cart page](/forum/2-general-talk-about-hikashop/37576-change-size-of-image-on-cart-page#151180 "I have looked at the code on the cart view for my theme but for the life of me i cant see how to change the thumbnail height and width i dont want to change the main thumbnail height and width as i...")*

Hello Luke,
A solution can be to use some [ CSS](http://www.hikashop.com/support/153-customize-the-display.html) code to reduce the product images through your checkout cart.

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

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

Less More

- Posts: 846
- Thank you received: 92
-
-

12 years 6 months ago [\#151956](#151956) by [lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")  Replied by *[lionel75](/forum/user/11856-lionel75 "View lionel75's Profile")* on topic *[Change size of image on cart page](/forum/2-general-talk-about-hikashop/37576-change-size-of-image-on-cart-page#151956 "I have looked at the code on the cart view for my theme but for the life of me i cant see how to change the thumbnail height and width i dont want to change the main thumbnail height and width as i...")*

Hi
have you got an url to the web page issue ?

Regard's

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

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

Less More

- Posts: 56
- Thank you received: 0
-
-

12 years 6 days ago [\#177233](#177233) by [nippyzap](/forum/user/900-nippyzap "View nippyzap's Profile")  Replied by *[nippyzap](/forum/user/900-nippyzap "View nippyzap's Profile")* on topic *[Change size of image on cart page](/forum/2-general-talk-about-hikashop/37576-change-size-of-image-on-cart-page#177233 "I have looked at the code on the cart view for my theme but for the life of me i cant see how to change the thumbnail height and width i dont want to change the main thumbnail height and width as i...")*

I have this same issue for version 2.3.4. Where would I need to put new css? and what would the css look like to do this?

Regards

Martyn

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

Less More

- Posts: 86323
- Thank you received: 14282
-
-

12 years 5 days ago [\#177253](#177253) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Change size of image on cart page](/forum/2-general-talk-about-hikashop/37576-change-size-of-image-on-cart-page#177253 "I have looked at the code on the cart view for my theme but for the life of me i cant see how to change the thumbnail height and width i dont want to change the main thumbnail height and width as i...")*

Hi,

On which area do you want to change the images size ?
The cart display page ? The checkout cart view ? The HikaShop cart module ?
On the checkout, it's that CSS you can add:
.hikashop_product_checkout_cart_image{ width: 50px !important; height: 50px !important; }

Mohamed already posted a link of the documentation explaining how to add such CSS in HikaShop:
[ www.hikashop.com/support/153-customize-the-display.html](http://www.hikashop.com/support/153-customize-the-display.html)

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

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

Less More

- Posts: 56
- Thank you received: 0
-
-

12 years 5 days ago [\#177356](#177356) by [nippyzap](/forum/user/900-nippyzap "View nippyzap's Profile")  Replied by *[nippyzap](/forum/user/900-nippyzap "View nippyzap's Profile")* on topic *[Change size of image on cart page](/forum/2-general-talk-about-hikashop/37576-change-size-of-image-on-cart-page#177356 "I have looked at the code on the cart view for my theme but for the life of me i cant see how to change the thumbnail height and width i dont want to change the main thumbnail height and width as i...")*

Hi Nicolas,

Thank you for the reply, I had managed to answer my own question after posting. I am fairly new to CSS etc so didn't understand the datails of Mohamed's link but have now worked it out. It was the checkout cart view that I needed to change.

Many Thanks

Martyn

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

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