WooCommerce Unit Of Measure

Plugin Banner

WooCommerce Unit Of Measure

by Brad Davis

Download
Description

WooCommerce Unit Of Measure allows you to add a unit of measure (UOM), or any text you require after the price in WooCommerce.

Requires WooCommerce to be installed.

  1. Upload WooCommerce Unit Of Measure to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to “Inventory” tab in the product data area and put in your unit of measure
  4. Publish or update your product
  5. That’s it.
Where will the unit of measure output on the product?

After the price.

Can I add a unit of measure to a simple or variation product?

Yes you can. At this stage you can not change the unit of measure per variation but you can add a “global” (displays on all variations) like unit for the product.

Can I upload the unit of measure text when with WooCommerce CSV Import Suite?

Yes you can, follow these steps:
– Add a column to your Import Product CSV document
– Add the following title to your new column, meta:_woo_uom_input
– Fill your column with your required unit of measure or whatever text you want to add after the price for your product

Will this work with my theme?

Hard to say really, so many themes to test so little time.

Great

By aldohurt on May 29, 2022

Fajna wtyczka, przydatna i darmowa. Polecam

good plugin

By benbon (bonbonbillo) on June 23, 2021

not bad.could be better.

Great plugin!

By hippocampus888 on June 3, 2021

Thanks for the great plugin! Very easy to use, intuitive, and as efficient as possible. The guys are genius. Keep creating new products you are good at!

Simple and super useful

By Manathan (manathan) on April 18, 2021

Thanks for this awesome plugin!

Thank you!

By agromira on December 28, 2020

Everything works great

Fantastic

By themaincompany on November 24, 2020

Installed. Activated. Worked. Thanks a lot!

Excellent plugin! useful!

By digymon on May 6, 2020

Saved me a lot of time and effort. kind regards and good luck to the developers. Keep up the good work!

Nice plugin and one question

By goranzoric on April 9, 2020

How to use a parameter from the UOM if you want to place it elsewhere, for example, select a quantity (press "xv" text to insert a unit of measure): add_action( 'woocommerce_after_add_to_cart_quantity', 'bbloomer_echo_qty_front_add_cart' ); function bbloomer_echo_qty_front_add_cart() { echo '<div class="qty">xy</div>'; }

Works!

By taropaa on April 9, 2020

It just works as intended. The unit of measure can be fully customized and even supports powers such as m³ without crashing anything. Keep up the good work!

Fulfill this precise need

By se7en76 on April 1, 2020

Great job! The plugin works as designed and accomplish what is supposed to do! Nice to find the meta in db even if display on cart summary would have been useful for users before checkout over standards wooc tpl. Simple hack left to you 😉

3.2.0

  • Tested on WordPress 6.6.2
  • Tested on WooCommerce 9.3.3
  • Feature added to display UOM text on the cart page

3.1.0

  • Added compatible with High Performance Order Storage (HPOS)
  • Tested on WordPress 6.5.3
  • Tested on WooCommerce 8.9.0

3.0.3

  • Tested on WordPress 5.9
  • Tested on WooCommerce 6.2.0
  • Changed filter priority to fire later

3.0.2

  • Tested on WordPress 5.5.1
  • Tested on WooCommerce 4.6.1

3.0.1

  • Tested on WordPress 5.1
  • Tested on WooCommerce 3.5.5

3.0.0

  • WPCS refactor
  • Removed translation function from output on front end variables as they can not be translated

2.4.3

  • Added translation function around user input

2.4.2

  • Added screenshot of backend input location and frontend result
  • Tested on WordPress v4.9.8
  • Tested on WooCommerce v3.4.4

2.4.1

  • Reverted location so input is available as a global for multiple product types…..sorry for confusion.

2.4

  • Tested on WordPress v4.9.6
  • Tested on WooCommerce v3.4.1

2.3

  • Input is now global regardless of product as per original before the refactor

2.2

  • Cleaned up a class file

2.1

  • Added conditional to determine product type
  • Removed conditional for uom pro…oh it is still on the way

2.0

  • Tested on WordPress v4.9.5
  • Tested on WooCommerce v3.3.5
  • Refactored plugin structure

1.4

  • Tested on WordPress 4.9
  • Tested on WooCommerce 3.2.4
  • Added class to uom string

1.3

  • Added check for uom pro… yeah its on the way

1.2

  • Tested on WordPress 4.8.2
  • Tested on WooCommerce 3.2.1
  • Add WooCommerce header version check

1.1

  • Moved uom input to Inventory tab so it is available on simple and variable products
  • Removed the   from the output for accessibility reasons
  • Updated some FAQ and descriptions

1.0.2

  • Removed if empty check on save so unit of measure can be removed

1.0.1

  • Removed error on line 96, passed a variable that was not needed to the woo_uom_render_output function
  • Removed the conditional statement from the constructor
  • Renamed the return variable in the woo_uom_render_output function

1.0

  • Original commit and released to the world
Back to top