Lets store Products In CSV (Comma sepearated) Files
- As a first step, we wanted to save products to a csv file.
- For this we have used the standard module csv. Refer Here for the official docs
- Refer Here for the changes done in the class
- This code is verified, where we were able to add one product.
- Now lets add one more product, we found the data to overriting, so changed the mode
- Refer Here for the changes done to make the save work.
- As of now we have two outstanding issues to be fixed
- Extra line is getting created
- Header in csv file would be better.
Refer Here for the next set of changes done
To maintain stock of the items we need
- id of the product
- remaining stock
Create an account in vp online Refer Here