Storefront Builder Docs
Documentation

CartWhats Setup & Testing Guide

CartWhats runs 100% client-side with zero server runtime required. Customers browse your catalog, pick product options, apply promo codes, and send formatted orders directly to your WhatsApp number.

1. Launching Your Store in 3 Minutes

  1. Open Catalog Builder and enter your business name, WhatsApp number (with country code, e.g. 15550192834), currency, and products.
  2. Click Export store.json to download your live catalog file.
  3. Replace data/store.json inside the app/ folder and upload the folder to Netlify, Vercel, GitHub Pages, or cPanel.

2. Running the Automated Test Suite

All cart math, variant pricing, promo validation, tax rounding, checkout validation, and WhatsApp URL generation live inside src/js/core/order-engine.js with automated Node tests in tests/order-engine.test.mjs:

cd source
npm install
npm test         # Runs unit tests on cart, promos & WhatsApp payload
npm run check:build
Buy on Codester · $29