dmatthew / magento2-hover-image
Change product image on hover on category pages
Installs: 438
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 1
Forks: 9
Open Issues: 4
Type:magento2-module
Requires
- php: ^7.1
- magento/module-catalog: *
This package is auto-updated.
Last update: 2024-10-23 21:34:49 UTC
README
With this module you can set an image to be displayed when hovering over products on category pages.
Saving Product Hover Image using Magento Import
To update the hover_image attribute on products for existing images:
-
Create a CSV that looks like this:
sku,hover_image ABCD1234,/i/m/image.jpg
-
Then, when importing the file change the field "Images File Directory" to "pub/media/catalog/product".
-
This will set the Hover Image attribute to one of the existing images without requiring you to place new images into pub/media/import/.
To update the hover_image attribute on products with new images:
-
Create a CSV that looks like this:
sku,hover_image ABCD1234,image.jpg
-
Upload the image.jpg file to the
media/import/
directory. -
When importing the file, leave the field "Images File Directory" blank or set it to "pub/media/import".
-
This will save the new image and assign it to the Hover Image attribute.