Last active
May 19, 2020 17:23
-
-
Save dashengz/f44509217a1759ca2afadd9615bf05d7 to your computer and use it in GitHub Desktop.
Corvid by Wix: Product Configurators - Parameters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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