Admin: Catalog Management

The products table

  • /admin/products lists the whole catalog with brand, category path (Category › Subcategory), variant count and an Active toggle. Use the search box at the top to filter, and + New Product to create a platform-owned item (platform products skip the approval queue).
  • The Active / Hidden toggle flips instantly (HTMX, no page reload). Hidden products disappear from the storefront immediately without being deleted — ideal for temporarily pulling an item.
  • Click a product name (or Edit) to open its edit form: name, brand, subcategory, description, and highlights entered as one Key: Value pair per line (shown as the spec table on the product page). Press Save Product to apply.

Variants

Below the edit form sits the Variants table. Each variant is one purchasable pack size with its own unit label (e.g. "500 g"), price and MRP (entered in rupees — stored internally in paise), stock count, and a Default checkbox controlling which variant a product card shows first.

  • Edit any row inline and press Save; remove one with Delete.
  • The empty bottom row adds a new variant — fill unit, price, optional MRP and stock, then press + Add.
  • When MRP is higher than price, the storefront shows a strikethrough MRP and a "% OFF" badge automatically.
  • A variant at 0 stock shows "Out of Stock" on the card and cannot be added to carts.

Categories & subcategories

  • /admin/categories opens with an Add Category form; each existing category gets its own box showing its storefront slug (/category/<slug>).
  • Subcategories appear as chips — click the × on a chip to delete one, or use the + Add subcategory form in that category's box.
  • Deleting a category (the Delete link, with a confirmation prompt) removes it and all its products — the prompt warns you. The storefront navigation, footer links and category pages reflect changes immediately.

Banners

/admin/banners manages the home-page marketing slots. The Add Banner form takes:

  • Kindhero (the large top banner) or promo (smaller card).
  • Title, Subtitle, Button text (CTA, default "Shop Now") and a Link (e.g. /category/…).
  • Theme — Green, Teal, Yellow or Blue color scheme.

Existing banners list below with Toggle (activate/deactivate without deleting) and Delete. Only active banners render on the home page.

How product images work

There are no image uploads anywhere in QuickKart. Every product, category tile and cart line uses deterministic SVG placeholder art generated by the server at /img/art/<seed>, seeded from the product's slug (and brand). The same product always gets the same artwork, images never 404, and nothing external is fetched. Renaming a product changes its slug and therefore its art.