The problem
Buying hair online is personal and expensive. Shoppers worry about colour, density and fit, and many want to pay on delivery. A generic store template would have shown products and hoped for the best.
What we built
A Next.js store with a guided starting point, product pages written to answer fit and care questions, and a checkout that leads with UPI and keeps cash on delivery. Every order is stored in PostgreSQL with its payment state, so nothing depends on a third-party dashboard.
Built to learn
The store has its own experiment system. Each visitor is assigned to a variant deterministically and events are logged to the database, so changes are judged on orders and returns rather than clicks.
Speed and search
Pages are server-rendered with structured data, and images are served as WebP directly by nginx, which cut the main image load time noticeably in lab tests. The information architecture was planned for search from day one rather than added later.
What is inside
- UPI-first checkout through Razorpay, with cash on delivery
- Orders and customer records in PostgreSQL
- Built-in experiment platform with per-visitor assignment
- Search-friendly structure: categories, shades, solutions and guides
- Product schema and a shopping feed generated from the catalogue
- Images served as WebP straight from the web server for fast loads
Technology
Next.js 15, PostgreSQL, Razorpay UPI, Cash on delivery, A/B testing.