Weight of liquids e.g. litres (l), milliltres (ml) (5 posts)

  1. davemgraham
    Posted 3 years ago #

    The weight options for products in woocommerce are


    Is it possible to configure the volume of liquids e.g. litres (l) or millilitres (ml) ?



  2. Coen Jacobs
    Posted 3 years ago #

    It is possible to add custom weight options, but I don't think that it makes a lot sense. The weight and dimension values are mainly used for shipping calculation (except from showing it on frontend). Shipping calculation is impossible for an option like litres or millilitres, since the total weight can differ between fluids.

    Say I sell raw oil, that is probably heavier per litre compared to plain water.

  3. davemgraham
    Posted 3 years ago #

    Thanks Cohen,

    My client is selling beauty products that for example come in 150ml bottles. I'm looking at the best way for the size (150ml) to be displayed.

  4. Coen Jacobs
    Posted 3 years ago #

    I would do it via an attribute (just add a custom one), so it will be shown in the additional information tab along with the default fields like weight and size.

    If you need anything beyond what you can do with attributes, I'm afraid you are looking at custom work. You can add a custom field in the same meta box, where you can fill in the contents of the bottle and have it stored in postmeta. That way you can output it virtually everywhere on the product page.

    But as I said, attributes are probably your best bet in this case.

  5. davemgraham
    Posted 3 years ago #

    I've added a custom attribute.

    Thanks Coen


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic