Title: Kavio Labs Sell by Measure for WooCommerce
Author: kaviolabs
Published: <strong>November 1, 2026</strong>
Last modified: November 1, 2026

---

Search plugins

![](https://ps.w.org/kavio-labs-sell-by-measure/assets/banner-772x250.png?rev=3778038)

![](https://ps.w.org/kavio-labs-sell-by-measure/assets/icon-256x256.png?rev=3778038)

# Kavio Labs Sell by Measure for WooCommerce

 By [kaviolabs](https://profiles.wordpress.org/kaviolabs/)

[Download](https://downloads.wordpress.org/plugin/kavio-labs-sell-by-measure.1.0.1.zip)

 * [Details](https://wordpress.org/plugins/kavio-labs-sell-by-measure/#description)
 * [Reviews](https://wordpress.org/plugins/kavio-labs-sell-by-measure/#reviews)
 *  [Installation](https://wordpress.org/plugins/kavio-labs-sell-by-measure/#installation)
 * [Development](https://wordpress.org/plugins/kavio-labs-sell-by-measure/#developers)

 [Support](https://wordpress.org/support/plugin/kavio-labs-sell-by-measure/)

## Description

Sell cheese by the kilogram, fabric by the meter, flooring by the square meter or
paint by the liter. Customers type the amount they need (1.25 kg, 2.6 m, 3.5 m²);
the product price is the price of one unit and every total is price × quantity, 
calculated by WooCommerce itself.

**Real decimal quantities, end to end.** The cart line says 1.25 kg, the order line
says 1.25 kg, the stock goes down by 1.25 and the e-mail shows 1.25 kg. There are
no hidden “1 piece” lines, so payment gateways, invoices and reports receive the
real quantity and unit price.

#### Features

 * 10 sale units: kilogram, gram, pound, meter, centimeter, foot, square meter, 
   square foot, liter, milliliter.
 * Per product: sale unit, quantity step (up to 4 decimals, e.g. 0.005 kg), minimum,
   maximum and default amount.
 * Product page: unit label next to the quantity field, minimum/maximum hint and
   a live total (“Total: $16.24 (1.250 kg at $12.99 / kg)”), also for variable products.
 * “/ kg” after prices on product pages and product lists (can be switched off).
 * Stock in the sale unit with decimals: “8.75 kg in stock”. Orders reduce it exactly;
   cancelled orders give it back.
 * Classic **and** block Cart and Checkout, the mini cart and the Store API: the
   same step, minimum and maximum apply everywhere because they are set through 
   WooCommerce’s own quantity rules.
 * Unit price row in the cart and checkout (“Unit price: $12.99 / kg”).
 * Thank-you page, My Account, order e-mails and the admin order screen show the
   unit and the unit price, without template overrides.
 * Products sold in whole items stay whole: decimals are only accepted for products
   that have a sale unit.
 * Product lists and product grid blocks add the default amount with one click.
 * Compatible with High-Performance Order Storage (HPOS), the Cart and Checkout 
   blocks and block themes.
 * Lightweight: two small scripts (no build step, no external libraries), loaded
   only where they are needed.
 * No external requests, no tracking, no account, no license key. Every feature 
   in this plugin is free.

#### How it works

 1. Open a product, tab **Sell by measure**, choose a sale unit (for example kilogram)
    and optionally a step, minimum, maximum and default amount.
 2. Enter the price of one unit as the regular price (for example $12.99 for 1 kg).
 3. Set the stock in the same unit in the Inventory tab, for example 125.5.

That’s it: customers can now buy 0.75 kg or 2.35 kg, and the cart, checkout, order
and stock follow.

#### Full edition

This plugin is complete on its own. Stores that need more can use the full edition,
Sell by Measure for WooCommerce (sold separately at [kaviolabs.com](https://woocommerce.kaviolabs.com/woocommerce-plugins/woocommerce-sell-by-measure/)),
which adds category defaults, quick-amount buttons, a length × width calculator 
for area units and five more units (oz, in, yd, gal, fl oz). It reads the product
settings made with this plugin, so nothing has to be set up again.

## Screenshots

[⌊Product page: quantity in kilograms with the unit label, minimum hint and live
total.⌉⌊Product page: quantity in kilograms with the unit label, minimum hint and
live total.⌉[

Product page: quantity in kilograms with the unit label, minimum hint and live total.

[⌊Cart block: the unit next to the quantity selector and the unit price of the line.⌉⌊
Cart block: the unit next to the quantity selector and the unit price of the line
.⌉[

Cart block: the unit next to the quantity selector and the unit price of the line.

[⌊Checkout block: order summary with decimal quantities.⌉⌊Checkout block: order 
summary with decimal quantities.⌉[

Checkout block: order summary with decimal quantities.

[⌊Order received page: quantity with the unit and the unit price.⌉⌊Order received
page: quantity with the unit and the unit price.⌉[

Order received page: quantity with the unit and the unit price.

[⌊Product data tab "Sell by measure": sale unit, step, minimum, maximum and default
amount.⌉⌊Product data tab "Sell by measure": sale unit, step, minimum, maximum and
default amount.⌉[

Product data tab “Sell by measure”: sale unit, step, minimum, maximum and default
amount.

[⌊Settings: unit after prices, live total and data removal.⌉⌊Settings: unit after
prices, live total and data removal.⌉[

Settings: unit after prices, live total and data removal.

## Installation

 1. Install and activate WooCommerce (10.1 or later).
 2. In Plugins > Add New, search for “Kavio Labs Sell by Measure”, install and activate
    it. Or upload the plugin zip in Plugins > Add New > Upload Plugin.
 3. Edit a product, open the **Sell by measure** tab of the Product data box, choose
    a sale unit and update the product.
 4. Optional: WooCommerce > Settings > Sell by measure for the display options.

## FAQ

### Does it work with the block Cart and Checkout?

Yes. The step, minimum and maximum are set through WooCommerce’s quantity rules,
which the classic pages, the Cart and Checkout blocks, the mini cart and the Store
API all use. The unit is shown next to the quantity in the cart block and in the
order summary.

### What happens to the products I sell in whole items?

Nothing. Only products with a sale unit accept decimals. A quantity of 1.5 for any
other product is rejected with a clear message, and their quantity fields keep the
numeric keyboard on phones.

### Which price do I enter?

The price of one unit: for a cheese at $12.99 per kilogram, enter 12.99 with the
unit “Kilogram”. The cart line for 1.25 kg is then $16.24.

### How is the stock kept?

In the sale unit, with up to 4 decimals. Enter for example 125.5 in the Inventory
tab. An order of 1.3 kg takes 1.3 from the stock and a cancelled order gives it 
back.

### What about shipping weight?

Enter the weight of one unit in the Shipping tab. WooCommerce multiplies it by the
quantity, so 2.5 m of a fabric with 0.3 kg per meter weighs 0.75 kg.

### Can customers type a decimal comma?

The quantity field is a number field, so the browser accepts the decimal separator
of the visitor’s locale and sends a dot. The amount is rounded to your step on the
server, and the customer sees a notice when it was adjusted.

### Does the plugin send any data anywhere?

No. The plugin makes no external requests and collects no data. The only link to
an external website is the “Learn about the full edition” link in its settings screen,
which you can dismiss.

### What happens to my data when I delete the plugin?

The plugin settings are always removed. Product settings are removed only when “
Remove data on uninstall” is on (WooCommerce > Settings > Sell by measure). Orders
are never changed: their lines keep the quantity and the unit.

### Can I switch to the full edition later?

Yes. Both use the same product settings. When the full edition is active, this plugin
stays idle and can be deactivated.

### Are there known limitations?

 * While a block checkout is open, WooCommerce reserves stock for the order in whole
   numbers (a core limitation); the stock reduction of the paid order is exact.
 * WooCommerce Analytics counts “items sold” in whole numbers; revenue is exact.
 * Product grid buttons show “1.25 in cart” without the unit (button text from WooCommerce).

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Kavio Labs Sell by Measure for WooCommerce” is open source software. The following
people have contributed to this plugin.

Contributors

 *   [ kaviolabs ](https://profiles.wordpress.org/kaviolabs/)

[Translate “Kavio Labs Sell by Measure for WooCommerce” into your language.](https://translate.wordpress.org/projects/wp-plugins/kavio-labs-sell-by-measure)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/kavio-labs-sell-by-measure/),
check out the [SVN repository](https://plugins.svn.wordpress.org/kavio-labs-sell-by-measure/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/kavio-labs-sell-by-measure/)
by [RSS](https://plugins.trac.wordpress.org/log/kavio-labs-sell-by-measure/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.1

 * Fix: the quantity field showed “0,5” in browsers with a decimal-comma language(
   de-DE, tr-TR, fr-FR) even when the store uses “.”. It is now a text field that
   follows the WooCommerce decimal separator setting, and the server reads “1.5”
   and “1,5” alike.

#### 1.0.0

 * First release: 10 sale units, per-product step, minimum, maximum and default 
   amount, live total, unit after prices, decimal stock, classic and block cart 
   and checkout, unit and unit price on orders and e-mails, HPOS compatible.

## Meta

 *  Version **1.0.1**
 *  Last updated **7 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.7 or higher **
 *  Tested up to **7.1.4**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [decimal quantity](https://wordpress.org/plugins/tags/decimal-quantity/)[measurement](https://wordpress.org/plugins/tags/measurement/)
   [price per unit](https://wordpress.org/plugins/tags/price-per-unit/)[sell by weight](https://wordpress.org/plugins/tags/sell-by-weight/)
   [unit price](https://wordpress.org/plugins/tags/unit-price/)
 *  [Advanced View](https://wordpress.org/plugins/kavio-labs-sell-by-measure/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/kavio-labs-sell-by-measure/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/kavio-labs-sell-by-measure/reviews/)

## Contributors

 *   [ kaviolabs ](https://profiles.wordpress.org/kaviolabs/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/kavio-labs-sell-by-measure/)