Pages
| Page | URL | Code |
|---|---|---|
| Home | / |
app/(client)/(home)/page.tsx |
| Shop | /shop |
app/(client)/shop |
| Category | /category/[slug] |
app/(client)/category/[slug] |
| Product | /product/[slug] |
app/(client)/product/[slug] |
| Deals, best deals, offers, gift | /deals, /best-deals, /offers, /gift |
app/(client)/… |
| Stores | /stores |
app/(client)/stores |
| Wishlist, compare, cart | /wishlist, /compare, /cart |
app/(client)/… |
| Order confirmed | /success |
app/(client)/success |
| About, contact, FAQs, help, terms, privacy | /about, /contact, /faqs, /help, /terms, /privacy |
app/(client)/(user)/…, app/(client)/help |
| Sign in, sign up | /auth/signin, /auth/signup |
app/auth |
Customer account
Signed-in customers get an account area under /user:
| Page | URL |
|---|---|
| Dashboard | /user |
| My orders | /user/orders |
| Order details and timeline | /user/orders/[id] |
| Wishlist | /user/wishlist |
| Settings | /user/settings |
The order timeline follows the order status: placed (pending), confirmed, packed, out for delivery (delivering), delivered and complete. Unpaid orders show a Pay now button.
Cart, wishlist and compare
These are saved in the visitor’s browser with Zustand (store.ts, wishlistStore.ts, compareStore.ts), so they survive reloads without an account. Compare holds up to 4 products.
Prices
In Sanity, price is what the customer pays and discount is the percent off the compare-at price. A $180 piece at 10% off shows a compare-at price of $200.
Search
The search box in the header looks up products by name and short description as the shopper types (on the server, so no extra setup), and shows new arrivals before they type.