The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [gallery]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
34 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
1answer
22 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
33 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 ...
3
votes
2answers
67 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
21 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
31 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
83 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
19 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
17 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
164 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
89 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
160 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 ...
0
votes
0answers
22 views

Exclude Swatch Image from Product Images when creating gallery

I'm trying to find out how to have a swatch image assigned to a product, but ONLY used for the swatch, right now, it also shows up as one of the product's images, and I was hoping there was a way to ...
0
votes
0answers
13 views

Export gallery image paths in the correct order from Magento 2

I tried to export the images paths from the admin panel [system]->[export], i can see all the images in [base_images] column and [additional_images] column. however, the paths in [additional_images] ...
2
votes
0answers
167 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
366 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
267 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
31 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
142 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
95 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
3k 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
1k 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
33 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
66 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
27 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
104 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
399 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
676 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
339 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
521 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
79 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
443 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
0answers
545 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
183 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
585 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
462 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
68 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
339 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
67 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
424 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
221 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
43 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 ...
0
votes
0answers
184 views

Magento2: user magnifier widget without fotorama

I am developing a custom theme for Magento 2.1.x based on blank theme. In the product view page, I want to get rid of the fotorama gallery (the images are as normal img tag, ne after another. What I ...
0
votes
1answer
242 views

How can I use webrotate 360 in my image gallery?

Hi I'm trying to add the webrotate360 to my image gallery. Webrotate needs an id or a class to target, so I thought to open up gallary.phtml in magento/module-catalog/view/frontend/templates/product/...
0
votes
1answer
543 views

Elevate zoom on gallery images

Hi i successfuly managed to make my base photo have zoom but when i change my image the zoom is still refering to the base image how can i fix this .. i tried with attribute gallery but its not ...
5
votes
1answer
480 views

Change images as per Swatches using Custom Slider on Product Detail page

I have created Custom Slick slider to display product images on Product detail page. But I want to change images as per change on color Swatches. Note : I'm using getGalleryImagesJson() to ...
1
vote
0answers
697 views

change fotorama slider

I want to place the fotorama slider in an absolute div that is behind other elements. Also the slider should behave like the css background property cover. I found that the slider plugin used has an ...