I need to create price configurator for new light system inside house with angular 7. Im coding it however in plain js instead of typescript + sass.
Page 1. user selects wheather he wants new building or existing one.. Wifi/wires [z1, z2...]
<label>New building</label>
<input type="radio" value="z1">
He should chose size of a building inside option(=this adds different set of controls to page number 3. ) [-o1, -o2...]
<select><option value="-o1">small</option>...
What he wants to build (lights, aircon, detectors... could be multiple) (=adds a different set of controls to page number 4. or adds them ) [y8, y9...]
- Chose controls (android, tv, keychain, movement detector) (could be multiple) [-5x2-24x2]
- Calculate price
I need to add theese values as strings inside variable and then take this new variable and assign prices to it. z1-o1-y8-i-5x2-24x2 > z1 = new building, o1 = small building, y8 = lights (could be multiple options -> aircon, detectors..), i = On/off + timing(could be multiple options -> on/off + dimming...) , 5x2 means that controller type "5" would be twice in this option and "24" also twice. Price of "5" = 1000 and "24" = 2000.
I dont know if im doing this right. It is complicated. How can this be done? Thanks