Complete guide: How to sell by weight in WooCommerce

August 9, 2021

As an online business owner, there are many scenarios where you might need to sell products by weight in WooCommerce. For example, you might sell fruits and vegetables from your farm, purchase dry fruits and nuts in bulk for resale, or grow various herbs to sell by weight through your online store.

The only problem is that it’s not immediately obvious how to use WooCommerce to sell by weight. The good news is that, with the right WooCommerce plugins, you can easily start selling products by weight.

In this article, we’ll walk you through two different ways to use WooCommerce to list products in a way that allows you to sell by weight. The methods we cover in this tutorial work equally well if you’re selling by other units of measure such as volume, size, width, length, or dimensions.

Why you might need to sell by weight in WooCommerce

There are several different types of products that store owners typically sell by weight. Here are a few examples:

  • Fruits
  • Vegetables
  • Dry fruits
  • Nuts
  • Flour, lentils, and beans
  • Meat

Store owners set the products up in a way that each product has a price per unit weight. For example, this could be in grams, ounces, or pounds. Customers can simply select the number of, say, grams they’d like to purchase of the product and proceed to checkout to place their order.

As an e-commerce store owner, you can sell by weight in WooCommerce with the right combination of plugins.

Two ways to sell by weight in WooCommerce

There are two different ways to sell by weight in WooCommerce:

  1. Add weight options as product variations
  2. Price your products by weight

If you choose Method 1, you can add each weight option as a separate variation. This is particularly useful for store owners that sell items at different weight quantities. For example, if you have three different weight options – 500 grams, 1 kilogram, and 5 kilograms. You would add products as variable products in WooCommerce.

Alternatively, you can go with Method 2 if you’d rather price your products by weight. For example, if you want to sell different types of flour by the kilogram, you could simply add your product prices by weight instead of selling in units.

Here's what each option would look like in your WooCommerce store:

Whichever method you choose, I'll also show you how to use the WooCommerce Variation Prices plugin to clearly display the weight-based pricing for your variable products.

Method #1: Add weight options as variations

You can use the WooCommerce Bulk Variations plugin to add each weight option as a product variation. The plugin lets you list all the variations in a matrix layout directly on the single product page.

This way, customers can enter the required quantity of each option and get the exact amount they want. They can mix and match multiple variations to get the weight volume they require.

For example, let’s say you’d like to sell sweets online. You might set up the following weight options as variations to sell by weight in WooCommerce:

  • 500 grams
  • 1 kilogram
  • 2 kilograms

So, if a customer would like to purchase 1.5 kilograms of sweets, they could add the 500 grams variation and the 1-kilogram variation to their shopping cart at the same time and proceed to the checkout page. In this way, the plugin supports custom weight measurements.

WooCommerce Bulk Variations price matrix

To implement this using the WooCommerce Bulk Variations plugin, create a WooCommerce product with two attributes that will be used for variations. For example, in the case of sweets, this may be flavor and weight.

On the front-end, the WooCommerce Bulk Variations plugin will automatically display the variations along two dimensions in the price matrix, along with the different available weight options. This gives customers full flexibility to customize their orders.

Sell more products with a user-friendly bulk variations grid or price matrix.

Once you've entered the correct information for each variation, go to Product data →Bulk Variations and configure the following settings:

WooCommerce Bulk Variations settings
  • Make sure the Enable variations grid checkbox is ticked.
  • Set the Horizontal option to the attribute you want to display in columns for the variations grid.
  • Set the Vertical option to the attribute you want to display in rows for the variations grid.
  • Make sure the Display variation images checkbox is ticked.

Click the Publish button to proceed.

Method #2: Price your products by weight

If you want to sell by weight in WooCommerce, you can also price your products by weight unit instead of per unit. For example, if you’re selling by the kilogram, the basic item price for a single product would be the price per kilogram:

WooCommerce Product Table to sell by weight

So, if you were selling different types of flours, you might price them as:

  • All-purpose flour for $5.00
  • Cake flour for $6.50
  • Bread flour for $6.50
  • Whole-wheat flour for $8.00
  • Buckwheat flour for $8.50
  • Gluten-free flour for $10.00

You wouldn't want to do this with the default WooCommerce store layout because it wouldn't be clear that you are selling by weight. One way to solve this problem by listing the products with the WooCommerce Product Table plugin. You can choose to display whichever columns you’d like in the table such as product image, name, description, category, and product price (clearly labelled as the price by weight).

The easiest and most flexible way to sell by weight in WooCommerce.

This WordPress plugin lets you rename the column headers to increase usability. So, you can easily rename the heading of the Price column to say Price (per kilogram) or something similar. This way, customers can easily compare products in the table layout, knowing that they need to select the quantity according to the required weight.

WooCommerce Product Table column settings

Sell by weight with decimal point values

There are two ways to sell by step values i.e. fractions of a kilogram such as 1.5 kilograms, using the WooCommerce Product Table plugin. You can either:

  • Install the free Product Quantity Control for WooCommerce plugin on your website.
  • Set your prices in smaller measures (such as per gram instead of per kilogram). Following our example, customers would then need to enter 1,500 to order 1.5 kilograms.

This is particularly useful if you’re selling meat. It gives customers full flexibility to place orders based on the exact amount they’d like to purchase whether it’s 1.5 kilograms or 1.675 kilograms. Here's an example of how Provenance Meat uses WooCommerce Product Table:

Provenance Meat WooCommerce food order form

Display product variation prices by weight

Whichever of the above methods you use, you need to think carefully about the best way to display prices by weight on your site. If you're selling variable products then the WooCommerce Variation Prices plugin makes this easy.

Normally, WooCommerce displays the price of your variable products as a low-high price range. This can be confusing when you're selling by weight.

The solution is to install the WooCommerce Variation Prices plugin:

  1. After installing the plugin, go to the settings page and select the 'Custom' price format. Enter the required format. For example, you might set it to "$10 per kg" (as in the example screenshot above). This will appear at the top of the product page for your variable products.
  2. I also recommend enabling the 'Update the main price when a variation is selected.' option. This is more user-friendly because when a customer chooses a variation, the exact price will appear above.

The custom variation price format will appear on the single product page, and anywhere else that the variation price range normally appears (e.g. in WooCommerce Product Table if you're using Method 2).

Display product variation prices by weight - the easy way.

Can I sell some products by unit and others by weight in WooCommerce?

Yes, this is entirely possible using either of the above-mentioned methods to sell by weight in WooCommerce. However, keep in mind that it is important to make it clear to customers what type of unit each product is being sold in.

For example, if you’re using Method 1, you should include the unit (e.g. 500 grams) in the attribute name so it appears in the front-end matrix layout. And, if you’re using Method 2, you should use different product tables for products that you sell by unit and those that you sell by weight. That way, you can rename the Price column accordingly in each table.

Start selling WooCommerce products by weight

Depending on the types of products you’re selling and the weight options you’d like to offer, you can either use the WooCommerce Bulk Variations plugin or the WooCommerce Product Table plugin to sell by weight in WooCommerce.

Sell more products with a user-friendly bulk variations grid or price matrix.

Both WordPress plugins give you control over how you’d like to sell items and are incredibly intuitive and easy-to-use on the front-end.

The easiest and most flexible way to sell by weight in WooCommerce.

Get WooCommerce Bulk Variations or WooCommerce Product Table and start selling by weight in WooCommerce today!


  1. Frances
    February 1, 2022 Reply

    This is my first time setting up an online store for my small, home-based greeting card work. The shipping will depend on the postal rates according to the weight, ranging from 100gms to 250gsms, and up to 2kg for package post. For example:
    1 card €2.10 + €1.10 postal cost
    2 cards €4.20 + €1.10 postal cost
    3 cards €6.30 + €1.40 postal cost...
    The individual card price doesn't change. The shipping cost changes.
    I only seem to be able to set a flat rate with the online store package I've chosen. Do I need a separate plugin for variable weights, or advanced shipping? If yes, which one would you suggest to solve this issue of setting shipping costs. Thank you.

    • Edge
      February 2, 2022 Reply

      Hi, Frances. Thanks for your comment. What you describe you'd like to achieve is to price your shipping by weight in WooCommerce, rather than price or sell your products by weight (which is what our article is about). For your use case, I suggest you look into using a shipping plugin such as the official Table Rate Shipping by WooCommerce. For usage details, you can refer to the Table Rate Shipping documentation, or contact official WooCommerce Support.

      I hope this makes sense and helps point you in the right direction. Please let me know if you have any more questions. Cheers!

      • Frances
        February 5, 2022 Reply

        Many thanks for the reply.
        I checked out Table Rate Shipping and I'm delighted to say that I have now found a WooCommerce Shipping plugin that solves the problem. So glad I found your interesting article and that you kindly directed me from there. Thanks again!

        • Edge
          February 6, 2022

          Hi, Frances. Thanks for letting me know. I'm glad I could help!

          Please let me know if you have any more questions. It might also interest you to have a look at our plugins for WordPress and WooCommerce. Cheers!

  2. mike
    September 6, 2021 Reply

    Hi, Thanks for your article.
    Is it possible to manage the stock with product variations? ie, I have 100kg of a product, I want to sell 3 kinds of variants (product A1 1kg, product A2 2kg, product A3 3kg). If the customer orders product A1 and product A3, the stock of product A should be 96 kg (100 - 1 - 2).

    Is that possible ?

    • Edge
      September 6, 2021 Reply

      Hi, Mike. Thanks for your comment. If you'd like to sell by weight and manage it via stock of product variations, you will also need to segregate or distribute that weight accordingly. In your example;

      • 100 kg
      • Product A, Variation 1 = 1kg
      • Product A, Variation 2 = 2kg
      • Product A, Variation 3 = 3kg

      You will need to distribute the total weight according to the variations, e.g.:

      • Variation 1 = 25 qty = 25kg
      • Variation 2 = 15 qty = 30kg
      • Variation 3 = 15 qty = 45kg
      • Total qty of all variations = 100kg

      I hope this makes sense and helps!

      • mike
        September 9, 2021 Reply

        Ok, thanks for your reply. I understand but it's not what I would like to do. I don't want distribute the total weight according to the variations but just set total quantity of "parent product" because my products are not pre-conditioned so there is no fixed quantity for product variations.

        • Edge
          September 9, 2021

          Hi, Mike. Thanks for getting back to me. With that in mind, another way that you could approach this would be to use our WooCommerce Quantity Manager plugin, which allows you to set quantity rules for individual variations. You could add/create the example variations each priced at per kg and set the appropriate default and minimum quantities and step values. E.g.:

          Variation 1 (1kg) will have a default and minimum qty of 1 and step value of 1
          Variation 2 (2kg) will have a default and minimum qty of 2 and step value of 2
          Variation 3 (3kg) will have a default and minimum qty of 3 and step value of 3

          I believe this way would work best for what you'd like to achieve. What do you think? We can also discuss this in more detail if you could submit an enquiry via our dedicated Support Center. Thanks!

  3. Bilal Ahmad Butt
    August 1, 2021 Reply

    i m working on my website H.M Spices & Herbs, as per you know these products customer like to order in weight because some of them in Spices they need extra comparetivly other spice so what would better for me go to method one & set the price per Grams for each spices & herbs or go to method 2 and make varint 10 grm/50 gram/100grams?
    need your experience opinion.
    thank u so much

    • Edge
      August 1, 2021 Reply

      Hi, Bilal. Thanks for your interest in our plugins for WordPress and Wo​oCommerce! I'm glad you found our article for your use case on your website for selling spices and herbs online.

      The method better for you would be the one that would be easier to manage on your end, as well as provide a better experience for your customer's needs. i.e. Would it be easier for you and do your customer's usually purchase your products in different/specific/custom weight? Or do you usually sell in fixed, pre-determined weight variations which your customers choose from, such as packs of 50g, 100g, 250g, 500g, etc.? This should help you choose the method that's right for both you and your customers.

      I hope this helps. Let me know if you have any more questions. You can also enquire in more detail by submitting a form via our dedicated Support Center. Thanks!

Please share your thoughts...

Your email address will not be published.