Case Study

Statamic CMS Website with E-Commerce and Automated LMS Enrollment for Construction Safety Training

Unified Statamic & LMS Platform

Clients purchase courses and their employees are automatically enrolled, onboarded, and certified — no manual steps required.

Seamlessly Connected Website & LMS

Changes made in the training platform instantly appear on the website — no manual updates, no third-party connectors.

Thanks to Laramate, I was able to significantly optimise my training and administrative processes with a tailor-made software solution. Chris's team impressed me with their technical expertise, well-designed workflows and user-friendly implementation. The collaboration was always professional and transparent. I look forward to further projects!

— Stephan Kok, Founder

Safetyworx365 is a provider of occupational safety multilingual instruction courses sold on a B2B basis in Germany. Prior to this project, Safetyworx365 operated a self-built website using a rudimentary drag-and-drop page builder. That system was both costly (approximately €800 per year) and severely limited in capability, offering no meaningful extensibility and no path to e-commerce integration.

The project objective was to rebuild Safetyworx365 website entirely on Statamic CMS and integrate it with the client's existing Learning Management System (LMS), a platform developed separately by Laramate GmbH. The rebuilt website serves a dual purpose:

  • Professional presentational site for the business,

  • Functioning online shop through which B2B clients, independent teams or individual employees can independently discover, evaluate, and purchase safety instruction courses in up to 10 languages.

The commercial rationale was automation. Prior to the new platform, every booking required direct involvement from our client. The website, once rebuilt, and integrated with the LMS, enabled clients to self-register, book courses, pay online, invite their employees, and receive auto generated PDF certifications without any manual intervention from Safetyworx365.

The website currently acts as a public-facing storefront; the LMS handles the full downstream workflow: checkout, payment processing, participant management, course delivery, and certificate issuance.

The project scope therefore encompassed:

  • Website architecture and build on Statamic;

  • Deep technical integration between Statamic and the LMS database;

  • E-commerce product listing and detail page design;

  • Custom SEO integrations including dynamic XML sitemap generation;

  • Live-preview capability for editors managing content that originates outside Statamic's own content model.

What is Statamic and why

Statamic is a PHP-based content management system that stores editorial content as a flat-file system rather than in a relational database. It provides a control panel for editors, a flexible page builder with configurable content blocks and a live-preview interface.

Statamic was selected for this project for one principal reason: its architecture supports deep, bespoke integration with external systems. Unlike conventional CMS platforms that are largely self-contained, Statamic's codebase can be extended to read directly from external databases, to generate content-aware sitemaps from data sources it does not natively manage, and to render live previews of content that exists entirely outside its own content model.

In this project, those capabilities were decisive.

The LMS already held all course data - descriptions, pricing, language availability, certifications - in its own database. Rather than duplicating that data within Statamic or building a dedicated API layer to bridge the two systems, the Statamic application was configured to read directly from the LMS database. This is a materially more efficient integration approach which eliminates service layer, reduces engineering overhead, and ensures that course data on the website is always current without any synchronisation mechanism.

Statamic's extensibility also enabled custom sitemap generation and a custom live-preview integration, both of which are covered in detail under the SEO and Technical Implementation sections below.

Benefits of Statamic compared to the previous provider

As mentioned earlier, the previous solution was a third-party drag-and-drop page builder at approximately €800 per year. Its limitations were significant and directly impeded the client's commercial objectives:

No e-commerce capability The platform offered no pathway to integrating an online shop, which was a stated ambition from the start of the broader engagement.
No integration capability The system could not connect to an external database or LMS, making the envisioned automation of booking and course delivery impossible.
High manual overhead Without an automated checkout and enrolment process, every booking required direct manual involvement in processing, invoicing, and participant management.
Limited editorial control The page builder offered minimal layout flexibility and no capacity for custom content types or dynamic data blocks.
Poor cost-to-value ratio At €800 per year, the system delivered far less than what comparably priced platforms offer.

Statamic, by contrast, provided:

Full e-commerce integration capability, enabling the website to function as a live storefront connected to the LMS.
Direct database-level integration with an external system, without requiring an API.
Complete automation of the post-purchase workflow: course unlocking, email notification, employee invitation and sign up, and issuance of an auto generated PDF certificate.
A flexible page builder with support for custom content block types, including dynamically populated product listings sourced from the LMS.
Extensible SEO tooling, including custom sitemap generation for external content.
Editorial control that separates concerns cleanly: Statamic manages website content interface; the LMS manages course data. Neither system duplicates the other's function.

Statamic benefits by components

CONCEPT DEVELOPMENT

The conceptual architecture of the project is built on a principle of reuse: rather than rebuilding capabilities that already existed in the LMS - checkout, enrolment, participant management, certificate issuance - the website was designed to leverage them. Statamic serves as the public interface and storefront; the LMS remains the operational engine.

This separation of concerns is both technically sound and commercially efficient. It avoids duplication of business logic, reduces the surface area for maintenance, and produces a system where each component does precisely what it is designed to do. The website surfaces data; the LMS processes transactions. The concept transforms an existing operational platform into a commercially accessible product by adding a public-facing layer without altering the platform itself.

The e-commerce model follows established conventions: category browsing, product listing, product detail, checkout. This familiarity reduces friction for B2B buyers and requires no user education.

SEO

Search Engine Optimisation (SEO) was an explicit project requirement and a non-trivial technical challenge. Because course content lives in the LMS database, outside Statamic's content model. Statamic has no native awareness of it. Without intervention, Google would receive no sitemap entries for product pages, which would effectively render the online shop invisible to organic search. For a business acquiring customers through search, this would be a material commercial liability.

Here, 2 custom integrations were developed to address this:

1. Extended XML Sitemap Generation: Statamic's sitemap functionality was extended to include all instruction content sourced from the LMS database. When a new course is created in the LMS, it is automatically added to the Statamic sitemap without manual intervention. This ensures that Google is continuously informed of the full product catalogue.

2. Live Preview for External Content: A custom live-preview integration was built so that editors can preview instruction content within the Statamic control panel even though that content is not stored in or managed by Statamic. This enables editorial quality control over pages that combine Statamic-managed content with LMS-sourced data before they are published.

Both integrations illustrate Statamic's capacity to extend beyond its default functionality to serve complex, real-world SEO requirements.

DESIGN & UX/UI

The product detail page was designed to meet standard e-commerce conventions, presenting:

  • Course imagery / videos,

  • Title,

  • Reviews,

  • Specifications,

  • Languages and,

  • Price per course material.

This data is pulled dynamically from the LMS database via a custom content block.

The page builder architecture allows editors to surround this dynamic data block with manually authored editorial sections covering auxiliary information:

  • How to place an order,

  • How to invite employees,

  • How to obtain a certificate and,

  • Payment options.

The result is a product page that is simultaneously data-driven and editorially flexible. The dynamic content is always current, while the supporting editorial copy can be managed independently through the CMS.

The purchase flow follows a standard e-commerce pattern: product discovery via category listing, product evaluation via detail page, and conversion via a redirect to the LMS checkout. The checkout itself handles self-registration, billing detail entry, employee nomination, and payment. The overall UX mirrors the conventions of a well-established B2B online shop, which reduces on-boarding friction for buyers.

TECHNICAL IMPLEMENTATION

The technical architecture consists of 2 separate repositories:

  1. Statamic CMS application

  2. Safetyworx365 LMS

The key technical decisions are as follows:

Direct database integration (no API layer):

The Statamic application reads directly from the LMS's database. This eliminates the need to build, maintain, and secure a dedicated API between the two systems which inherently reduces engineering complexity and latency.

Flat-file content management:

All content managed within Statamic: page layouts, editorial copy, interactive materials, is stored as a flat-file system which simplifies content versioning and deployment.

Read-only data boundary:

Statamic reads LMS data but does not write to it. Course management remains exclusively within the LMS which prevents data duplication and preserves a single source of truth for course content.

Custom content block type:

A bespoke content block was developed within Statamic to retrieve a specified instruction's data from the LMS database and render it as a structured product listing. This block can be placed within any page in the Statamic page builder and combined with standard editorial sections.

Custom sitemap integration:

Statamic's sitemap generation was extended programmatically to incorporate LMS course data, ensuring full SEO coverage of the product catalogue.

Custom live-preview integration:

A live-preview mechanism was built to allow editors to preview LMS-sourced content within the Statamic control panel, enabling quality review of product pages prior to publication.

Checkout handled by LMS:

The purchase transaction is not processed by Statamic. On clicking to purchase, the customer is redirected to the LMS, where a dedicated checkout flow handles self-registration, billing detail collection, payment processing, course unlocking, email notification, and certificate issuance. Statamic delegates these functions entirely to the LMS, leveraging existing, proven workflows.

ONLINE-SHOP CONNECTIVITY

The online shop is the central commercial function of the rebuilt website. Its implementation spans both Statamic and the LMS:

Product catalogue: Statamic renders a browsable product catalogue sourced from the LMS database, organised by safety instruction category. Each category page lists the relevant courses; each course links to a dedicated product detail page.
Product detail page: A custom Statamic content block retrieves course data from the LMS database and renders it as a structured product listing alongside manually authored editorial content managed in the CMS.
Purchase flow: On initiating a purchase, the customer is redirected from the Statamic website to the LMS checkout. There, they complete self-registration, enter company and billing details, nominate employees for enrolment, and process payment.
Post-purchase automation: Upon successful payment, the LMS automatically unlocks the purchased course, dispatches an email notification with a direct link to the course dashboard, and upon course completion, it generates and delivers a PDF certificate by email.

ONLINE-SHOP CONNECTIVITY

From struggling with a self-built website with constant strain to onboard both employers and employees,  the result is a fully automated end-to-end transaction. From product discovery on the website to certified course completion, no manual involvement from Safetyworx365 is required at any stage.

Your Concern, Our Priority

Reach out - no obligation, just a conversation.

  • Code assessment of legacy system
  • Quality assurance
  • Full client independence- no vendor lock-in
  • Free initial consultation within 24 hours

Your contact person

chris.jpeg
Christian Wolf
Managing Director, Senior PHP Developer