WooCommerce Add Product Price Unit on Shop and Single Product Page

Your store may sell the products that can not be counted simply in number and requires specific unit for the product. i.e if you are selling a product which are in liquid form you may want to add something like $25 per litre instead of just displaying $25 as Price.

Kudos to flexibility of customisation provided by WooCommerce, this can be achieved using a filter by adding following code snippet to functions.php file of your child theme.

This will change plain price value to unit price value as given in below screenshot.
WooCommerce - Product Price with Unit

Leave a Reply