简体   繁体   English

缩略图上的Prestashop产品图像交换单击

[英]Prestashop product image swap on thumbnail click

Every product has the posibility to have several images, those images are listed as a list to the left of the main product image. 每个产品都有多个图像的可能性,这些图像在主产品图像的左侧以列表的形式列出。

The problem I have is when the user clicks on any of the thumbs, it get's the image but on a modal box, not swaping over the main image. 我遇到的问题是,当用户单击任一拇指时,它得到的是图像,但位于模式框上,而不是交换主图像。 Just like this example 就像这个例子

Any guide/ideas how to achieve this on Prestashop? 任何指南/想法如何在Prestashop上实现?

I have already asked this on the Prestashop forum, with no luck... 我已经在Prestashop论坛上问了这个,没有运气...

Problem is that big image block is positioned over thumbnails images, so script can not register hover event over thumbnails. 问题在于大图像块位于缩略图上,因此脚本无法在缩略图上注册悬停事件。 Fix is easy, change in theme/default/css product.css line 15 code to 修复很容易,将theme / default / css product.css第15行代码更改为

#pb-right-column #image-block {
    position: relative;
    float: left;
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM