How to price products by measurement in WooCommerce
WooCommerce cannot calculate a live price from typed measurements on its own. For fixed sizes, use variations; for customer-entered length, width, area, volume, or weight, use a measurement calculator plugin that passes the result into the cart and order.
- 01Choose the pricing model
- 02Use variations for fixed sizes
- 03Install a measurement calculator
- 04Configure units and pricing
- 05Set limits and test checkout
- 06Take the fast route
What you need
- A WooCommerce store on WordPress 6.0 or later
- Admin access to WordPress
- The product price per unit and measurement rules
- A calculator plugin if customers enter custom measurements
Choose the pricing model
Decide whether customers will choose from fixed sizes or enter their own measurements. Fixed options such as 1 metre, 2 metres, and 3 metres can be managed as product variations. Custom dimensions such as length × width need a calculator that converts the input into a quantity and price.
Write down the pricing unit first, such as price per metre, square metre, cubic metre, kilogram, or box. Also decide the minimum order, maximum order, decimal precision, rounding rule, and whether the product is sold in packs.
Use variations for fixed sizes
For a small range of known sizes, create a variable product with an attribute such as size or area. Add each allowed value as a variation and give each variation its own price and stock setting.
This is the manual route and it is fine when the choices are limited. It does not calculate an arbitrary measurement typed by the customer, though, and a large list of sizes becomes difficult to maintain. Do not use a text field or a product attribute alone and expect WooCommerce to change the price.
Install a measurement calculator
For custom measurements, install a WooCommerce measurement price calculator plugin, then activate it from Plugins in WordPress. The exact menu names vary between extensions, but the calculator is normally enabled while editing the product in the WooCommerce product data panel.
WooCommerce’s own calculator documentation uses measurement types such as length, area, volume, and weight, with either a direct measurement input or length-and-width fields.
Configure units and pricing
Edit the product and select the measurement type that matches how you sell it. Use a simple area field when the customer already knows the area, or use length × width when the calculator should work out the area. Select the input and pricing units, enter the price per unit, and choose whether to show that unit price on the product page.
For products sold in packs, enter the area, length, weight, or volume represented by one pack. The calculator can then round the required quantity up to enough packs to cover the customer’s requested amount. Keep the input and pricing units consistent where possible because mixed unit systems can introduce small conversion differences.
Set limits and test checkout
Set minimum and maximum measurements, allowed increments, minimum price, stock behaviour, and any pricing table ranges. Check what happens below the minimum, above the maximum, and between two pricing bands. A common failure is a product showing the correct figure on the product page but carrying the wrong quantity or price into the cart, so test the cart, checkout, order, tax, and stock records as well.
Also test unit conversions such as feet to metres and confirm the displayed unit label. If the product is sold by box, roll, or sheet, make sure the customer can see both the requested measurement and the number of sellable units charged.
Take the fast route
For most stores selling fabric, flooring, sheet material, cable, liquids, or other measured goods, use WooCommerce Measurement Price Calculator. Configure the product’s measurement type, unit price, customer inputs, minimums, maximums, and pack or pricing rules instead of building separate variations for every possible size.
The plugin is designed for customer-entered dimensions and supports length, width, height, area, volume, weight, multiple units, pricing tables, and calculated prices. Verify the calculator output in the cart and checkout before publishing the product.
Let WooCommerce Measurement Price Calculator do it
Calculates prices from customer-entered dimensions and units; ideal for flooring, fabric, and other products sold by measurement.
Sources
- woocommerce.com /document/measurement-price-calculator/?utm_source=openai
- woocommerce.com /document/price-calculator-for-woocommerce-3/?utm_source=ope…
Questions
- Can WooCommerce price a product by measurement without a plugin?
- Not for arbitrary customer-entered measurements. Native WooCommerce can handle fixed choices through variations, but it does not turn a typed length, width, area, volume, or weight into a live product price. You can build that behaviour with custom development, but a calculator plugin is usually easier to maintain and less likely to break during theme or WooCommerce updates.
- Should I use variations or a measurement calculator?
- Use variations when customers choose from a short list of fixed sizes with known prices. Use a measurement calculator when customers enter custom dimensions or when the price depends on area, volume, weight, or another calculated quantity. Variations become awkward when you need dozens or hundreds of possible sizes.
- How do I sell flooring by the box when customers enter floor area?
- Set the calculator to area, then enter the area covered by one box in the product’s measurement or shipping data, depending on the extension. The calculator can work out how many boxes are needed and round up to a whole sellable unit. Test an area just above one box and confirm that the cart charges two boxes rather than a fractional quantity.
- How do I price fabric by length?
- Choose length as the measurement type, set the pricing unit such as metre or yard, and enter the price per unit. Allow either an open measurement field with minimum and maximum values or a dropdown of permitted lengths. Check the calculator’s decimal and increment settings so customers cannot order an unsupported cut size.
- Why is the calculated price wrong after changing units?
- The usual causes are mismatched input and pricing units, an incorrect pack size, or a rounding rule that was not considered. Keep the product’s measurement system consistent, confirm what one box, roll, or sheet represents, and test a known conversion manually. Also check whether the calculator is using a minimum price or pricing-table fallback when the entered amount falls outside a configured range.