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

#   aspect ratio of product image

##

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

Less More

- Posts: 47
- Thank you received: 4
-
-

11 years 11 months ago [\#183480](#183480) by [iwallace](/forum/user/34516-iwallace "View iwallace's Profile")  *[aspect ratio of product image](/forum/35-orders-management/873685-aspect-ratio-of-product-image#183480 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6  Hi Hikashop  just wondering if there is a way to maintain the aspect ratio of images in the cart and in the email confirmation please  thanks  Ian ;-)")* was created by *[iwallace](/forum/user/34516-iwallace "View iwallace's Profile")*

-- HikaShop version -- : 2.3.4
-- Joomla version -- : 3.3.6

Hi Hikashop

just wondering if there is a way to maintain the aspect ratio of images in the cart and in the email confirmation please

thanks

Ian
![;-)](/media/kunena/emoticons/24.png ";-)")

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

11 years 11 months ago [\#183505](#183505) 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 *[aspect ratio of product image](/forum/35-orders-management/873685-aspect-ratio-of-product-image#183505 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6  Hi Hikashop  just wondering if there is a way to maintain the aspect ratio of images in the cart and in the email confirmation please  thanks  Ian ;-)")*

Hello Ian,
Can you give me more information through some screenshots for example about what do you exactly mean by "the aspect ratio of images" ?
Thanks ![:)](/media/kunena/emoticons/3.png ":)").

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

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

Less More

- Posts: 47
- Thank you received: 4
-
-

11 years 11 months ago [\#183648](#183648) by [iwallace](/forum/user/34516-iwallace "View iwallace's Profile")  Replied by *[iwallace](/forum/user/34516-iwallace "View iwallace's Profile")* on topic *[aspect ratio of product image](/forum/35-orders-management/873685-aspect-ratio-of-product-image#183648 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6  Hi Hikashop  just wondering if there is a way to maintain the aspect ratio of images in the cart and in the email confirmation please  thanks  Ian ;-)")*

Hi Mohamed,
no problem
i have attached 3 screen shots

the same product - [ 174.132.121.226/~richardt/index.php/hika...duct/154412-kingston](https://174.132.121.226/~richardt/index.php/hikashop-menu-for-module-138/product/154412-kingston)
added to the cart in three browsers

chrome and safari are squished - firefox is correct

looking forward to your ideas
![;-)](/media/kunena/emoticons/24.png ";-)")

- [ ![ChromeError.jpg](/forum/attachment/21271) ](/forum/attachment/21271 "ChromeError.jpg") [ ](/forum/attachment/21271?download=1 "ChromeError.jpg")
- [ ![SafariIssue.jpg](/forum/attachment/21272) ](/forum/attachment/21272 "SafariIssue.jpg") [ ](/forum/attachment/21272?download=1 "SafariIssue.jpg")
- [ ![firefox&#95;correct.jpg](/forum/attachment/21273) ](/forum/attachment/21273 "...ox&#95;correct.jpg") [ ](/forum/attachment/21273?download=1 "...ox&#95;correct.jpg")

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

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile")
- [ Offline](/forum/user/28604-lousyfool)

Less More

- Posts: 2143
- Thank you received: 746
-
- [](http://www.inphase.one)
-

11 years 11 months ago [\#183651](#183651) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  Replied by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")* on topic *[aspect ratio of product image](/forum/35-orders-management/873685-aspect-ratio-of-product-image#183651 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6  Hi Hikashop  just wondering if there is a way to maintain the aspect ratio of images in the cart and in the email confirmation please  thanks  Ian ;-)")*

Hi,

In your custom.css (line 77) you have for some reason the following CSS: Code:

.hikashop_product_checkout_cart_image { height: 100px !important; width: 100px !important; }

It seems to conflict with a generic "max-width: 100%;" for "img" in your bootstrap.css.

It's all not ideal, but if you want to stick with what's now in your custom.css, you should add there a max-width property for this image to override what's coming from bootstrap.css, so that the entire rule reads like this: Code:

.hikashop_product_checkout_cart_image { height: 100px !important; width: 100px !important; max-width: 100px !important; }

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

The following user(s) said Thank You: [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")

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

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

Less More

- Posts: 47
- Thank you received: 4
-
-

11 years 11 months ago [\#183964](#183964) by [iwallace](/forum/user/34516-iwallace "View iwallace's Profile")  Replied by *[iwallace](/forum/user/34516-iwallace "View iwallace's Profile")* on topic *[aspect ratio of product image](/forum/35-orders-management/873685-aspect-ratio-of-product-image#183964 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6  Hi Hikashop  just wondering if there is a way to maintain the aspect ratio of images in the cart and in the email confirmation please  thanks  Ian ;-)")*

Thanks for your help - it has worked in the checkout

i still have an issue regarding the aspect ratio of the images in the emails

I have attached a screenshot of 3 products looking perfect in the cart and the same 3 in the email - all images are the same size when there are clearly size differences - the last image is panoramic

is there a way to present these emails in the images at their correct aspect ratio?

thanks

- [ ![email&#95;images.jpg](/forum/attachment/21312) ](/forum/attachment/21312 "email&#95;images.jpg") [ ](/forum/attachment/21312?download=1 "email&#95;images.jpg")
- [ ![cartImages.jpg](/forum/attachment/21313) ](/forum/attachment/21313 "cartImages.jpg") [ ](/forum/attachment/21313?download=1 "cartImages.jpg")

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

11 years 11 months ago [\#184012](#184012) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[aspect ratio of product image](/forum/35-orders-management/873685-aspect-ratio-of-product-image#184012 "-- HikaShop version -- : 2.3.4 -- Joomla version -- : 3.3.6  Hi Hikashop  just wondering if there is a way to maintain the aspect ratio of images in the cart and in the email confirmation please  thanks  Ian ;-)")*

Hi,

You can edit the emails via the menu System&gt;Emails and change the code:
'forcesize' =&gt; true
to:
'forcesize' =&gt; false

in the preload area of the emails and that should do it.

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

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