Alter product listing image size?

  • Posts: 76
  • Thank you received: 2
12 years 2 months ago #63324

Hi there,

I've just upgraded to the latest version of hikashop, and one of the many things that it's thrown out of place is the the product listing image size. I'm using a "div image and title" layout for the product page. It now trys to display the image full size, but because the width of each product pane is set and the overflow is hidden, we only see the left 150px or so, and the heights of each pane vary hugely.

So here's what I've come up with:

Can't use CSS to alter it because the problem arises from the "width" and "height" properties in the actual <img> tag being set. If I fix the image width using css, the height therefore doesn't scale and I end up with a very deformed image. If I delete the "height" property specification and create a css rule to set the width to 150px all in firebug, everything works out great.
The <img> tag isn't actually specified in any Hikashop "view" file, as it's assembled elsewhere in the system and returned by a method to the view file.

So...
Is this a system setting that I'm not aware of?
If not... Where is the method that is returning the <img> tag so I can alter it to not specify any "height" value.

The link to the site under development... claycellar.org/index.php/books

The following user(s) said Thank You: Mohamed Thelji

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

  • Posts: 82819
  • Thank you received: 13366
  • MODERATOR
12 years 2 months ago #63492

You can always force the height of elements in HTML with CSS like that:

.hikashop_product_listing img{ height: auto !important; }

When did you update ? We actually fixed the thumbnails size calculation algorithm on friday and published a new package at that time. If you had updated before, I recommend you to update again.
Also, if you had overridden view files for the listings, it could also explain why the size is not correct. So you should check on that in the Display->Views menu.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum