How to activate the swiper
Settype: 'swiper' in window.productCardOptions. Add it in the Frenzy callback file, assets/frenzy-callback-function.js.
assets/frenzy-callback-function.js
frenzy_img_first; the swiper is drawn in its place.
Options
Pass them inswiperOptions. 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
variantImagesof the selected swatch. They change when the shopper selects another color.