Configuring White Label Storefronts¶
There are two places to configure: the extension settings, which apply to all storefronts, and the fields of each storefront.
Extension settings¶
Open Extensions in the admin area and edit White Label Storefronts.
| Setting | Type | Default | What it does |
|---|---|---|---|
| Storefront domain base | Text | empty | The domain that storefront subdomains are appended to. With example.com, the storefront acme is activated by requests to acme.example.com. Empty means no host is ever resolved to a storefront. |
| Resolve storefronts from subdomains | Checkbox | on | When on, every web request is checked: if its host is <slug>.<domain base> and an active storefront has that slug, the storefront is activated for the visitor's session. When off, hosts are ignored. |
| Enable /s/{slug} storefront pages | Checkbox | on | When on, the branded page is available at /s/<slug>. When off, every /s/<slug> address returns a 404. |
The domain base is cleaned before it is used: it is lower-cased, and a scheme (https://), a path, a query string, a port and leading or trailing dots are removed. https://Example.com/, .example.com and example.com:443 all become example.com.
Warning
The branded page exists only at /s/<slug>. If you switch off Enable /s/{slug} storefront pages, no branded page is left. Subdomains then still activate the storefront for attribution, but the visitor sees your normal Paymenter pages.
Subdomains¶
A subdomain does not show a page of its own. A request to acme.example.com stores the storefront acme in the visitor's session and then continues to whatever Paymenter page was requested. The branded page is still /s/acme, which you can also open on the subdomain: https://acme.example.com/s/acme.
To use subdomains:
- Create a wildcard DNS record (
*.example.com) that points at your Paymenter host. - Make sure your web server and TLS certificate accept the wildcard host name.
- Set Storefront domain base to
example.comand leave Resolve storefronts from subdomains on.
A host is resolved only if it is exactly <slug>.<domain base>. Nested hosts such as a.acme.example.com and hosts under another domain are ignored. Inactive storefronts are ignored.
Storefront fields¶
Open Storefronts and click New storefront, or Edit on an existing one.

| Field | Type | Default | What it does |
|---|---|---|---|
| Name | Text, required, up to 120 characters | none | Shown as the heading of the storefront page and used as the page title. |
| Slug | Text, required, up to 60 characters, unique | none | Used in /s/<slug> and in <slug>.<domain base>. Letters, numbers, dashes and underscores are accepted. The slug is trimmed and saved in lower case. |
| Tagline | Text, up to 180 characters | empty | One line under the name. Also used as the page description. |
| Description | Text area | empty | Text block under the tagline. Line breaks are kept. Printed as plain text. |
| Logo | Image upload | none | Shown in the header at 72 by 72 pixels. Stored on the public disk in the folder storefronts. |
| Primary colour | Text, up to 32 characters | #6366f1 |
Colour of the storefront name, the line under each category title, the prices and the View product buttons. |
| Active | Toggle | on | An inactive storefront returns a 404 at /s/<slug>, is not resolved from its subdomain and receives no attributions. |
| Custom CSS | Text area | empty | Printed in a <style> element on this storefront's page. See Custom CSS. |
| Earn a commission | Toggle | off | When on, a commission is created for each invoice attributed to this storefront. |
| Commission type | Select, required | Percentage of subtotal | Fixed amount or Percentage of subtotal. |
| Commission value | Number, required, 0 or higher | 0 |
The fixed amount per attributed invoice, or the percentage. |
Note
Use only lower case letters, numbers and dashes in a slug that you want to reach through a subdomain. The form accepts underscores, but underscores are not valid in host names.
Primary colour¶
The value is used if it is a hex colour (# followed by 3 to 8 hex digits) or an rgb(), rgba(), hsl() or hsla() value made of digits, dots, commas, percent signs and spaces. Anything else, including colour names such as red, is not rejected by the form. The storefront page then uses the default #6366f1.
Commission¶
- Fixed amount: the commission is the commission value, for every attributed invoice, whatever the invoice amount.
- Percentage of subtotal: the commission is
invoice amount × value ÷ 100, rounded to two decimals.
The invoice amount is the sum of the invoice's items (price times quantity). The form does not cap the percentage at 100.
The commission is calculated once, when the invoice is paid. Changing a storefront's commission settings later does not change commissions that already exist.
Custom CSS¶
The CSS is printed on the storefront page after the extension's own styles. Before it is printed, the extension removes:
</stylesequences,- the tags
script,style,iframe,link,meta,object,embedandsvg, @importrules,expression:andjavascript:.
The CSS is not scoped for you. It applies to the whole page while the storefront page is open, including the navigation and footer of your theme. Start your selectors with .storefront-brand to style the storefront area only.
The page uses these classes:
| Class | Element |
|---|---|
.storefront-brand |
Wrapper of the whole storefront area. Carries the attribute data-storefront="<slug>". |
.storefront-header |
Header box with logo and text |
.storefront-logo |
Logo image |
.storefront-header-text |
Wrapper of name, tagline and description |
.storefront-name |
Storefront name |
.storefront-tagline |
Tagline |
.storefront-description |
Description |
.storefront-section |
One category |
.storefront-section-title |
Category name |
.storefront-grid |
Grid of product cards |
.storefront-card |
One product card |
.storefront-product-name |
Product name |
.storefront-product-description |
Product description |
.storefront-price |
Price |
.storefront-card-action |
Wrapper of the button |
.storefront-button |
View product button |
.storefront-empty |
Text shown when there are no products |
The primary colour is available as the CSS variable --storefront-primary inside .storefront-brand.
Example:
.storefront-brand .storefront-header {
border-radius: 0;
background-image: linear-gradient(135deg, #0f172a, #1e293b);
}
.storefront-brand .storefront-name {
letter-spacing: -0.02em;
}
Permissions¶
The extension does not define permissions of its own.