Product Gallery Options
The Hyvä Default Theme Product Gallery is primarily managed through the phtml
template.
As a result, any customizations made in the etc/view.xml
file for the Luma Fotorama Gallery are not applicable here.
The Product Gallery in Hyvä does support some configuration options, though these are limited to behavioral settings, not styling.
If you're looking for more design and styling flexibility, we recommend exploring the Hyvä UI Galleries.
etc/view.xml
Options
gallery_switch_strategy
The gallery_switch_strategy
option allows you to define how new images are loaded into the gallery when product options are selected.
<vars module="Magento_ConfigurableProduct">
<var name="gallery_switch_strategy">append</var> <!-- 'append' or 'replace' -->
</vars>
- append: Adds new images to the existing gallery.
- replace: Replaces the current images with the newly selected images.
Video Options
As of version 1.3.6 of the Hyvä Default Theme, all video-related options—except for Autostart base video—are supported in the Product Gallery.
You can configure these settings by navigating to:
Stores → Configuration → Catalog → Catalog → Product Video
Hyvä UI Galleries
For more extensive customization without needing to modify phtml
files, Hyvä UI Galleries offer additional configuration options.
This includes bringing back certain settings from etc/view.xml
, such as:
- navdir: Allows you to set the direction of the thumbnail navigation (horizontal or vertical).
Hyvä UI also introduces several new options that are exclusive to its gallery system.
For a more customized, styled gallery experience, we recommend checking out Hyvä UI and the corresponding documentation: Hyvä UI Gallery Options.
Related etc/view.xml
Documentation
For more information about the etc/view.xml
configuration, please refer to the following resources: