跳到内容

Kavio Labs Sell by Measure for WooCommerce

v1.0.1

Kavio Labs · 2026年11月1日 上架

Sell by weight, length, area or volume in WooCommerce: decimal quantities, a price per unit and a live total on the product page.

正在使用
10 以下
评分
暂无
累计下载
329
最近更新
2026年11月1日
需要 WordPress 6.7+已测试到 7.1.5PHP 7.4+

贡献者

截图

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.
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.
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.

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), 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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums