Product Page Main Image height issue

  • Posts: 55
  • Thank you received: 1
12 years 2 months ago #62678

The class 'hikashop_product_main_image' gets a fixed height equal to the 'Product Page Image height' setting in Hikashop's configuration. This results in the main picture overlapping the description text below it, when only one product image is available. In my case, I use a 300 x 400 Main Product image.

I believe the height value shouldn't be applied to this class. The "hikashop_product_main_image_subdiv" class already gets this same height assigned. If you assign it to 'hikashop_product_main_image' as well, the margins that are being added through other properties, aren't taken into account.

I removed de height property from 'hikashop_product_main_image' using Firebug and the layout problem disappears. Removing it doesn't seem to have any effect on single image products nor multiple image products.

What view would I have to adapt to make this change permanent?

Thanks again!

I'm using Hikashop 1.6.0 on Joomla 2.5.6

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

  • Posts: 13201
  • Thank you received: 2322
12 years 2 months ago #62758

Hi many-feathers,

You can edit the view "product / show_block_img" in HikaShop > Display > Views to remove this height property permanently.

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

  • Posts: 55
  • Thank you received: 1
12 years 2 months ago #62770

Ok, I'll give that a try...

But will this be remedied in a next version of Hikashop?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 2 months ago #62772

Yes.

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

  • Posts: 55
  • Thank you received: 1
12 years 2 months ago #63070

In the view 'product/show_block_img" I changed the line:

<div style="height:<?php echo $height;?>px;text-align:center;clear:both;" class="hikashop_product_main_image">

into

<div style="text-align:center;clear:both;" class="hikashop_product_main_image">

which solved the problem.

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

Time to create page: 0.068 seconds
Powered by Kunena Forum