Skip to content

Instantly share code, notes, and snippets.

@dashengz
Last active May 19, 2020 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dashengz/f44509217a1759ca2afadd9615bf05d7 to your computer and use it in GitHub Desktop.
Save dashengz/f44509217a1759ca2afadd9615bf05d7 to your computer and use it in GitHub Desktop.
Corvid by Wix: Product Configurators - Parameters
// Step 1: Specify the IDs of the components on your dynamic product page
const _options = [
// Three sets of options
{
overlay: '#image2',
title: '#text14',
repeater: '#repeater1',
button: '#button1',
buttonImage: '#image5'
},
{
overlay: '#image3',
title: '#text15',
repeater: '#repeater2',
button: '#button2',
buttonImage: '#image6'
},
{
overlay: '#image4',
title: '#text16',
repeater: '#repeater3',
button: '#button3',
buttonImage: '#image7'
}
];
const _databases = [
'#dataset1', // options
'#dataset2' // customizations
];
// Next step: Add in ProductConfigurators class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment