Website kits › Haat › Bag and checkout

Bag and checkout

The bag splits into one parcel per seller, each with its own date and fee; cash on delivery is checked per seller.

Bag and checkout is a bag and checkout from Haat, a website kit with 5 pages: A working multi-seller marketplace for Pakistan: compare sellers, live facet search, a bag split by seller, Urdu and English. Price: $5 for the whole pack.

Built with: split by seller, cash on delivery rules, inline validation.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

Bag and checkout props

PropTypeDefaultDescription
darkboolean
photosRecord<string
seedbooleanFill an empty bag with a few lines from four sellers (store showcase).
autoplayboolean
onNavigate(page: string) => void
onOrder(o: HaatOrder) => void

Methods on the ref

Use it in React

import HaatBag from './HaatBag';

<HaatBag />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Haat

Good for: Multi-vendor marketplace, Pakistan, Pakistan e-commerce, Right-to-left (RTL).