Have you also searched github for similar software, many times you can get ideas of how it's accomplished there. Are they using barcodes, or doing things manually.
Online store inventory
If I was going to create a website for a supermarket where a person can purchase online, as someone who has never made a website like this how should I approach the inventory part. Should I make it from scratch as something real simple like a table that just stores the product and the current amount and be able to manually add more stock by updating the amount, or should I use a package and if so which one do you recommend?
This is for a small family store so the actual inventory doesn't need to too complex, some of the packages I've seen seen to be for a big store or company and are very complex, personally I don't know if that is the best route for a small store, this is like a mini mart store.
I had thought of having the db something like this
//Tables
products (id, name, image, price)
categories (id, name)
category_product (category_id, product_id)
inventory (id, product_id, amount, last_purchase_date)
cart_products (user_id, product_id, purchase_amount)
sales (id, user_id, cart_products_id)
users (id, username, password)
Also how can I handle the my cart logic, is it best for the user to be logged it in order to add products to their cart or should I allow the person to add stuff to the cart while not being logged in?
I know these are a lot of questions but any tips or tricks are greatly appreciated.
Please or to participate in this conversation.