Questions tagged [gallery]

The tag has no usage guidance.

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

Magento 2. Change image position in list plugin

I use Magic_360 in my magento 2. It is ok, but it show it's 360 picture first in fotorama. I am trying to write plugin wich move this picture to the second position. Files: /app/code/NickNick/...
0
votes
0answers
8 views

Magento 2 : gallery popup modification in product detail page

I am using magento 2.3.2 and I want to modification in gallery popup Need to show product name and 80% width popup with overlay instead of full-screen currently is showing popup in full-screen but ...
3
votes
0answers
29 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
1answer
23 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
0answers
73 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
2answers
57 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
1answer
61 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 ...
0
votes
1answer
94 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....
0
votes
2answers
76 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
0answers
50 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 ...
4
votes
2answers
448 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
1answer
24 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
1answer
44 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
1answer
151 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
0answers
21 views

How can we add Magento Media gallery support inside Image and Videos tabs in magento 2.2

Basically I want to add the Default Magento Media gallery Insert Image functionality https://www.screencast.com/t/A0yH5sVgUlUv inside images and video tab. By default magento does not have this ...
0
votes
0answers
27 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
1answer
217 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
0answers
113 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
1answer
249 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
0answers
223 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
1answer
443 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
1answer
361 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
0answers
36 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.
1
vote
0answers
232 views

Magento 2: Problems Extending Product Image Gallery

I'm trying to change the image gallery so that it doesn't display the product name as a default image caption. After tracing through the code I found the getGalleryImagesJson method of the Magento\...
1
vote
0answers
96 views

slider on gallery on product page

I am trying in product/detail page to have all images in the gallery there with no slide to hide some of them, but it seems no possible in no option for view.xml. I can create from scratch gallery....
0
votes
2answers
4k views

Magento 2 : How to override fotorama.js in magento custom theme

I need to show gallery arrow always visible on product gallery page. I tried in gallery.phtml variable arrows="always", but its not working. I want to show both arrow always visible on product ...
0
votes
2answers
2k views

How to Display 5 images by default in magento 2 product gallery vertical

I need to show by default 5 images in magento prduct page gallery. I change the view of gallery is from vertical to horizontal. I need to know that which js file i have to modify for display default 5 ...
1
vote
0answers
34 views

Change label and position of media in store views via API

I encountered a problem today while saving images via the API: catalogProductAttributeMediaGalleryManagementV1. The label and position of the image for all the store views except the default one are ...
0
votes
1answer
88 views

Where is the product gallery stored in the database?

I can't to set it from admin. And I must set it by SQL query. So how I can do it? Or where stored url from picture in database? Picture in media already exists.
1
vote
0answers
29 views

Magento 1.9 - Pass value From Select into Gallery.phtml to uploadAction into GalleryController.php

I need check the value set into custom select during Upload Image Manage Product -> Product -> Image -> User Browse image into Gallery.phtml example i add this simple select <select id="type"&...
1
vote
0answers
116 views

Duplicated images when adding image to gallery programmatically in Magento 1.9

I'm trying add image to product gallery by downloading image file from internet to my magento server and add this as main image in gallery by addImageToMediaGallery method: $...
0
votes
1answer
545 views

Magento 2 Product: programmatically 'click' thumbnail

Is it possible to programmatically 'click' a thumbnail in the fotorama gallery on a product page to switch to that image? I'm trying to change the product image based on selected custom attributes ...
6
votes
1answer
941 views

How to modify magnifier small lens and bigger preview

I have modified as follows <var name="magnifier"> <var name="fullscreenzoom">2</var> <!-- Zoom for fullscreen (integer)--> <var name="top"></...
0
votes
0answers
348 views

Configurable product doesn't show simple product images

After updating to Magento 2.2 Configurable product only shows images assigned to its' own gallery but nothing of the simple products associated with it. Even when I choose a product via swatch the ...
0
votes
1answer
645 views

remove slider and show gallary image as thumbnails in the detail page magento 2

Remove the slider and show gallery image as thumbnails on the detail page Magento 2. please anyone can help me how can I solve this??
0
votes
1answer
115 views

Magento - Insert the media gallery of the product in view.phtml

I'm trying to move the media gallery of the product from the media.phtml file to the view.phtml file. Basically I want to move the div with class = "more-views" which is contained in the media.phtml ...
0
votes
2answers
619 views

Stop simple product images overriding main product gallery after clicking swatches

I've upgraded from 2.1.9 to 2.2.3. Now on a configurable product page when a swatch is selected the product page gallery images get overridden by the simple product image for each swatch. This didn'...
1
vote
1answer
2k views

Get product image by its “Role” in the gallery

On the products grid in the category view I need to display additional image for some products. When I have a gallery of product images: $images = $product->getMediaGalleryImages(); foreach ($...
1
vote
1answer
615 views

Magento 2.2 adding images to product programmatically does not set small_image

I'm adding images to products programmatically. Every product can have from 1 to n images. So I reorder the images array in the way I need and then, to the first image of the array (that has to be the ...
0
votes
1answer
221 views

1.9 - Adding Image To Media Gallery Using Import Behavior

I'm currently writing a module which in its essence applies a pre-defined set of images to a product media gallery. It basically loops through a delimited list of filenames and uses ...
0
votes
0answers
723 views

Call to a member function count() on null when loading Gallery

Im using Amastys Gallery plugin to implement into a tab on the product page, however the above error has come up when I pasted the code into my custom template. I have called my tab in the local.xml ...
1
vote
0answers
523 views

Magento2 Product Gallery Fotorama

I got a custom module where I load the images for the product. You can select a image, now I want that this specific image is selected in the Gallery Fotorama. So say for example standard it is ...
3
votes
3answers
2k views

Magento 2 product gallery doesn't close on iPhone

I'm using Magento 2.2.1, with a theme that has magento blank theme as parent. I'm having a problem on iPhone 6, but not on Windows mobile or Android. Basically when I go on the product page, and open ...
1
vote
0answers
71 views

Product Catalog images cannot be indexed

In Magento 2, I site: my site in google images, and I found that all the large images didn't be indexed by google, I checked the code in product catalog page, all these images in gallery was shown ...
0
votes
1answer
358 views

How to add product video to custom carousel / gallery on product page

The below code is how my product page gallery/carousel is pulling in images, how can I include product videos in this? <div class="pdp-gallery__carousel"> <?php foreach($images as $image)...
5
votes
2answers
1k views

How To Display Single Image Thumbnail in product detail page Magento 2

I want to know how can I display thumbnail image, if the product has only one image . (product detail page)
1
vote
0answers
119 views

Product gallery disappear after page load

I have a problem with the product page. After the page load all the resource, all the product gallery images disappear except for the first one (each product have 4/5 pictures). I try to add <...
0
votes
1answer
527 views

Magento 2: Getting dynamic url of image from media browser in js

So I have been building an extension to allow me to insert images into the textarea block of blocks and pages with custom styles. I call the MediabrowserUtility and am able to get a long funky url ...
3
votes
0answers
232 views

Configurable Product - Get image ID from simple product

I have a problem regarding the productimages/image gallery in a product that is configurable. Question Is there a way to get a ID of the Simple Products Image and link it to open the right image in ...
0
votes
1answer
46 views

How to move gallery html into theme to update html?

I am trying to make changes to the following file but unsure how I can copy it over the to theme? As I do not want to edit the core gallery file? lib/web/mage/gallery/gallery.html I've moved this ...