Skip to main content
The image swiper turns the card image into a small gallery: shoppers swipe on mobile, or use arrows and dots on desktop, to see the other images of the product without opening it.
The image swiper needs the new product cards: window.useNewProductCards = true. See Overview.

How to activate the swiper

Set type: 'swiper' in window.productCardOptions. Add it in the Frenzy callback file, assets/frenzy-callback-function.js.
assets/frenzy-callback-function.js
That is all you need: the swiper uses the default values below. The card template must have the main image with the class frenzy_img_first; the swiper is drawn in its place.
The swiper is shown on collection pages, the search results page and, if enabled, in recommendation carousels. It is not shown in the search suggestions dropdown.

Options

Pass them in swiperOptions. None are required: a key that is not set keeps its default value.
When the swiper is active, the secondary image on hover is turned off. To show a different image on hover for each slide, use hoverVariantImages in the swatches (see Swatches).

Example

Swiper on mobile only, with dots and no loop

assets/frenzy-callback-function.js

How to get images for the swiper

The swiper shows a list of images:
  • Cards without swatches: all the product images synced to Frenzy, in the same order as in Shopify. To change them, change the product media in Shopify admin and wait for the next product sync.
  • Cards with swatches: the variantImages of the selected swatch. They change when the shopper selects another color.
The variant data that Frenzy sends has only one image per variant. To show every image of each color, get them from Shopify as in Swatches – Example 2.