- Posts: 5
- Thank you received: 1
MouseOver Effect For Product Images
Is there any option to create move over effect on product images. Means we dont have to click on the image to see large image rather then when we point the mouse over the image it shows the large image instead of clicking it. Pls help regarding this.
Please Log in or Create an account to join the conversation.
You can change the line:
to:
in the file show_block_img of your front end template via the menu Display->Views in order to do that.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
<?php
/**
* @package HikaShop for Joomla!
* @version 1.5.6
* @author hikashop.com
* @copyright (C) 2010-2012 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?>
<div id="hikashop_product_image_main" >
<div id="hikashop_main_image_div" class="hikashop_main_image_div">
<?php
if(!empty ($this->element->images)){
$image = reset($this->element->images);
}
$height = $this->config->get('product_image_y',$this->config->get('thumbnail_y'));
$width = $this->config->get('product_image_x',$this->config->get('thumbnail_x'));
if (!$this->config->get('thumbnail')) {
if(!empty ($this->element->images)){
echo '<img src="' . $this->image->uploadFolder_url . $image->file_path . '" alt="' . $image->file_name . '" id="hikashop_main_image" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle" />';
}
} else {
$style = '';
if (!empty ($this->element->images) && count($this->element->images) > 1) {
if (!empty ($height)) {
$style = ' style="height:' . ($height +5) . 'px;"';
}
}
?>
<div class="hikashop_product_main_image_thumb" id="hikashop_main_image_thumb_div" <?php echo $style;?> >
<?php echo $this->image->display(@$image->file_path,true,@$image->file_name,'id="hikashop_main_image" style="margin-top:10px;margin-bottom:10px;display:inline-block;vertical-align:middle"','id="hikashop_main_image_link" onhover="SqueezeBox.fromElement(this,{parse: \'rel\'});return false;" ', $width, $height); ?>
</div>
<?php
}
?>
</div>
<div id="hikashop_small_image_div" class="hikashop_small_image_div">
<?php
if (!empty ($this->element->images) && count($this->element->images) > 1) {
foreach ($this->element->images as $image) {
echo $this->image->display($image->file_path, 'hikashop_main_image', $image->file_name, 'class="hikashop_child_image"','', $width, $height);
}
}
?>
</div>
</div
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
to "onmouseover" where do i have to change it and into what?
Please Log in or Create an account to join the conversation.
Here is a thread which talks about that for listings:
www.hikashop.com/forum/4-how-to/49351-sh...r.html?lang=en#49421
In your case, you're apparently using the listing_img_desc item box layout and not the default listing_img_title mentioned in that post but the code to use should be pretty similar.
Note though that the code of the image display changed a bit since then so it might require some modification. Let us know if it doesn't work and what and how it doesn't work.
Please Log in or Create an account to join the conversation.
Thanks.
Please Log in or Create an account to join the conversation.
I think this is a problem with the Joomla "modal" library and your template.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
so thanks for the help
Please Log in or Create an account to join the conversation.
Can anybody tell me how to switch off this mouseover thumbnails effect on product page? I mean that when i move mouse over thumbnail image (orientation: portrait) the image hides away thumbnails at the bottom.. <<<< Look at pic 1
it came after i tried to solve the problem on the second image (Product page) whereby i changed the configuration->Display->css
.hikashop_product_main_image_thumb{
margin-bottom:-100px;
and completely another question about this MouseOver Effect...
changing the php code in: listing_img_title" of the view "product". doesn't for some reason work and i noticed this php code is much longer there than written above...
And thank you soo much hikashop team.. love the product - learning every day
Laadukas moderni kulmasohva, valkoinen kulmasohva tai iso kulmasohva: ModerniKoti
Please Log in or Create an account to join the conversation.
There is in HikaShop an option to set the image size for the product page.
These dimensions (height and width) creates some kind of virtual box where the images would be displayed. So the box will always have the same size.
If you want, you can override the view "product | show_block_img" to change how the images are displayed in the product page.
You will be able to change mostly everything.
If you are using HikaShop 2.2.2 (that I will recommend you), the popup system and the mouse hover have been moved into the view instead of using a specific function in a class (that was harder to override).
So HikaShop 2.2.2 is easier for override the images in the product page.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
Please Log in or Create an account to join the conversation.
gosh, it really worked, thank you so much JeromeJerome wrote: Hi,
There is in HikaShop an option to set the image size for the product page.
These dimensions (height and width) creates some kind of virtual box where the images would be displayed. So the box will always have the same size.
Regards,
Laadukas moderni kulmasohva, valkoinen kulmasohva tai iso kulmasohva: ModerniKoti
Please Log in or Create an account to join the conversation.
Is there a way to add this effect to the carousel? The only thing is, I don't want the image to be maximized. I just want to be a little bigger when mouse hovers on it. I think this is a feature the carousel should have by default. But what can I do about it now that it doesn't have it as a default feature. I really need it. Please HELP!!!
Please Log in or Create an account to join the conversation.
- Posts: 12953
- Thank you received: 1778
I think that this can be done by using some CSS code customization like :
Please Log in or Create an account to join the conversation.
.hikashop_main_carousel_divimg:hover {
width: 300px;
}
.hikashop_main_carousel_div ul li{
padding: 0px !important;
background: none !important;
}
.... is it correct?! because I didn't get any result.. I found one CAROUSEL in my CSS and I added to it. I think I did it wrong because I got no results. Help me out please!
Please Log in or Create an account to join the conversation.
[code]
.hikashop_main_carousel_div .hikashop_product_image:hover{
width: 300px;
}
Please Log in or Create an account to join the conversation.
.hikashop_main_carousel_div .hikashop_product_image:hover{width: 300px; }
.hikashop_main_carousel_div ul li{
padding: 0px !important;
background: none !important;
}
.hikashop_main_carousel_div .hikashop_product_image:hover{width: 300px;}
Please Log in or Create an account to join the conversation.