No image available

A PrestaShop 1.7 Module to Rollover image

A PrestaShop 1.7 Module to Rollover image

Developed by ArnaudFavier

Get This Module Free on GitHub
License: Unknown Status: Unknown Health: Very Outdated

Info updated 1 month ago

Sources
Stars: 6 Forks: 1 Last commit: Apr 14, 2020
Type
Module

Info checked: Mar 2, 2026

PrestaShop-Module-Image-Rollover

A PrestaShop 1.7.x Module to rollover image on hover.

Information

Tested on 1.7.6.4 only.

_Zoom_ and _Fade_ animations updated only. Need improvements for the other animations.

Install

Add <code>{hook h=&#039;productImageHover&#039; id_product = $product.id_product}</code> below the first <code>&lt;img&gt;</code> tag in _templates/catalog/_partials/miniatures/product.tpl_ (line 35):

<article class="product-miniature js-product-miniature" data-id-product="{$product.id_product}" data-id-product-attribute="{$product.id_product_attribute}" itemscope itemtype="http://schema.org/Product">

&lt;div class=&quot;thumbnail-container&quot;&gt; {block name=&#039;product_thumbnail&#039;} {if $product.cover} &lt;a href=&quot;{$product.url}&quot; class=&quot;thumbnail product-thumbnail&quot;&gt; &lt;img src=&quot;{$product.cover.bySize.home_default.url|replace:&#039;home_default&#039;:&#039;home_default2x&#039;}&quot; alt=&quot;{if !empty($product.cover.legend)}{$product.cover.legend}{else}{$product.name|truncate:30:&#039;...&#039;}{/if}&quot; data-full-size-image-url=&quot;{$product.cover.large.url}&quot; /&gt; {hook h=&#039;productImageHover&#039; id_product = $product.id_product} &lt;/a&gt;

Then Clear cache in _Advanced Parameters_ > _Performances_.

Credits

Quick fixes based on <a href="http://prestashopaddon.com/download/prestashop-modules/free-product-image-rollover-module-for-prestashop/" target="_blank">PrestashopAddon.com's</a> ybc_productimagehover. Thanks to them.

Contributing

1. Fork the repo 2. Create your feature branch: <code>git checkout -b new-feature</code> 3. Commit your changes: <code>git commit -am &#039;Add new feature&#039;</code> 4. Push to the branch: <code>git push origin new-feature</code> 5. Submit a pull request

  • Riferimento
    PrestaShop-Module-Image-Rollover

  • License
    Unknown
  • Status
    Unknown

Commenti (0)

Ancora nessuna recensione da parte degli utenti.
Caricamento in corso ...