- Posts: 55
- Thank you received: 1
Product Page Main Image height issue
- many-feathers
-
Topic Author
- Offline
Less
More
14 years 3 weeks ago #62678
by many-feathers
Product Page Main Image height issue was created by many-feathers
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
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.
14 years 3 weeks ago #62758
by Xavier
Replied by Xavier on topic Re: Product Page Main Image height issue
Hi many-feathers,
You can edit the view "product / show_block_img" in HikaShop > Display > Views to remove this height property permanently.
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.
- many-feathers
-
Topic Author
- Offline
Less
More
- Posts: 55
- Thank you received: 1
14 years 3 weeks ago #62770
by many-feathers
Replied by many-feathers on topic Re: Product Page Main Image height issue
Ok, I'll give that a try...
But will this be remedied in a next version of Hikashop?
But will this be remedied in a next version of Hikashop?
Please Log in or Create an account to join the conversation.
14 years 3 weeks ago #62772
by nicolas
Replied by nicolas on topic Re: Product Page Main Image height issue
Yes.
Please Log in or Create an account to join the conversation.
- many-feathers
-
Topic Author
- Offline
Less
More
- Posts: 55
- Thank you received: 1
14 years 3 weeks ago #63070
by many-feathers
Replied by many-feathers on topic Re: Product Page Main Image height issue
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.
<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.183 seconds