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.
- Upload WooCommerce Unit Of Measure to the
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to “Inventory” tab in the product data area and put in your unit of measure
- Publish or update your product
- 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.
Contributors & Developers
“WooCommerce Unit Of Measure” is open source software. The following people have contributed to this plugin.Contributors
Translate “WooCommerce Unit Of Measure” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
- Tested on WordPress 5.9
- Tested on WooCommerce 6.2.0
- Changed filter priority to fire later
- Tested on WordPress 5.5.1
- Tested on WooCommerce 4.6.1
- Tested on WordPress 5.1
- Tested on WooCommerce 3.5.5
- WPCS refactor
- Removed translation function from output on front end variables as they can not be translated
- added translation function around user input
- Added screenshot of backend input location and frontend result
- Tested on WordPress v4.9.8
- Tested on WooCommerce v3.4.4
- Reverted location so input is available as a global for multiple product types…..sorry for confusion.
- Tested on WordPress v4.9.6
- Tested on WooCommerce v3.4.1
- Input is now global regardless of product as per original before the refactor
- Cleaned up a class file
- Added conditional to determine product type
- Removed conditional for uom pro…oh it is still on the way
- Tested on WordPress v4.9.5
- Tested on WooCommerce v3.3.5
- Refactored plugin structure
- Tested on WordPress 4.9
- Tested on WooCommerce 3.2.4
- Added class to uom string
- Added check for uom pro… yeah its on the way
- Tested on WordPress 4.8.2
- Tested on WooCommerce 3.2.1
- Add WooCommerce header version check
- 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
- Removed if empty check on save so unit of measure can be removed
- 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
- Original commit and released to the world