Blog

Selling products by weight or length in WooCommerce: how to organise quantities

كاتب من GazduireOnline.ro
نشره
GazduireOnline.ro PR

هذا المحتوى متوفر باللغتين الرومانية والإنجليزية فقط؛ يظهر النص الإنجليزي أدناه.

Selling products by weight or length in WooCommerce: how to organise quantities

If you sell coffee by the kilogram, cable by the metre or carpet by the square metre, displaying a unit beside the product is not enough. Customers need to understand how much they will receive, which quantities they can order and how the product total is calculated. Your shop also needs to carry those details consistently through stock management, the basket and the order.

For example, an order for 1.5 metres of fabric must not be interpreted as one and a half packs. Here is how to organise measurement units in WooCommerce around the way you actually prepare and dispatch your products.

The displayed unit does not determine the order quantity

WooCommerce includes settings for product weight and dimensions. These describe physical properties and may be used to calculate shipping, but they do not automatically turn the quantity field into a kilogram or metre selector. Adding „/kg” beside a price does not change the purchasing rules either.

Separate these three details before configuring the product:

  • The pricing unit: a kilogram, linear metre, square metre or pack.
  • The order quantity: the value the customer enters.
  • The stock unit: the measurement you use to track availability.

When selling by weight, a quantity of 0.5 might mean half a kilogram. If you sell 500 g bags instead, a quantity of 1 means one bag, not one kilogram. A product named „Coffee beans, 500 g bag” can use whole-number quantities. Coffee weighed to order needs rules that handle fractions correctly, together with a label such as „Quantity in kg”.

Choose between fixed packs and calculated quantities

Start with your shop operations rather than the appearance of the quantity field. If you only prepare fixed portions, a simple product or product variations may be sufficient. For example, you could offer „250 g pack”, „500 g pack” and „1 kg pack”, each with its own price and stock.

Selling by the metre is different when you cut cable to the requested length. A customer may need 2.5 m rather than three one-metre packs. You need to decide whether the entered quantity represents the length of a single piece or the combined length of several pieces.

For surface area, this distinction matters even more. Carpet with a fixed width of 2 m, cut to a length of 3 m, covers 6 m². If pricing is per square metre, the calculation must use the area rather than just the entered length. Also explain when material is only sold in complete boxes, even if you display a reference price per m².

Set the minimum order quantity and purchasing increment

The minimum order quantity is the smallest amount a customer can buy. The increment determines the permitted steps between quantities. These are separate rules: a minimum of 0.5 kg does not automatically explain whether the next permitted amount is 0.6 kg, 0.75 kg or 1 kg.

A clear rule for coffee might be a minimum of 0.5 kg, followed by increments of 0.25 kg. Valid quantities would be 0.5, 0.75, 1 and 1.25 kg. For cable, you might allow a minimum of 1 m and increments of 0.5 m.

  • Define the measurement unit and permitted decimal precision.
  • Specify whether increments start from the minimum or from zero.
  • Set a maximum if cutting or packaging imposes a limit.
  • Display the rule beside the selector, not only on a terms page.

A useful message is „Order at least 0.5 kg, in increments of 0.25 kg”. Check how decimal commas and decimal points are handled in your configuration. When a value is not accepted, explain the rule rather than silently changing the requested quantity.

When you need additional functionality

In a standard setup, product quantities are generally used for whole items. Fractional quantities, product-specific minimums and increments, or area calculations based on dimensions will usually require a compatible extension or a custom implementation.

Choose functionality for the complete workflow. A selector that accepts 1.25 is not sufficient if stock management, the basket or your invoicing integration treats that value as a whole number. Check compatibility with the type of basket and checkout your shop uses as well.

  • For cut materials, check dimensions and the number of pieces.
  • For weighed products, check quantity precision and stock deductions.
  • For boxed products, check rounding to complete packs and the area supplied.
  • For discounts, check which quantity is used to evaluate volume thresholds.

Test changes in a separate environment before publishing them. For your shop infrastructure, GazduireOnline.ro offers WordPress hosting and cloud hosting, so you can choose according to the resources and management arrangements you need.

Check the total calculation, stock and shipping

The basic formula is billable quantity × unit price, but the billable quantity does not always match the entered value. A panel measuring 1.2 m by 2 m has an area of 2.4 m². For tiles sold by the box, the required area may need to be converted into a whole number of boxes.

Decide where rounding happens: dimensions, area, packaging or only the monetary amount. Any commercial rounding to complete packs should be explained before the product is added to the basket. Check taxes and discounts separately, including whether displayed prices include or exclude tax.

Shipping uses its own product data. If the product represents one kilogram and you configure the corresponding weight, test that a quantity of 0.5 produces the expected weight in your shipping integration. Account for packaging according to your shop rules and check carrier limits for long items. A three-metre metal section may need a different delivery service from three one-metre pieces.

Place a complete test order before publishing the rules

Follow the same order from the product page through to the confirmation message. For example, an order for 1.25 kg of coffee should retain both the quantity and the unit in the basket, the administration order record and the email, rather than showing an ambiguous number.

  1. Try a valid quantity, one below the minimum and one that does not match the increment.
  2. Change the quantity directly in the basket and check that the rules are also validated on the server.
  3. Test an amount above available stock and another close to the stock limit.
  4. Apply a discount and check the total, tax and shipping.
  5. Review the confirmation, generated documents and stock restoration after cancellation, according to your shop settings.

The email could include a clear message such as „Quantity ordered: 1.25 kg. Please check your order details.” For cut materials, include dimensions and the number of pieces too. You can consult the frequently asked questions for general information about hosting services.

Start with one representative product and write its selling rule in a single sentence. If the product page, basket, stock records and confirmation all express that same rule, you have a consistent foundation for applying the configuration across the rest of your catalogue.

مستعد لإطلاق موقعك؟

تحقق من توفر النطاق الذي تريده أو اعرف خلال 10 ثوانٍ أي باقة استضافة تناسبك.

مقالات ذات صلة

إليك مقالات أخرى قد تفيدك. ننشر معلومات مفيدة وعملية لقرّائنا.

اشترك في النشرة الإخبارية

اشترك في نشرتنا الإخبارية ورسائلنا التسويقية. سنرسل إليك المستجدات والعروض.

رسم توضيحي للاشتراك في النشرة الإخبارية