FarmCrate - Online Vegetable Ordering System PHP Project connects farmers directly with city customers. Farmers list what they harvested with a photo, price, stock, harvest date and shelf life. Customers see who grew every vegetable and when it was picked, add items from many farmers to one cart, choose a delivery slot and pay online or by cash on delivery. The hub admin verifies farmers, approves listings, delivers orders with an OTP and settles farmer payments.
How it works
- Farmer registers his farm and lists produce; admin verifies the farmer and approves the listing
- Customer checks the pincode, filters vegetables (category, picked today, village, price, organic) and adds items to the cart
- Checkout locks the stock and the delivery slot place, so the last kilo or slot is never sold twice
- Customer pays with Razorpay (test mode), demo payment or cash on delivery; unpaid online orders auto-cancel after 30 minutes
- Each farmer accepts his part, marks unavailable items (bill reduced and refunded) and packs it
- Hub sends the crate out for delivery and marks it delivered only with the customer's 4-digit OTP
- Customer rates the farmers; admin settles farmer earnings with a UTR reference
Users
- Customer - browse, cart, checkout, pay, track order, cancel, rate farmers
- Farmer - list produce with photo, new harvest update, pick list, pack orders, earnings, reviews
- Admin - approvals, categories, delivery slots, dispatch and OTP delivery, payments, settlements, reports, settings
Highlights
- 3 roles, 48 pages, 13 MySQL tables, 70 PHP files
- Freshness tag and meter on every item (harvest date + shelf life); old stock leaves the shop automatically
- One cart from many farmers, split into farmer packs with a 5-step farm-to-door journey
- Stock and slot capacity protected with transactions and row locks (SELECT ... FOR UPDATE)
- Razorpay test mode + demo mode + cash on delivery, printable receipt with QR
- Validations on every form (client and server), CSRF tokens, prepared statements, bcrypt passwords
- Admin dashboard with charts, sales report with date filter and print
- Demo logins: admin / admin123, rahul@gmail.com / 123456, sunil@gmail.com / 123456
What you get
- Complete PHP source code with SQL file and sample data (205 orders, 11 farmers)
- Project report (55 pages) with 8 diagrams, abstract, explanation with viva questions, setup guide - all as PDF
- Screenshots and README with a 10-minute demo script
Who can use this project
BCA, BSc Computer Science / IT, MCA, Diploma (Computer / IT) final year students and Engineering 2nd / 3rd year micro project groups.
Frequently asked questions
Does it run without internet? Yes. Everything works offline on XAMPP in demo payment mode; internet is needed only for the Razorpay test checkout.
Is the payment real? No. Razorpay runs in test mode only, so no real money is charged.
Is it enough for a group of 3 students? Yes. The README and the explanation document give a 3-student work split and a 3-demo plan.
Which PHP version is needed? PHP 8 with MySQL / MariaDB (XAMPP 8.x).