Demo: https://raj-kumar94.github.io/product-customiser-react/
- Clone the rep
- cd repo
npm installnpm start
open the link http:localhost:3000
Currently app is divided in 3 parts:
- Product view/slider images
- Select options/ Swatch elements
- Grid views (to show views in Grid format)
Shopify's Product data + configuration data gets converted into configObject, sliderImages, and currentLayerColors
check file utils/generatedConfigDummyData.json to see the dummy data.
sliderImagesis the 2D array of images to be displayed on the screencurrentLayerColorsis object containing layers and their selected colorconfigObjectcontains all the info related to the configurator data
TODO:
- Improve Swatch UI
- Add Accordion
- Add hidden input fields to be part of the form