Questions tagged [gallery]
The gallery tag has no usage guidance.
129
questions
0
votes
0
answers
15
views
Magento 2 make gallery images click event able to retrtieve position value
I am trying to get an event when a customer clicks on the gallery image thumbnail
the event when the customer clicks the gallery image thumbnail should be able to get the position of the image
I am ...
1
vote
2
answers
60
views
Magento 2 Gallery.js fotorama js
there is a function returnCurrentImages in gallery.js file
returnCurrentImages: function () {
var images = [];
_.each(this.fotorama.data, function (...
0
votes
1
answer
20
views
Set programmatically image roles
I have that in my backoffice :
and I need that:
This solution does not work for me :
if($key == 1){
$prod->addImageToMediaGallery($imgPath, array('image', 'small_image','thumbnail'), ...
0
votes
1
answer
33
views
Media Gallery - Cannot upload images
i've created a brand new Magento 2.4.3-p1 installation and using the media gallery i'm getting some errors.
The main error is when i'm trying to upload images i always get the error below
One other ...
0
votes
0
answers
21
views
Add admin product image gallery section in product grid
I want to insert product "Images And Videos" section : https://i.imgur.com/8WRW2fx.png to the admin product grid thumbnail click : https://i.imgur.com/Nm10qM4.png , https://i.imgur.com/...
0
votes
1
answer
28
views
Premium image gallery that support WebP
Which Premium Image gallery supports WebP format for Magento 2. Or how to find does my gallery supports WebP format. And when I say support I mean no conversion. I just want to know will the extension,...
0
votes
0
answers
18
views
need Custom Gallery Album free Module for magento 2.4
I need a free module like this https://www.ulmod.com/image-gallery-for-magento-2.html with the same functionality which I can add images and videos to existing album gallery and manage galleries and ...
0
votes
0
answers
34
views
Magento 2 Fotorama always show zoom in and zoom out icons on fullscreen zoom
How can I make it so that the zoom in and zoom out icons are always displayed, right now it only shows when zooming my browser in to 125% for the icons to show up. I see that --disabled gets appended ...
0
votes
1
answer
186
views
Fotorama - how to show both, dots navigation and thumbs navigation
Is it possible to show both, dots navigation and thumbs navigation in product page?
Like in picture. Thank You.
0
votes
0
answers
99
views
Dynamically set height/width of gallery thumbnails
I'm trying to set the height and width of the gallery thumbnails based on whether or not a CSS class is present on the body.
My current implementation looks like this:
require(['jquery', 'mage/gallery/...
0
votes
2
answers
666
views
2.4.3 Page Builder 404 on Images from Media Gallery
I've just updated to 2.4.3 (which now includes Page Builder).
When using Page Builder to add images from the Media Gallery, the selected image does not display properly because the image src is ...
0
votes
1
answer
311
views
Magento 2 open fullscreen/lightbox view when clicking on product thumbnails
I'm attempting to make it so that if I click on one of the thumbnails in the carousel it opens the fullscreen mode rather than the customer having to click twice to first get the image onto the stage/...
1
vote
1
answer
286
views
Overriding GetDirectoryTree.php - preference not working
Having issues overriding Magento\MediaGalleryUi\Model\Directories\GetDirectoryTree.php.
It is related to a current Media Gallery bug that causes Folders not to display (https://github.com/magento/...
0
votes
0
answers
31
views
Magento 2 - get “product media” container from product detail page in custom widget
I try to create a custom Widget in Magento 2. The Widget should display the "product media gallery" Container from the product detail page for a selected product in my widget.
Is there any ...
0
votes
0
answers
39
views
Product View sort Images on gallery Magento 2.3.5
Im using fotorama vertical gallery widget
gallery.phtml
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
// @codingStandardsIgnoreFile
/**
...
0
votes
0
answers
12
views
Set Product Image From Image Gallery
Is there any way to get an image for a new product direct from image gallery? i want to categorize photos into folders on image gallery and then putting them into the products.
My Magento version is 2....
-1
votes
1
answer
122
views
Youtube videos are not working on Simple Product pages
Any simple product that has a video assigned to it, will not play the video. If you are looking at the config product then videos play without issue.
Magento Version 2.3.5
0
votes
1
answer
27
views
how can I update all product base images, to be the same as small images in Magento 2
I have a set of products, which are using different image for base, small and thumbnail.
I would like to programmatically update them so that the base/thumbnail image is the same as the image now used ...
0
votes
1
answer
320
views
Magento 2 - How to change fotorama nav shaft thumbnail image size - for grouped products?
I need to change the size of the small images below the gallery, but only for products of type grouped
Normaly you can change the size in the file THEME/etc/view.xml:
<?xml version="1.0"?...
1
vote
1
answer
760
views
Magento 2: Videos not working in Product gallery
Video at product gallery inside product detail page is not working, However, it is working from admin panel but on product view it is showing only video thumbnail.
Video is not playing while clicking ...
0
votes
1
answer
519
views
Fotorama zoom_in and zoom_out buttons are not working in Magento 2.3.6
The zoom_in and zoom_out buttons are not working in the product pop-up gallery, however, while clicking the image, the image gets zoomed on the first double click and gets zoomed out on the second ...
0
votes
1
answer
90
views
Magento 2 - Fotorama Gallery Nav shaft is missing on product page
If you add multiple images to a product then they are showing below the base image in small boxes, see screenshot below (bottom corner - left):
This box is missing. First I thought it is because some ...
1
vote
1
answer
156
views
Issue With Displaying Gallery Widget
I am trying to add images product gallery to my custom widget using Fotorama.
What it should look like:
So I tried to initialize the gallery widget using the js script. Based on the info I got from ...
0
votes
1
answer
44
views
Magento 2 Image Gallery pure SQL Manipulation
I've written an interface for Magento 2 admin that allows creation and editing of key product attributes from a phone.
Once a product is created and it's images attached to the product, I have been ...
2
votes
1
answer
436
views
Base images as first image, change positions in bulk - Magento 2.3.5
We have a large catalog (125K products), with a lot of products where the base image is positioned somewhere in the middle of the gallery.
The selection of base image itself is fine, this should be ...
0
votes
1
answer
46
views
How to make product gallery thumbs over the image in Magento 2? Like in this example
I am able to do it vertically but how can I get it over the image? Magento 2.3.4
Thanks.
0
votes
1
answer
200
views
Enabling zoom when on gallery fullscreen
How can I get the zoom effect on a gallery product page to show when I am in full screen mode? I am using Magento 2.3.4 enterprise.
This is what I have in myTheme/etc/view.xml file.
<vars module="...
0
votes
1
answer
196
views
How to provide and save data for custom field in gallery.phtm on product edit page
I have create custom field in admin product edit page image gallery popup in custom module with observer event. Now i want to provide data to this field from table ...
1
vote
1
answer
445
views
Remove main product image from gallery (and placeholder)
Steps:
I have a configurable product with main image for thumbnail and everything else.
I create a variation with it's own image.
I select hidden in product page in the main product's image.
...
0
votes
1
answer
39
views
Magento_Catalog Custom Gallery customization event
What event do I have to listen for in Javascript to detect that the user has changed the customization in a customizable product?
I am working on a custom gallery for my product page, but i am ...
3
votes
0
answers
199
views
Change Additional product Images based on the selection of color (custom option) Magento 2
I want to change the additional images based on the selected color on the product page.
There are many custom options on the product page. My requirement is that, change the additional gallery images ...
0
votes
1
answer
181
views
Magento 2: I have a problem with configuring gallery magnifier in product details page
I'm looking for an effect like the one this site or at least close to it:
https://fashionmix.bg/mazhki-cherni-visoki-ketsove-shagren-it251019-16
But when I configure magnifier in view.xml and set ...
1
vote
0
answers
629
views
Product Page Gallery "TypeError: settings.$elementF.fotorama is not a function"
Please can anyone assist, it is driving me crazy. There are quite a few answers on here regarding this, however none have them have worked.
Here is my requirejs-config.js file:
var config = {
...
2
votes
2
answers
364
views
How do I overwrite the Gallery.php
How do I overwrite the core Gallery.php?
from
vendor/magento/module-catalog/block/View/Gallery.php
to
**app/design/ ...?**
Please help, Thanks
2
votes
1
answer
180
views
How do I pass the product ID and attribute to Gallery.php block?
How do I get product ID and product attribute at
magento/module-catalog/block/product/view/gallery.php?
Please help, I need to do some image filtering by product custom attribute with the image ...
1
vote
2
answers
865
views
How to override or extend etc/view.xml file in custom module in Magento2?
I would like to override or extend some of gallery setting(view.xml) and catalog image size changes with my custom module.
I have tried to override in app/code/<vendor>/<module>/etc/view....
1
vote
2
answers
1k
views
Magento 2 how to listen to event fotorama fullscreenenter
I am not able to listen to event fotorama:fullscreenenter what I've tried:
<script type="text/javascript">
require(['jquery', 'mage/gallery/gallery'], function($, gallery){
$('[...
0
votes
0
answers
235
views
magento 2.2.8 Configurable product: Changing color showing second gallery image as selected
I am using Magento 2.2.8 and facing a weird issue on Product Detail Page.
On the Product Details Page, my gallery shows the wrong image as selected, instead of the first one.
Steps:
Land on ...
6
votes
2
answers
5k
views
Bulk remove all product images from a Magento 2 shop
We would like to remove all product images from the database and the file-system in Magento 2.2.8 shop.
There is a solution for Magento 1
Magento Delete all Product Images
Can this easily be ...
0
votes
1
answer
33
views
Gallery thumbnails are not generated
We need to import a lot of products from different vendors (about 30000 products). For some products the thumbnails are not generated in the front end.
I tried clearing the cache, clearing static ...
0
votes
1
answer
104
views
Magento 2 - mouseup/mousedown event not fire on fotorama
In Magento 2, mouseup / mousedown event not fire on fotorama gallery.
Does have any idea about this?
0
votes
1
answer
608
views
Gallery images returns 0 images for product page Magento 2
For one product I am getting gallery images 0.
in gallery.phtml
<?php $galleryImages = $block->getGalleryImages(); ?>
gives me count 0.
I checked it database table ...
0
votes
0
answers
113
views
The gallery images repeated in PDP page
In My PDP page, the thumbnail images which is shown on the bottom side of the product image are displayed twice
Please refer below screenshot, It repeats the product image twice in bottom
1
vote
1
answer
413
views
Media gallery for product collection
I'm trying to add an alternative image for all config product images. To do so I extended Magento\Catalog\Block\Product\Image. For some reason $product->getMediagalleryImages() always returns the ...
1
vote
0
answers
139
views
Gallery Thumbnail (left/right) Scroll Performance Android Chrome Sluggish and Unresponsive
Preconditions (*)
Magento 2.2.7 and Magento 2.3 Product Gallery
Product page gallery with sample data is installed on the luma theme with additional images (minimum 5+).
Steps to reproduce (*)
...
0
votes
1
answer
806
views
Magnifier is not showing
Magnifier is not showing. Option enable set to true.
Settings in my theme:
Vendor/MyTheme/etc/view.xml
<var name="magnifier">
<var name="fullscreenzoom">10</var> <!-- Zoom ...
2
votes
0
answers
421
views
Fotorama Responsive Breakpoint
I am having issues with getting fotorama responsive, the breakpoint for a resize is not being actioned. Below is my process of getting this to work:
I changed my themes breakpoint for screen_m via ...
0
votes
2
answers
1k
views
Change Product Page Fotorama On Element Click
I'm trying to change to a specific image in the product gallery when the user clicks a button to customize their item.
So far I have the following code:
require( ['jquery', 'jquery/ui', 'mage/...
0
votes
1
answer
803
views
Magento 2 product image gallery not responsive/resizing
I've made a custom Magento 2 Theme, updated the view.xml with all my image dimensions, and resized the catalog images through the cli.
However, the Fotorama image gallery on product pages is not ...
1
vote
1
answer
72
views
Magento 2 - How to add video icon in dot if the gallery has video?
I want to add video-icon class in dot if the gallery has video.