Title: Smart Units for WooCommerce
Author: Hooman Ostadmehri
Published: <strong>October 27, 2026</strong>
Last modified: October 27, 2026

---

Search plugins

![](https://ps.w.org/smart-units-for-woocommerce/assets/banner-772x250.png?rev=3768150)

![](https://ps.w.org/smart-units-for-woocommerce/assets/icon-256x256.png?rev=3768150)

# Smart Units for WooCommerce

 By [Hooman Ostadmehri](https://profiles.wordpress.org/hoomanostadmehri/)

[Download](https://downloads.wordpress.org/plugin/smart-units-for-woocommerce.1.0.0.zip)

 * [Details](https://wordpress.org/plugins/smart-units-for-woocommerce/#description)
 * [Reviews](https://wordpress.org/plugins/smart-units-for-woocommerce/#reviews)
 *  [Installation](https://wordpress.org/plugins/smart-units-for-woocommerce/#installation)
 * [Development](https://wordpress.org/plugins/smart-units-for-woocommerce/#developers)

 [Support](https://wordpress.org/support/plugin/smart-units-for-woocommerce/)

## Description

By default, WooCommerce lets customers choose only a whole number of items (1, 2,
3…). Smart Units for WooCommerce lets you sell products by weight, volume or length,
and decide the interval between the quantities a customer can choose.

**Examples**

 * Fruit sold in kilograms, in steps of 0.5 kg.
 * Saffron sold in grams, in steps of 1 g.
 * Milk sold in milliliters, in steps of 250 mL.
 * Fabric sold in meters, in steps of 0.5 m, with 10 meters in stock.

**What is included**

 * Built-in units: piece, gram, kilogram, liter, milliliter, meter and centimeter.
 * A custom step, minimum quantity and maximum quantity for every product.
 * Stock managed in the same unit. When the total purchased reaches the stock, or
   the remaining stock is below the minimum order quantity, the product becomes 
   out of stock.
 * Server-side validation when adding to the cart and when updating the cart.
 * The unit is shown next to the quantity field, next to the price, in the cart,
   at checkout, in orders and in emails.
 * The unit used is saved with each order, so old orders do not change if you change
   a product later.

## Installation

 1. Install and activate WooCommerce.
 2. Upload the plugin folder to `/wp-content/plugins/`, or install it from the Plugins
    screen, and activate it.
 3. Edit a product, open the General tab and tick “Sell by unit”.
 4. Choose the unit, step, minimum and maximum quantity. Enter the price of ONE unit.
 5. In the Inventory tab, enable stock management and enter the stock in the same unit.

## FAQ

### Does it work with the WooCommerce Cart and Checkout blocks?

No. The blocks only accept whole-number quantities. Use the classic cart and checkout
pages (the `[woocommerce_cart]` and `[woocommerce_checkout]` shortcodes).

### Does it work with variable products?

The unit settings are set on the parent product and apply to all variations. Stock
of each variation is in the same unit.

### What happens to normal products?

Products without “Sell by unit” behave as before and accept whole numbers only.

### What happens to my data if I deactivate or delete the plugin?

Product settings are kept, so nothing is lost if you reinstall or move to another
version.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Smart Units for WooCommerce” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ Hooman Ostadmehri ](https://profiles.wordpress.org/hoomanostadmehri/)

“Smart Units for WooCommerce” has been translated into 1 locale. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/smart-units-for-woocommerce/contributors)
for their contributions.

[Translate “Smart Units for WooCommerce” into your language.](https://translate.wordpress.org/projects/wp-plugins/smart-units-for-woocommerce)

### Interested in development?

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

## Changelog

#### 1.0.0

 * First release.

## Meta

 *  Version **1.0.0**
 *  Last updated **2 days ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.8 or higher **
 *  Tested up to **7.1.4**
 *  PHP version ** 7.2 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/smart-units-for-woocommerce/) and
   [Persian](https://fa.wordpress.org/plugins/smart-units-for-woocommerce/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/smart-units-for-woocommerce)
 * Tags
 * [decimal](https://wordpress.org/plugins/tags/decimal/)[quantity](https://wordpress.org/plugins/tags/quantity/)
   [unit](https://wordpress.org/plugins/tags/unit/)[weight](https://wordpress.org/plugins/tags/weight/)
   [woocommerce](https://wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://wordpress.org/plugins/smart-units-for-woocommerce/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/smart-units-for-woocommerce/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/smart-units-for-woocommerce/reviews/)

## Contributors

 *   [ Hooman Ostadmehri ](https://profiles.wordpress.org/hoomanostadmehri/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/smart-units-for-woocommerce/)