aspect ratio of product image

  • Posts: 47
  • Thank you received: 4
9 years 11 months ago #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
;-)

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

  • Posts: 12953
  • Thank you received: 1778
9 years 11 months ago #183505

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.

  • Posts: 47
  • Thank you received: 4
9 years 11 months ago #183648

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

Attachments:

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

  • Posts: 2143
  • Thank you received: 747
9 years 11 months ago #183651

Hi,

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

.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:
.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.

  • Posts: 47
  • Thank you received: 4
9 years 11 months ago #183964

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

Attachments:

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

  • Posts: 82868
  • Thank you received: 13376
  • MODERATOR
9 years 11 months ago #184012

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.084 seconds
Powered by Kunena Forum