Skip to main content

aspect ratio of product image

More
11 years 9 months ago #183480 by iwallace
-- 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
;-)

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #183505 by Mohamed Thelji
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 :).

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #183648 by iwallace
Hi Mohamed,
no problem
i have attached 3 screen shots

the same product - 174.132.121.226/~richardt/index.php/hika...duct/154412-kingston
added to the cart in three browsers

chrome and safari are squished - firefox is correct

looking forward to your ideas
;-)

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #183651 by lousyfool
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!
(Don't forget to turn on "E-mail notification of new messages" )
The following user(s) said Thank You: Mohamed Thelji

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #183964 by iwallace
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

Please Log in or Create an account to join the conversation.

More
11 years 9 months ago #184012 by nicolas
Hi,

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

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

Please Log in or Create an account to join the conversation.

Time to create page: 0.165 seconds
Powered by Kunena Forum