E-commerce2026

One for One

Building a store that sells in Morocco — cash on delivery, WhatsApp, and a back office the team already knows how to use.

Next.jsTypeScriptTailwind CSSMotionGoogle Apps ScriptVercel
Visit live site
One for One — full preview

The Problem

One for One sells cotton jogging sets with a simple promise: part of the profits goes to people who are cold. Selling online in Morocco has its own rules — most customers pay cash on delivery, expect free shipping, and want to talk to someone on WhatsApp before ordering. The team needed a store that felt premium, loaded fast on phones, and fed orders into a tool they could manage without learning a new dashboard.

The Approach

I built the store with Next.js and Server Actions. The checkout validates the order on the server (product, size, Moroccan phone number, city) and sends it to a Google Apps Script web app that writes it as a row in the team's orders Sheet, with a status column they update as each order ships. If the Sheet is unreachable, orders fall back to WhatsApp so a sale is never lost. Product pages have their own Open Graph images, a body-measurement size guide, swipeable photos on mobile, sold-out states and launch offers with crossed-out prices — all driven from a single content file so the catalogue is quick to change.

Key Design Decisions

Google Sheets as the Back Office

Instead of building an admin panel nobody would open, orders go where the team already works. A token-protected Apps Script endpoint appends each order with its own number, timestamp (Casablanca time) and status dropdown. The server action throws if the row wasn't written, so the customer is told instead of an order silently disappearing.

Built for How Moroccans Buy

Cash on delivery and free delivery are stated up front, WhatsApp is one tap away in the header, and the copy speaks both French and Darija. These details matter more for conversion here than any animation.

Selling on Quality

The product page was reworked to sell the fabric and fit: flat and folded product photography, a single colour shown as plain information instead of a picker, and a size guide built around a body measurement chart to cut down on returns.

The Results

One for One is live at oneforone.ma, taking real orders that flow straight into the team's Sheet. Running offers, adding colours or marking a set as sold out is a small content change instead of a rebuild.