Comments (3)
@sourabhz-7 You need to add a new field to every single document on your firestore collection.
To my knowledge, you can't yet do this in your firebase console directly but you can try to execute this in your app. You need to remove this once you have successfully run it.
(async function () {
const col = await firebase.db.collection('products').get();
col.forEach((doc) => {
doc.ref.update({
// add new field of your likeness and set default value
frameSize: {
eye: 50,
bridge: 20,
temple: 142,
height: 36
},
availableColors: ['#000000', '#c500c5', '#840309', '#004d84', '#753600']
});
})
})()
Now you all you have to do is to update the products view page to consume these new fields. And on the admin, you need to add a new color input field to control these new field.
from ecommerce-react.
Please see the latest commit b15e4db
Check the changes and additions for this.
from ecommerce-react.
from ecommerce-react.
Related Issues (20)
- Getting 'Product thumbnail image is required' alert when I try to update an existing product. HOT 1
- Blank white screen HOT 3
- problem with dev-server
- stuck on sign in HOT 1
- Making the code mobile responsive
- In the header of the page shop the design is not displaying well (Go to home and click shop now to see the page)
- Is there a detailed firebase guide?
- Need to update ReadMe doc HOT 1
- Not able to manage or see users from the admin panel
- Could not reach Cloud Firestore backend
- How to run with localhost and remove CORS? HOT 1
- Salut vous pouvez m'aider à avoir le code source complèt
- no featured products found & no recommend products found
- getting blank screen after fixing from issues closed by you also HOT 2
- not running on my local
- difficulty in finding firestore db url HOT 1
- Text not vertically centered HOT 1
- Error while sign up HOT 1
- Feature: Add Tooltips HOT 1
- checkout works on local but dose not work on server HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ecommerce-react.