My place in the WordPress community
- I have had a wordpress.org account since 2006.
- I contributed to WordPress core for versions 7.0 and 7.1.
- I maintain 30 plugins on wordpress.org.
- I organise and speak at WordCamps.
- I have attended every WordCamp Europe from 2017 to 2026.
A Next.js checkout is a sequence of screens, and each screen decides what the buyer sees before the order button. UK law has two sets of rules about that sequence. Section 230 of the Digital Markets, Competition and Consumers Act 2024 (the DMCC Act) governs the price and drip pricing. The Consumer Contracts Regulations 2013 govern the information and the button. This page maps both onto a Next.js build.
What does UK law say about the total price?
Section 230 of the DMCC Act says an invitation to purchase omits material information if it leaves out, among other things, the total price of the product, how the price will be calculated where a total cannot be given, and delivery or postal charges not included in the total. The legislation.gov.uk page records the section as in force from 6 April 2025 by S.I. 2025/272. Four details decide how a screen is built:
- Definition. The total price includes any fees, taxes, charges or other payments the consumer will necessarily incur (section 230(4)).
- Calculation. Where the total cannot be given, the information on how it is calculated must have as much prominence as the total price information (section 230(5)).
- Visibility. Information provided in an unclear or untimely way, or in such a way that the consumer is unlikely to see it, counts as omitted (section 230(9)).
- Drip pricing in practice. A low headline price with mandatory charges added later is the pattern the CMA describes as hiding additional fees until later.
The CMA’s summary of its price transparency guidance (CMA209), last updated 7 January 2026, turns this into working rules:
- The invitation to purchase must give the total price of the product, and a figure the customer is unlikely to see is treated as omitted.
- Unavoidable charges, including mandatory delivery or booking fees and taxes such as VAT, normally belong in the total. Showing them separately will not normally be enough.
- Optional charges, such as next-day delivery, must appear in the invitation to purchase but need not be in the total.
- Where the total cannot be calculated in advance, the customer must get what is needed to calculate it, as prominent as the part you can calculate. “From” prices are allowed when they include all applicable mandatory charges and do not mislead about what the price covers.
- Mandatory per-transaction charges belong in the total even in early advertising. For rolling monthly contracts, the full monthly price is shown.
- When converting a foreign currency, state the exchange rate used.
The summary says breaches can lead to a fine up to 10 percent of turnover, or 300,000 pounds, whichever is greater, and to orders to compensate customers. It does not address card surcharges or payment-method fees, so I do not build a rule for those from this source.

Photo: David Hallam-Jones, CC BY-SA 2.0, Wikimedia Commons.
Which information must come before the order button?
Regulation 13 of the Consumer Contracts Regulations 2013 requires the trader to give or make available the information in Schedule 2 in a clear and comprehensible manner before the consumer is bound. Schedule 2 includes the main characteristics of the goods, the trader’s identity and address, the total price including taxes (or how it is calculated), delivery charges and other costs or a warning that further charges may apply, payment and delivery arrangements, the right to cancel and who pays for returns, after-sales assistance and guarantees, and the contract duration.
Regulation 14 adds rules for contracts concluded by electronic means:
- Directly before the order. Where the order creates an obligation to pay, the consumer must see the Schedule 2 items on the main characteristics, total price, delivery and other costs, subscription price per period, contract duration and minimum duration of obligations, in a clear and prominent manner (paragraph 2).
- Acknowledgement. The consumer must explicitly acknowledge that the order implies an obligation to pay (paragraph 3).
- The button. It must be labelled in an easily legible manner only with the words “order with obligation to pay” or an unambiguous equivalent (paragraph 4).
- Consequence. If paragraphs 3 and 4 are not met, the consumer is not bound by the contract or order (paragraph 5).
- Start of the process. The website must say clearly and legibly, at the latest at the start of ordering, whether delivery restrictions apply and which means of payment are accepted (paragraph 6).
Regulation 40 covers add-ons. A consumer need not pay extra beyond the agreed price unless the trader obtained express consent before the contract, and a pre-ticked box on a website is not express consent. An extra payment taken without it is treated as reimbursable.
How do these rules map onto the checkout screens?
| Screen | What the law points at | What I build |
|---|---|---|
| Product page | Total price in the invitation to purchase, mandatory charges included | The headline figure comes from the same function as the checkout total |
| Basket | Optional charges shown, not hidden in the total; calculation information as prominent as the total | Mandatory and optional lines kept apart in the data, optional ones never pre-selected |
| Delivery step | Delivery restrictions and payment methods at the start of ordering | Both listed before any address is typed |
| Review step | Schedule 2 items directly before the order button | One summary block above the button, not behind a link |
| Order button | Label “order with obligation to pay” or an unambiguous equivalent | Fixed label, a test fails if it changes |
How do I build one total in Next.js?
The rule I apply is that no screen computes a price on its own. Lines carry a mandatory flag, and one function sums the mandatory lines in integer pence. The product page, the basket and the Server Action all call it.
// lib/total.ts
export type Line = { label: string; pence: number; mandatory: boolean };
export const totalPence = (lines: Line[]) =>
lines.filter((l) => l.mandatory).reduce((sum, l) => sum + l.pence, 0);The Next.js forms guide describes Server Actions on the action attribute of a form, server-side validation, and bind to pass extra arguments with progressive enhancement. The action receives the figure the buyer saw and recomputes the total on the server. If they differ, the order is not placed and the buyer sees the new total first.
// app/checkout/actions.ts
'use server'
import { totalPence } from '@/lib/total'
import { basketLines } from '@/lib/basket' // your own data layer
export async function placeOrder(shownPence: number, formData: FormData) {
const lines = await basketLines()
if (totalPence(lines) !== shownPence) {
return { error: 'The total has changed. Please check it before ordering.' }
}
// create the order here
}// app/checkout/order-form.tsx
import { placeOrder } from './actions'
export function OrderForm({ shownPence }: { shownPence: number }) {
return (
<form action={placeOrder.bind(null, shownPence)}>
<label>
<input type="checkbox" name="giftWrap" /> Add gift wrapping
</label>
<button type="submit">Order with obligation to pay</button>
</form>
)
}The checkbox has no defaultChecked, which is the code form of regulation 40. The button text is a constant.
On caching, the current Next.js documentation says that with Cache Components, a function marked use cache with a cacheLife is cached and joins the static shell, while data that must be fresh on each request sits in a <Suspense> boundary. I read that as: a base product price can be cached with a tag, and anything that depends on the basket or the address, such as a delivery charge, is rendered at request time. The cached part must never be the part that makes the total wrong. When a price changes, the tag is revalidated, and the server recomputation above is the safety net for a buyer who loaded an older page.
What does a Birmingham trader do if something goes wrong?
Birmingham City Council’s trading standards page says the Citizens Advice consumer service gives free, confidential and impartial advice on consumer issues, and that a request is sent to the most appropriate Trading Standards Service if an investigation is necessary. For a shop owner that means a complaint about a checkout can start outside your own inbox. A dated record of what each screen showed at launch, kept with the code, answers the first question anyone asks.
Checklist you can use without me
- Add to basket and walk through as a first-time buyer, noting every figure shown and when.
- Mark each charge mandatory or optional and check mandatory ones are in the first figure.
- Check that delivery restrictions and accepted payment methods are visible before the delivery step.
- Check that the Schedule 2 items sit directly above the order button.
- Read the button label aloud: it must say that the order carries an obligation to pay, or an unambiguous equivalent.
- Look for any pre-ticked box, including insurance, gift wrap and newsletter add-ons that carry a charge.
- Keep one function for totals and test it with mandatory, optional and variable-delivery baskets.
- Re-read section 230, CMA209 and regulations 13, 14 and 40 before a checkout redesign.
How a project with me runs
I am Mariusz Szatkowski, one developer based in Gdynia. I work remotely and in writing, and I have built with WordPress since 2006 and with Next.js for applications. For a Birmingham project:
- You send the shop URL, goal, deadline and the current stack. Email reply within 24 hours on working days.
- I walk through the current checkout and list every charge and every screen that shows a price.
- The scope and assumptions are written down, questions go back and forth by email, and nothing starts before you approve.
- The build runs on a staging URL. I design the layout or implement your design, and the total function is tested before the screens use it.
- You accept in writing, I deploy, and a maintenance option covers Next.js and dependency updates afterwards.
What I need from you: repository or hosting access, the list of delivery and payment arrangements, and the name of whoever decides on add-ons.
Send me the shop and the charge list
If you run a shop in Birmingham or the West Midlands, or plan one, send me the URL, what the shop must achieve, your deadline and the list of charges a buyer can meet, through the contact page. I give the first written estimate free of charge and answer by email within 24 hours on working days. The wider service is described on the Next.js development page.
Selected projects
Examples of my work.
WPPoland - rebuilding a proof-led WordPress, Astro and technical SEO site
A method-led case study of the WPPoland rebuild: Astro, Markdown/MDX content, six locales, technical SEO, structured data, AEO/GEO and content quality gates.
abovio.pl, Electronics Distribution with Extensive Product Catalog
Abovio.pl is an advanced online store project in my WordPress developer portfolio, created as an electronics distribution platform for both companies and ind...
Airhelp - WordPress Project | WPPoland
AirHelp was founded in 2013 as a start-up and has grown to become the global leader in defending air passenger rights, helping over 13 million people underst...
WordPress support & development in Birmingham
Need this service: Next.js developer in Birmingham?
Describe your project by e-mail. I reply within 24 hours.
Describe your projectExplore other WordPress services and knowledge base
Migration to Astro, Next.js, and headless WordPress.
WooCommerce sync with ERP and wholesale systems.
Business process automation around WordPress and company systems.
Library of concrete automation use cases.
Headless WordPress, Sanity, Strapi, and Contentful with Astro or Next.js.
Astro, MDX, edge delivery, and Core Web Vitals measured on real traffic.
Custom WordPress engineering and architecture.
Scalable headless, ERP, and AI architecture for enterprise.
Related categories
Supporting articles

Six to sixteen weeks for typical engagements, with a four-phase shape: discovery, scoping, build and cutover, tuning. The variables are catalogue size, integration count, URL preservation, and editorial team readiness, not framework choice.

A definitive 4-year Total Cost of Ownership (TCO) analysis, real-world Core Web Vitals benchmarks, Astro 7 GraphQL APQ architecture, and a 10-point executive decision matrix for choosing between decoupled and traditional WordPress.

The Shopify Plus vs WooCommerce headless decision in 2026 is no longer a binary "platform vs custom" trade-off. Both can run headless, both integrate AI, both ship at the edge. The real axes are control, total cost over five years, and exit strategy. This article walks the matrix with confirmed platform facts.