Overview

WooCommerce Unit Of Measure allows you to add a unit of measure (UOM), or any text you require after the price in WooCommerce. You can add as many different labels after the price as you like with the input field on the product page, just under the price field. You can even use popular product import tools by adding the custom column, meta:_woo_uom_input, to do a unit of measure after the price in bulk.

Screenshots

Screenshots to follow.

  1. Hi Bradley, I just installed the unit of measure plugin and I don’t find the field under the price in my variation products. It appears in simple product and external/affiliate product not in the others. I ‘m just building my site

    • hi ramoo,
      the plugin allows you to add/change text after the price, it will not calculate anything between the different units of measure. Think it as a label.

      cheers
      brad

  2. Hi Brad, can this plugin be used to manage inventory? or its just a label for products?

    Examples is the deliveries comes in with cases, this contains 24 bottles, I would like to select the unit case for receiving the item because it would prevent mistake and use bottles or case for selling it.

    Thank you!

    • Hi pleiades,
      The main aim for the plugin is for a label on the frontend, however I would be interested to see how it can be extended for backend/inventory management (or I could make a another if they dont align). If I have any questions on how you might use it I might email you directly.
      Sidenote: interesting email username, do you have a 22b sti?

      Cheers
      brad

      • Thanks Brad for the reply, the multiple uom is for inventory management, email me any time!

        I don’t have one 🙁 I do wish i have one though, You like subaru too?

  3. I would like to use the UOM feature but am not having any success with it. The plugin is active and I can input a UOM for an item but the UOM is not showing up on the product table or next to the item in the store or in the cart after the price where I think I would see it. Does this plugin work with WordPress 4.9.2 Storefront theme? Any guidance would be appreciated. Thanks.

    • Hi Ryan,
      Are you able to provide a link to an example product with the issue? Also you mentioned a product table, is this a plugin that lists all the variations in a table instead of the select drop-downs that WooCommerce use?

      Cheers
      Brad

    • I’ve added this php to the functions.php for /kg for all products.
      Is there any way to add a condition to allow for the units as per your plugin?


      // Add R xx.xx per KG
      add_action( 'woocommerce_price_html', 'wc_custom_price', 10, 2 );
      function wc_custom_price( $price, $product ) {
      return sprintf( __( '%s per KG', 'woocommerce' ), woocommerce_price( $product->get_price() ) );
      }

  4. Sorry, it is this I used.
    // Adds “per kg” after each product price throughout the shop
    function sv_change_product_price_display( $price ) {
    $price .= ‘ per KG’;
    return $price;
    }
    add_filter( ‘woocommerce_get_price_html’, ‘sv_change_product_price_display’ );
    add_filter( ‘woocommerce_cart_item_price’, ‘sv_change_product_price_display’ );

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.