Use view types to group images according to usage context, for example, by the image's size.
First, define a list of view types in the context of a catalog. When you create a new catalog (via the Business Manager or import), the catalog automatically contains the following default view types:
viewtype | Description |
---|---|
large | Large images shown on the storefronts product detail page |
medium | Small images shown on the storefronts search result page |
small | Very small images used to hover over to show the related detail image. |
swatch | Images used to differentiate variation products, for example, based on the variation attribute "color" (Swatches are based on variation products.) |
View types:
String
id
, with an optional name.You can establish a relationship between different view types by ordering the view type image stacks. With this approach, related images have the same position (index number) within the stack. For example, small for hover help and large for the product detail page, represent the same picture but are sized differently.