Skip to content
CMD
← Back to Blog

Safety Equipment Ireland: B2B Ecommerce Platform

•4 min read•Work

A quote-based ecommerce platform for industrial safety equipment, built with Next.js and Payload CMS, featuring a custom order workflow, product reviews, and Zoho CRM integration.

Next.js 15Payload CMS 3React 19TypeScriptPostgreSQLTailwindCSSStripeZoho CRMEcommerce

A B2B ecommerce platform for industrial safety equipment sales in Ireland. Instead of a traditional cart-and-checkout model, the site uses a quote-based purchasing flow — customers browse products, build a cart, and submit a quote request. The sales team then reviews, prices, and responds through the admin panel.

Project Overview

Safety equipment sales in Ireland are typically handled over the phone or email. The goal was to bring product discovery online while keeping the quote-based sales process that B2B buyers expect — no one is buying 200 hard hats with a credit card on impulse.

The platform handles product catalogue management, quote workflows, customer accounts, product reviews, and CRM integration in a single application.

Core Requirements

  • Product catalogue with variants, inventory tracking, and multi-faceted search
  • Quote-based ordering instead of traditional checkout
  • Customer accounts with order history and address management
  • Product review system with admin moderation
  • CRM integration for lead tracking
  • Transactional email through Microsoft 365

Technical Architecture

LayerTechnology
FrontendNext.js 15 (App Router), React 19, TypeScript
CMSPayload CMS 3, Lexical Rich Text Editor
EcommercePayload Ecommerce Plugin (extended)
DatabasePostgreSQL with migrations
StylingTailwindCSS 4, shadcn/ui, Radix UI
Media StorageDigitalOcean Spaces (S3-compatible)
PaymentsStripe
CRMZoho CRM via webhook
EmailMicrosoft Graph API with Azure OAuth2
Bot ProtectionCloudflare Turnstile
TestingVitest (integration), Playwright (E2E)

Three route groups separate the public shop (app), customer accounts (account), and admin panel (payload).


Key Features

1. Quote-Based Order Workflow

The core difference from standard ecommerce. Customers add products to a cart and submit a quote request instead of paying immediately. The order is created with a pending_quote status and flows through a custom status chain:

pending_quote → quoted → accepted / rejected → processing → completed

The admin sets a quotedPrice and writes a quoteResponse from the admin panel. Status changes trigger emails to the customer at each step — different templates for quotes, acceptances, rejections, and fulfilment updates. If an order is cancelled, a hook restores inventory for both simple products and variant-level stock.

2. Product Catalogue

Products support variants with per-variant pricing, inventory, and gallery images. Each product has a searchableText field that's auto-generated from the Lexical description via a beforeChange hook — this extracts plain text from the rich text nodes so full-text search doesn't need to parse Lexical JSON at query time.

The shop page filters by category, manufacturer, and industry with full-text search across both the title and the generated searchable text field.

3. Product Reviews

Customers can leave ratings and written reviews on products. Reviews go through a moderation queue — pending, approved, or rejected — before they appear publicly. The system tracks verified purchases and aggregates an average rating and review count on each product.

4. Hotspot Block

A content block that can auto-populate products by category, bestsellers, newest, or highest-rated. Supports grid, carousel, or list layouts with toggleable price display and add-to-cart buttons. Editors pick a populate mode and the block handles the query.

5. Quote Submission Security

Quote requests and user registration are protected with Cloudflare Turnstile. The token is validated server-side before any data is processed — the quote isn't created, the CRM webhook isn't fired, and no emails are sent until the CAPTCHA passes.

6. CRM Integration

Quote requests are forwarded to Zoho CRM as webhook payloads. Contact form submissions are also mapped and sent to Zoho Forms. Both run as afterChange hooks — if the webhook fails, the submission still succeeds so the customer isn't blocked by a third-party outage.

7. Transactional Email

All emails — welcome messages, quote confirmations, status updates, password resets — route through Microsoft 365 via a custom Graph API adapter with Azure OAuth2. Email templates are built with React Email components, so each status change sends a different template with the relevant order details.

8. Inventory Management

Stock is tracked at both the product and variant level. When a quote is accepted and becomes an order, inventory is decremented. When an order is cancelled, a hook walks the order items and restores stock — checking whether each product uses variants before deciding which inventory counter to update.


Summary

This project takes the Payload ecommerce plugin and reshapes it around a B2B quote workflow. The standard cart-to-checkout path becomes cart-to-quote-to-negotiation-to-order, with status-driven email automation and CRM forwarding at each step. Product discovery is handled through generated search text and multi-faceted filtering, and the review system adds a trust layer that most B2B catalogues skip.