- Posts: 10
- Thank you received: 0
MouseOver Effect For Product Images for2.0hikashop
I wish can create move over effect on product images in hikashop2.0(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), i found this topic but it is for hikashop1.5.6( www.hikashop.com/en/forum/4-how-to/42708...ct-images.html#42708 ) now the code has been changed in2.0,please someone who can help me ?
Please Log in or Create an account to join the conversation.
I checked it and I can tell you that even if the popup management in HikaShop 2.0 has changed, the code from the other thread is still compatible.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
but the the code is different from 1.5.6,did u saw it?
Please Log in or Create an account to join the conversation.
When I said that it's still compatible, I mean that the fix should still work.
You have to add the
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
<!-- PRODUCT IMG -->
<div style="height:<?php echo $this->image->main_thumbnail_y;?>px;text-align:center;clear:both;" class="hikashop_product_image">
<div style="position:relative;text-align:center;clear:both;width:<?php echo $this->image->main_thumbnail_x;?>px;margin: auto;" class="hikashop_product_image_subdiv">
<?php if($this->params->get('link_to_product_page',1)){ ?>
<a href="<?php echo $link;?>" title="<?php echo $this->escape($this->row->product_name); ?>">
<?php }
echo $this->image->display(@$this->row->file_path,false,$this->escape($this->row->file_name), '' , '' , $this->image->main_thumbnail_x, $this->image->main_thumbnail_y);
$main_thumb_x = $this->image->main_thumbnail_x;
$main_thumb_y = $this->image->main_thumbnail_y;
$horizontal = '0';
$vertical = '0';
$this->classbadge->placeBadges($this->image, $this->row->badges, $vertical, $horizontal);
$this->image->main_thumbnail_x = $main_thumb_x;
$this->image->main_thumbnail_y = $main_thumb_y;
if($this->params->get('link_to_product_page',1)){ ?>
</a>
<?php } ?>
</div>
</div>
<!-- EO PRODUCT IMG -->
i wish can MouseOver Effect on Product main_thumbnail
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
The category does not have the same code but the function image->display use same parameters.
So you can put the code in the same argument (last text before width and height parameters).
So replace this :
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
www.2yuju.com/themelist.html here is my site
Please Log in or Create an account to join the conversation.
Right, the category listing does not generate a link thanks to the image->display function. The link is just before.
But the link target is the category page, not the full size image. So the modification is a little bit different.
You have to extract the image from the main link, create another link to the fullsize category image and and the onmouseover to this link.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Here the code for listing_img_title view (for HikaShop 2.0)
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
i have copy and paste it to category / listing_img_title.php
but visit my site front-end still doesn't have the effect
www.2yuju.com/themelist.html
Please Log in or Create an account to join the conversation.
Your page is not a category listing.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.