Installation

Prepare to install

Installation requires Marketplace module. It’s our module that registers our packages repository in composer.json file, saves its credentials to the auth.json file, automates a bunch of complex commands required to run prior and after module installation, and provides easy to use module installer.

composer require swissup/module-marketplace &&\
bin/magento setup:upgrade --safe-mode=1 &&\
bin/magento marketplace:channel:enable swissuplabs

You’ll be asked to activate your domain and enter your key. Get identity key(s) and activate the domain on the site where you’ve downloaded the product:

Install

When Marketplace module is installed you can proceed with installation in teminal:

composer require swissup/hover-gallery &&\
bin/magento setup:upgrade --safe-mode=1 &&\
bin/magento setup:di:compile &&\
bin/magento setup:static-content:deploy -f 

In your theme template /Magento_Catalog/templates/product/list.phtml find block of code that might be looking like this (please make sure you have a backup before overwriting your current files):

<?php // Product Image ?>
    <a href="<?php /* @escapeNotVerified */ echo $_product->getProductUrl() ?>" class="product photo product-item-photo" tabindex="-1">
        <?php echo $productImage->toHtml(); ?>

Insert this code right below:

<?php
    if ($this->helper('Magento\Catalog\Helper\Data')->isModuleOutputEnabled('Swissup_HoverGallery')) {
        echo $this->helper('Swissup\HoverGallery\Helper\Data')->renderHoverImage($_product, $imageDisplayArea);
    }
?>

Login your store admin and enable extension.

Update

Make sure the Marketplace module is installed and your domain is activated (see Prepare to install), then run:

composer update swissup/hover-gallery -w &&\
bin/magento setup:upgrade --safe-mode=1 &&\
bin/magento setup:di:compile &&\
bin/magento setup:static-content:deploy
Next up