Question

Is it possible to override the product image size declared in view.xml when you're in fotorama fullscreen mode in PDP? My goal is to change the image sizes when you're in fullscreen mode.

Was it helpful?

Solution

Found the answer.

you can update the forotama thumbnail size buy adding a setter in GalleryOptions.php in Magento_Catalog in getFSOptionsJson() to be exact.

As for the main image, the height is automatically calculated to fit the to the screen.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top