Sell by size in WooCommerce: measurement & area-based pricing (free)
Price WooCommerce products by width × height, length or any measurement — with a formula, a minimum charge and a live price breakdown. Free with Alovio Product Options.
Blinds, glass, banners, fabric, vinyl, worktops, fencing — anything cut to size has the same pricing problem: the price is the measurement. WooCommerce’s fixed product price can’t express “£38 per m², minimum £25”, and modelling sizes as variations explodes into hundreds of near-identical entries that still can’t cover any size.
The clean way is a measurement price calculator on the product page: the customer enters their dimensions, the price computes live, and the exact figures travel into the cart and the order. Here’s how to build one with Alovio Product Options — free.
Step 1 — Add the measurement fields
Create an option group for the product and add two Number fields — Width (cm) and Height (cm). Give each a min, max and step so nobody orders a 4-metre blind you can’t make. Number fields validate on the spot.
Step 2 — Price with a formula
Set the group’s paid field to the Formula pricing mode and write the rule once:
max({width} * {height} * 0.0038, 25)
That’s area × your rate per cm², with max() enforcing a £25 minimum charge — the classic
cut-to-size pattern. Formulas support min(), max() and round(), and the engine is
decimal-safe: totals are computed server-side, so the browser preview can never change what
actually gets charged.
Four other pricing modes ship alongside formulas — fixed, per-unit, per-character (engraving!) and percentage — all free.
Step 3 — The customer sees the math
With a priced option on the page, WooCommerce shoppers get a live, itemized price breakdown: base price, each option’s cost, and the running total — updating instantly as the dimensions change, formatted in your store’s currency. No surprises at the cart step, which is exactly where made-to-measure orders usually die.
Variable products
Build the options once and assign the group — every variation uses it. Percentage and formula pricing calculate against the chosen variation’s price and the breakdown tracks the switch live.
Into the cart, order and emails
The entered measurements and the computed price follow the product into the cart, the checkout, the admin order screen and the order emails — so production sees the exact dimensions the customer typed. Storage is HPOS-compatible.
Need a quote instead of a cart?
If your sizes feed a quote rather than an immediate purchase — think renovation or installation estimates — the same studio makes Alovio Calculator, a standalone quote calculator with the same decimal-safe engine and lead capture.
Try it
Alovio Product Options is free on WordPress.org — the formula reference and option types are in the docs.