How to Sell Products by Weight and Volume in WooCommerce (kg, g, L, ml)

How to Sell Products by Weight and Volume in WooCommerce (kg, g, L, ml)

By default, WooCommerce sells products as fixed, countable items: one item added to the cart equals one unit. But plenty of stores don’t work that way. If you sell rice, nuts, dried fruit, legumes, cooking oil, herbal extracts, or perfume, your customers don’t want “one product” — they want 2 kilograms, 500 grams, 1.5 liters, or 100 milliliters.

In this guide you’ll learn how to set up WooCommerce so shoppers can buy products by weight (kilograms and grams) or by volume (liters and milliliters), with the price calculated automatically from the amount they choose.

Which stores need weight- and volume-based selling?

This approach is a perfect fit for any shop where the quantity a customer buys is measured rather than counted. Common examples include:

  • Grocery and bulk foods: rice, flour, sugar, legumes, nuts, dried fruit, coffee beans, tea, spices.
  • Liquids: cooking and olive oil, honey, herbal extracts and distillates, syrups.
  • Fragrance and cosmetics: perfume and cologne sold by the milliliter, essential oils, decants.
  • Craft and industrial supplies: fabric by the meter, wire, resin, or any material priced per unit of measure.

How weight- and volume-based pricing works

The idea is simple: instead of a fixed price per item, you set a price per unit of measure — for example, the price per kilogram or per liter. On the product page, the customer enters the amount they want (or picks it from preset quantities), and WooCommerce multiplies that amount by the unit price to calculate the total.

So if rice costs $3 per kilogram and a customer orders 2.5 kg, the cart automatically shows $7.50. The same logic applies to a perfume priced at $0.40 per milliliter — order 50 ml and you pay $20.

Setting it up in WooCommerce

WooCommerce doesn’t offer measurement-based pricing out of the box, so you’ll use a dedicated plugin. Popular international options include Measurement Price Calculator and WooCommerce Product Price Based on Units / Measurement plugins. The general workflow is the same across them:

  1. Install and activate the measurement pricing plugin.
  2. Open the product you want to sell by weight or volume and edit it.
  3. In the product data settings, enable the measurement calculator and choose the unit — kilogram, gram, liter, or milliliter.
  4. Enter the price per unit instead of a single fixed price.
  5. Optionally set a minimum and maximum order amount and a step (for example, allow orders in 250 g increments).
  6. Save the product and preview the page to confirm the total updates as the customer changes the amount.

Tips for a smooth checkout experience

  • Offer preset amounts. Alongside the free-entry field, buttons like 250 g, 500 g, and 1 kg make ordering faster.
  • Show the unit clearly. Always display “per kg” or “per liter” next to the price so shoppers understand what they’re paying for.
  • Mind your shipping settings. If you charge shipping by weight, make sure the measured amount is passed to your shipping calculation.
  • Set sensible minimums. Prevent tiny, unprofitable orders by enforcing a minimum quantity per product.

With just one plugin and a few minutes of configuration, your WooCommerce store can sell anything by weight or volume — giving customers exactly the amount they want while keeping your pricing accurate and automatic.

Ahura WordPress Theme

The Power to Change Everything

Elementor Page Builder

The most powerful WordPress page builder with 100+ exclusive custom elements.

Incredible Performance

With Ahura’s smart modular loading technology, files load only when they are truly needed.

SEO Optimized for Google

Every line of code is carefully aligned with Google’s algorithms and best practices.

Any questions? Ask here...

    SupportSupportSupport
    Ertano
    SupportSupportSupport
    ErtanoWe are online and ready to help.Online

    Loading…

    Any Questions?Ask me.