Add units of measurement to product prices

Use the Unit of measurement field when a product price needs a unit such as kilograms, liters, meters, pieces, or packs. WoodMart displays the value after the price and adds the separator automatically, for example $20 / kg.

Product price displayed with a unit of measurement
A unit of measurement displayed after the product price.

This field changes only how the price is displayed. It does not change the product price calculation, quantity step, minimum quantity, stock, or shipping weight.

Set a unit for a product

  1. Navigate to Dashboard -> Products and edit the required product.
  2. Open Product data -> Inventory.
  3. Enter the required value in Unit of measurement, for example kg, , L, piece, or pack. Enter only the unit; do not include the slash.
  4. Update the product.
WooCommerce product editor with the Inventory tab selected and Unit of measurement set to kg
Enter the unit of measurement in the product Inventory settings.

The unit is added to the WooCommerce price output in product grids, on the single product page, and beside the cart item price. Custom product layouts do not require a separate element: the unit is included automatically wherever the product price is displayed. Clear the field and update the product to remove the unit.

Units for variable products

For a variable product, the unit is stored on the parent product and applies to all its variations. Different units cannot be assigned to individual variations.

Bulk edit product units

  1. Navigate to Dashboard -> Products and select the products you want to update.
  2. Select Edit from Bulk actions and click Apply.
  3. Find Unit of measurement and select Change to.
  4. Enter the unit that should be assigned to all selected products.
  5. Click Update.
WooCommerce bulk edit panel with the Unit of measurement dropdown and text field
Assign the same unit of measurement to multiple products with bulk editing.