From WooCommerce to a headless bilingual storefront - engineered so stock never lies.
WooCommerce had been outgrown. The Gulf storefront needed to match a Swiss heritage brand's standard, serve English and Arabic natively - and treat FIG, the warehouse system, as the single source of truth for stock, so the site could never sell what the warehouse doesn't have. Payments had to be engineered for reality: webhooks arriving twice, sessions dying mid-checkout, stock changing by the minute.
Next.js 14, React, and TypeScript on Supabase/PostgreSQL - a fully owned commerce stack with native Arabic RTL via next-intl, Stripe payments, and Resend transactional email.
A scheduled job reconciles stock with the warehouse every 15 minutes - normalized barcode matching with an ItemCode fallback, and anything FIG no longer lists goes automatically unavailable.
Live availability checks in the cart and again at checkout - verification fails safe, so a race between two shoppers can never end in a broken promise.
Atomic 15-minute checkout reservations, idempotent fulfillment - a webhook and a success page can never double-process - verified signatures, holds released on failure, rate-limited payment intents, and admin roles with audit trails.
| Guarantee | How it holds |
|---|---|
| No double fulfillment | Idempotent payment processing - webhook and success page can never both fulfill an order |
| No ghost holds | Failed payments release stock reservations automatically; 15-minute atomic expiry as backstop |
| No wrong prices | Prices re-fetched server-side at purchase - the catalog can never quote stale numbers |
| No silent data loss | Stock-sync failures preserve the last good state; signatures verified; intents rate-limited |
| No unauthorized actions | Admin role separation with warehouse permissions and full audit trails |
Platform, paid media, and customer communication - one partner, one system, returns you can measure.
Book a strategy call →