Directory / plugin
Smart Units for WooCommerce
v1.0.0 · by Hooman Ostadmehri
Sell WooCommerce products by weight, volume or length (g, kg, L, mL, m, cm) with a custom step, minimum and maximum quantity, and decimal stock.
About this plugin
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.