Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [gallery]

The tag has no usage guidance.

1
vote
1answer
35 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
19 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
33 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
17 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
12 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
39 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
224 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
170 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
24 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.
0
votes
0answers
9 views

Image gallery sort order across multiple store fronts

I have multiple storeviews, and for each view I set to use the defaults on the images tab. However, whilst each view has the correct images, the sort order is incorrect. ie: it follows the sort order ...
1
vote
0answers
50 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
52 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
1k 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
520 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 ...
0
votes
0answers
187 views

Magento 2 - Remove fullscreen zoom on gallery on mobile only?

I have updated my view.xml in the my theme/etc to try and remove the fullscreen zoom on the gallery on mobile devices only. I have updated the following section to set the fullscreen to false: <...
1
vote
0answers
29 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
40 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
21 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
77 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
0answers
201 views

Magento 2 Fotorama - Move gallery thumbnail navigation

I need to move the thumbnail navigation (.fotorama__nav-wrap) that is below fotorama stage (.fotorama__stage) to the product info section to have something like this :
0
votes
1answer
198 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 ...
5
votes
1answer
292 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
318 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
0answers
74 views

Use same image on 2 products from same image file

I'm creating products programmatically. Some of them are configurable product and have the same image. When the image is added to the product media gallery, if the same image already exists, it would ...
0
votes
1answer
375 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
56 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
1answer
208 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
1k 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
460 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
133 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
418 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
385 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
57 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
287 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)...
4
votes
2answers
856 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
54 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
344 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
195 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
32 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
156 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
181 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
482 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
402 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
640 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 ...
0
votes
1answer
786 views

White bars on magento product images with keepFrame(false)

I'm having trouble getting the product images to behave on product view pages. This screen shot is from the product view page. You can see the white bars down the side. All these images seem to be ...
0
votes
1answer
269 views

How to create an product view tab with the images gallery in Magento 2.1?

I'd like to add a new tab on the product view page to show the gallery of images inside this tab.
0
votes
2answers
3k views

How to add media gallery entries via REST API - Magento 2

I stored image in pub/media/catalog/product. How to add that images into media gallery entries. I have tried like http://myhost/rest/V1/products "media_gallery_entries"=> array( array( ...
0
votes
2answers
1k views

Magento2: how can I resize the image used in gallery in the product page.

In magento2 product page, the image gallery is rendered by fotorama. The image size is exactly the same as the one upload to product. Is it possible to resize all the image to the same size/ratio? ...
8
votes
2answers
956 views

Magento 2 is there a faster way to change product media gallery entries programmatically

I need to do a massive update of product data but what I need to do can't be achieved with product import. In example I need to update media gallery and categories for given products, but the solution ...