Skip to main content

Questions tagged [gallery]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
60 views

Magento 2 : Media Gallery returns 404 Error Page and Images not uploading

As I click on Media Gallery tab inside content tab, it shows 404 error page. The default url also changed. The current url is : mydomain.com/admin/media_gallery/media/index/ -- while it should have ...
Gautam's user avatar
  • 1
0 votes
1 answer
112 views

Magento 2 | Exclude Video from fotoroma fullscreen gallery on PDP

I want to remove video from gallery when fullscreen gallery is opened on PDP. on normal gallery video is required but need to remove only on fullscreen. fotoroma using same data for gallery and ...
Gohil Rajesh's user avatar
  • 3,060
0 votes
1 answer
62 views

How to update a function in a mixin that was defined outside a return?

In lib/web/mage/gallery/gallery.js L:22 I want to update this function: var getMainImageIndex = function (data) { var mainIndex; if (_.every(data, function (item) { ...
mullayo's user avatar
  • 23
0 votes
1 answer
41 views

Magetno 2.4.3-p3 no folders show up in wysiwig interface - where to put new config.xml

No folders show up in wysiwig interface in 2.4.3-p3 I have read this --> https://developer.adobe.com/commerce/php/tutorials/backend/modify-image-library-permissions/ and this --> Media folders ...
t3chn0hippy's user avatar
4 votes
1 answer
1k views

Product Gallery doesn't allow grabbing to scroll images on Mobile after upgrade

Following the implementation of the latest upgrade onto our site, we've observed that in mobile viewpoints, the product image gallery doesn't allow for the user to scroll between images/videoes via ...
Thomas's user avatar
  • 41
1 vote
0 answers
19 views

getting fatal error if product images not uploaded

if there is no product image then getting this error on Magento 2.2 [Fri Oct 28 08:48:21.033726 2022] [fcgid:warn] [pid 2669752] [client 47.15.21.175:0] mod_fcgid: stderr: Stack trace: [Fri Oct 28 08:...
Shiv Singh's user avatar
0 votes
1 answer
841 views

magento2.4 how to upload Pdf file to gallery and insert them to cms page

I have to upload PDF files from admin gallery and insert them to CMS-page, I can see extensions available for product attributes PDF upload but I need to use them an CMS-page through gallery. Kindly ...
vijayalakshmi's user avatar
2 votes
3 answers
1k views

How to add <picture> around the fotorama__img on the productpage - Magento 2.4

We would like to add a <picture> </picture> element around the main image with class fotorama__img on the productpage. How can we achieve that?
JGeer's user avatar
  • 1,422
1 vote
1 answer
161 views

Magento 2.4.2-p2 change "Select From Gallery" root folder

Good afternoon all, I am working on a site that has large amount of images (110k +) in the media folders. The media select screen opens and sits loading from storage root but I would like to set the ...
Baber's user avatar
  • 192
0 votes
1 answer
609 views

Magento 2.4.4 thumbnails doesn't show

i installed magento 2.4.4 but i can't see thumbnails on my website. I followed a lot of suggestions on internet like disable old media gallery or type php bin/magento media-gallery:sync php bin/...
Daniel Doman's user avatar
0 votes
1 answer
448 views

Magento 2: How to display product image caption instead of product title below the image in product details page?

We want to replace product title/heading under product image with its caption(value in title attribute of IMG element). The things that do need the captions are: When clicking on another image in the ...
CodeForGood's user avatar
1 vote
2 answers
2k 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 (...
Niraj Patel's user avatar
0 votes
1 answer
880 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'), ...
idIA Tech's user avatar
0 votes
1 answer
605 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 ...
Armindo Pereira's user avatar
0 votes
1 answer
433 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,...
Stefy's user avatar
  • 1
0 votes
1 answer
1k 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.
John's user avatar
  • 1
1 vote
3 answers
2k 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 ...
Hunter's user avatar
  • 809
0 votes
1 answer
1k 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/...
joeybab3's user avatar
  • 378
1 vote
1 answer
574 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/...
Kalvin Klien's user avatar
-2 votes
1 answer
676 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
ashikra's user avatar
  • 97
0 votes
1 answer
111 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 ...
gabtzi's user avatar
  • 686
0 votes
1 answer
2k 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"?...
Black's user avatar
  • 3,431
2 votes
1 answer
2k 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 ...
Nikul's user avatar
  • 1,306
1 vote
1 answer
1k 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 ...
Reshad Zazai's user avatar
0 votes
1 answer
427 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 ...
Black's user avatar
  • 3,431
1 vote
1 answer
297 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 ...
Magento_learner's user avatar
0 votes
1 answer
322 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 ...
Duncan Wardlaw's user avatar
2 votes
1 answer
1k 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 ...
JGeer's user avatar
  • 1,422
0 votes
1 answer
179 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.
Aleksey's user avatar
  • 37
0 votes
1 answer
501 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="...
Jason Kollias's user avatar
0 votes
1 answer
488 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 ...
Valentyn Kormilets's user avatar
1 vote
1 answer
659 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. ...
MatAle Albiach's user avatar
0 votes
1 answer
198 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 ...
Manak Kapoor's user avatar
3 votes
0 answers
342 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 ...
Sunny Rahevar's user avatar
0 votes
1 answer
286 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 ...
Dimitar Troyanov's user avatar
1 vote
0 answers
980 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 = { ...
Steven Hardy's user avatar
2 votes
2 answers
571 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
Paul Fan's user avatar
  • 658
2 votes
1 answer
250 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 ...
Paul Fan's user avatar
  • 658
1 vote
2 answers
2k 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....
Dipesh Rangani's user avatar
2 votes
2 answers
2k 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){ $('[...
Juliano Vargas's user avatar
0 votes
0 answers
342 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 ...
Tech2Pak Tech2Pak's user avatar
6 votes
5 answers
8k 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 ...
Alex's user avatar
  • 14k
0 votes
1 answer
59 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 ...
Andras's user avatar
  • 169
0 votes
1 answer
143 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?
Dhaduk Mitesh's user avatar
0 votes
1 answer
1k 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 ...
summu's user avatar
  • 847
0 votes
0 answers
204 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
Jaisa's user avatar
  • 2,636
1 vote
1 answer
508 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 ...
Michael Thessel's user avatar
1 vote
0 answers
145 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 (*) ...
Mark's user avatar
  • 11
0 votes
1 answer
1k 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 ...
BartZalas's user avatar
  • 1,777
2 votes
0 answers
530 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 ...
SamK's user avatar
  • 21