Skip to content

License pricing: personal, commercial, agency in WordPress

Three one-time payment licenses, what each one allows line by line (client site, number of sites, resale) and the recommended plan highlighted.

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

Open in a new tab

The code in WordPress

pattern.html
<!-- wp:html -->
<section class="tlic" data-tlic lang="fr" aria-labelledby="tlic-titre">
        <header class="tlic__header">
          <p class="tlic__eyebrow">Licences</p>
          <h2 id="tlic-titre">Une licence, un paiement, pour toujours</h2>
          <p class="tlic__intro">Choisissez la licence selon l’usage du template : votre site, celui d’un client ou toute une agence. Vous payez une fois, les mises à jour restent gratuites.</p>
        </header>
        <div class="tlic__picker" data-tlic-picker hidden>
          <fieldset class="tlic__fieldset">
            <legend class="tlic__legend">Votre projet ?</legend>
            <div class="tlic__options">
              <label class="tlic__option">
script.js
(() => {
  if (!document.querySelector(".tlic")) return;
  document.querySelectorAll("[data-tlic]").forEach((root) => {
    const cards = [...root.querySelectorAll("[data-tlic-card]")];
    const radios = [...root.querySelectorAll("[data-tlic-choice]")];
    const status = root.querySelector("[data-tlic-status]");

    function show(radio) {
      cards.forEach((card) => {
        const match = card.dataset.tlicCard === radio.value;
        card.dataset.match = String(match);
        card.querySelector("[data-tlic-match]").hidden = !match;
style.css
:root {
  --tlic-text: #1b1923;
  --tlic-body: #545160;
  --tlic-card: #ffffff;
  --tlic-line: #dedae6;
  --tlic-track: #ebe8f1;
  --tlic-accent: #6d28d9;
  --tlic-accent-hover: #5b21b6;
  --tlic-on-accent: #ffffff;
  --tlic-ghost-hover: #f1eff6;
  --tlic-checked-bg: #1b1923;
  --tlic-checked-text: #ffffff;
tarifs-acces-complet-licences.php
<?php
/**
 * Plugin Name: Forge, Tarifs par licence : personnelle, commerciale, agence
 * Description: Trois licences en paiement unique, ce que chacune autorise ligne par ligne (site client, nombre de sites, revente) et la formule recommandée mise en avant. Ajoute la composition « Tarifs par licence : personnelle, commerciale, agence » à 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-tarifs-acces-complet-licences
 *

Free component: copy it freely, including for commercial projects.

Pricing tables components in WordPress
  • A table comparing what each license includes: update and support length, response time, number of sites, client hand-over. A switch extends support and updates the prices.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A session pack grid that computes the price per session and the money saved, with an optional reduced rate.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Service cards with “from” prices, duration and a quote request button, filterable by family.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • Three plans side by side, the middle one highlighted.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component
  • A single plan presented in detail, with a reassuring satisfaction guarantee.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component