Terms of sale template in WordPress
Ready-to-fill terms of sale for a showcase site selling to consumers: seller, ordering, prices, delivery, withdrawal with a copyable form, statutory warranties and mediation, with 26 highlighted fields to complete and a side table of contents that follows the reader.
Here is an excerpt of this component's code in WordPress. The full code is free for members, ready to copy into your project.
This component also comes in
The code in WordPress
<?php
/**
* Plugin Name: Forge, Modèle de conditions générales de vente
* Description: Des conditions générales de vente prêtes à remplir pour un site vitrine qui vend à des particuliers : vendeur, commande, prix, livraison, rétractation avec formulaire à copier, garanties légales et médiation, avec 26 champs à compléter surlignés et un sommaire latéral qui suit la lecture. Ajoute la composition « Modèle de conditions générales de vente » à l'éditeur de blocs.
* Version: 1.0.0
* Requires at least: 6.6
* Requires PHP: 8.1
* Author: Forge
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: forge-page-cgv-modele
*<!-- wp:html -->
<article class="pcgv" data-pcgv aria-labelledby="pcgv-titre">
<header class="pcgv__head">
<p class="pcgv__eyebrow">Vente aux particuliers</p>
<h1 class="pcgv__title" id="pcgv-titre">Conditions générales de vente</h1>
<p class="pcgv__updated">Dernière mise à jour : <mark class="pcgv__field" data-pcgv-field tabindex="-1"><span class="pcgv__sr" data-pcgv-sr>À compléter : </span>date de mise à jour</mark></p>
<div class="pcgv__notice" data-pcgv-notice>
<svg class="pcgv__notice-icon" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><circle cx="12" cy="12" r="8.5"/><path d="M12 11v5M12 8v.01"/></svg>
<div class="pcgv__notice-body">
<p class="pcgv__notice-text"><strong>Modèle à compléter.</strong> Remplacez chaque champ signalé <span class="pcgv__field">comme ceci</span> par vos informations, puis retirez cet encadré avant la mise en ligne.</p>
<p class="pcgv__status" data-pcgv-status aria-live="polite" hidden></p>
<button class="pcgv__next" type="button" data-pcgv-next hidden>(() => {
if (!document.querySelector(".pcgv")) return;
document.querySelectorAll("[data-pcgv]").forEach((root) => {
const fields = [...root.querySelectorAll("[data-pcgv-field]")];
const notice = root.querySelector("[data-pcgv-notice]");
const status = root.querySelector("[data-pcgv-status]");
const next = root.querySelector("[data-pcgv-next]");
const links = [...root.querySelectorAll("[data-pcgv-toc] a")];
const sections = links.map((link) => root.querySelector(link.hash));
const reduce = matchMedia("(prefers-reduced-motion: reduce)");
const label = (field) => field.lastChild.textContent.trim();
let index = -1;:root {
--pcgv-radius: 20px;
--pcgv-text: #0f172a;
--pcgv-body: #334155;
--pcgv-muted: #475569;
--pcgv-surface: #ffffff;
--pcgv-line: #e2e8f0;
--pcgv-accent: #4338ca;
--pcgv-accent-soft: #eef2ff;
--pcgv-field-bg: #fef3c7;
--pcgv-field-text: #78350f;
--pcgv-field-line: #b45309;Free component: copy it freely, including for commercial projects.
Other error pages components in WordPress
Error pages components in WordPress
A ready-to-publish changelog page: dated, versioned notes grouped by month, each with a type badge (new, improvement, fix), module tags and filters that announce how many notes are shown.
- Tailwind
- React
- CSS
- WordPress

A ready-to-fill GDPR privacy policy for a showcase site: controller, data collected, purposes, retention periods, recipients, rights and cookies, with 24 highlighted fields to complete and a side table of contents that follows the reader.
- Tailwind
- React
- CSS
- WordPress

A ready-to-fill French legal notice page: publisher, host, SIRET, contact, intellectual property and personal data, with 16 highlighted fields to complete and a side table of contents that follows the reader.
- Tailwind
- React
- CSS
- WordPress

The page shown after a quote request or contact message: clear confirmation, announced response time, printable summary, next steps and useful links.
- Tailwind
- React
- CSS
- WordPress

Maintenance page
FreeA page shown during maintenance, with the expected return time and ways to stay informed.
- Tailwind
- React
- CSS
- WordPress

A clean not-found page with a large error code, a search field and links to the main sections.
- Tailwind
- React
- CSS
- WordPress