Quick Snack Commerce
I built an online snack ordering storefront with PHP/Laravel, JavaScript, and MySQL featuring a no-reload cart and admin order queue.
Project Type
E-Commerce Project
My Role
Full-Stack Web Developer
Year Built
2024
Tech Stack Used
Why This Project Was Needed
Reloading the whole page every time a user adds an item to their cart makes mobile food ordering slow and frustrating.
Architecture, API & Database Implementation
Quick Snack Commerce lets customers browse categorized snacks, adjust cart quantities without refreshing the page, apply discount coupons, and submit orders to an admin kitchen screen.
- JavaScript Fetch/AJAX cart requests connected to Laravel endpoints so cart counts update without page reloads
- MySQL tables for `categories`, `menu_items`, `orders`, `order_items`, and `coupons`
- Three-step checkout flow with address validation and order total calculation
- Admin order screen to move tickets through `Pending`, `Preparing`, `Out for Delivery`, and `Completed`
What Was Hard & How I Solved It
Challenge: Keeping cart subtotals accurate when users tap +/- quickly or apply promo codes.
Solution: I recalculated item totals and coupon discounts on the PHP server during every cart call and returned the updated JSON back to the browser.
Key Features Shipped
- No-reload Fetch/AJAX shopping cart and server-checked promo codes
- Admin kitchen queue for updating live order status
- Mobile-friendly menu filters and simple checkout steps
Next Case Study