Demo: https://raj-kumar94.github.io/product-customiser-react/
- Clone the rep
- cd repo
npm install
npm 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.
sliderImages
is the 2D array of images to be displayed on the screencurrentLayerColors
is object containing layers and their selected colorconfigObject
contains all the info related to the configurator data
TODO:
- Improve Swatch UI
- Add Accordion
- Add hidden input fields to be part of the form