Dev.to WebDev πŸ›  Dev πŸ‘ 0 πŸ“– 1 min read

Static Site, Dynamic Quotes: How a Morocco Transfer Site Handles Pricing Without a Backend

Most small travel operators either show stale prices or none at all. We run Marrakech Transport, a private driver service in Marrakech, and we chose a third path: no prices on short rides, and a quote flow that lands dir

Most small travel operators either show stale prices or none at all. We run Marrakech Transport, a private driver service in Marrakech, and we chose a third path: no prices on short rides, and a quote flow that lands directly in WhatsApp.

The problem with publishing prices

Airport and in-town rides in Marrakech vary with flight time, luggage, group size and where the riad sits in the medina. A fixed number on a page is either wrong or misleading. Worse, a cheap headline price gets screenshotted and quoted back months later.

What we built instead

  • Static pages, generated at build time (Astro). No database, no CMS bill.
  • A build-time guard that scans every rendered page, PDF and article for price strings and fails the build if a short-ride price slips through.
  • Prefilled WhatsApp links. Each button opens wa.me with a message that already contains the route, date fields and a source tag, so the dispatcher knows which page the customer came from.
export function whatsappHref(text: string) {
  return `https://wa.me/${phone}?text=${encodeURIComponent(tagged(text))}`;
}

Why a source tag matters

One office answers messages for several sites. A fixed, untranslated tag at the start of every message makes conversations searchable in any language β€” French, Spanish or English customers all produce the same prefix.

Results so far

  • Zero server cost beyond static hosting.
  • No support tickets about "the price on your website".
  • Quotes go out in minutes from a phone, which is how the drivers already work.

Takeaways for other small operators

  1. Don't publish numbers you can't honour every day of the year.
  2. Put a test in your build that enforces the rule β€” humans forget.
  3. Meet customers in the channel they already use.

If you're travelling to Marrakech and want a private transfer, the site is navetteforyou.com.

πŸ“° Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.