Precio de WooCommerce por unidad


This is an extension for WooCommerce which will help you to sell products where can be important for the customer to know how much a weight unit costs.
For example when selling food. Price is recalculated per weight and then shown according to your liking. The rules can be set store-wide or just for certain products.
Main function of the plug-in is, that it takes the price of your product and divides this price by its weight, this is then displayed to your liking

Another Must-Have Plugin: Sell by Weight PRO

This plug-in allows you to sell easily products, where you want to have several weight option to sell at the same price for kilogram.
It works in a similar way as Variable products, but it is easier to manage because you will enter the price only once and the options price is calculated automatically.

More info here – Sell by Weight PRO

New plug-in available – Unit Based Stock PRO

Manage your stock in Weight units!

Handle inventory in weight units – a capability unprecedented in WooCommerce, which traditionally manages stock solely based on purchased quantity.
Supports decimal values for stock inventory as well.

More info here – Unit Based Stock PRO

PRO version available

Price per Unit PRO

PRO version features:

  • Single product settings – possibility to set the settings for each product individually and override the general settings
  • Better variations support – The variation shows price per unit after selecting.
  • It’s possible to enter custom number of units(for example kilograms) which is different from the weight – for the purpose you sell products with packing and you need to display recalculation for net weight and at the same time you need to keep gross weight for shipping purposes
  • This feature can now also be entered differently for separate variations on variable products
  • Change of recalculation per different unit (keeps the original weight, but shows the price per new unit)
  • Recalculation ratio – multiplies the price with this ratio – work for example if you want to show price per 100 grams (if you have shop in kg you enter 0.1)


This is an extension for WooCommerce which will help you to sell products where can be important for the customer to know how much a weight unit costs.
For example when selling food. Price is recalculated per weight and then shown according to your liking. The rules can be set store-wide or just for certain products.
Main function of the plug-in is, that it takes the price of your product and divides this price by its weight, this is then displayed to your liking

Important notice

This plug-in works only if you have weight set on the product. This is independent setting used for shipping purposes.

You can find it here:
Products->All products->some of your products->Shipping->Weight

For variable products with different weight of variations:
Products->All products->some of your products->Variations->some variation->Weight

Se puede mostrar el precio recalculado

  • En lugar de precio original
  • Como una nueva fila después del precio original

También puede agregar texto después del precio recalculado, por ejemplo, “/ Kg”
El precio se vuelve a calcular solo cuando se establece el peso en el producto.

También hay dos configuraciones diferentes según la vista de página

  • Configuraciones para la página de la tienda
  • Configuraciones para la página de un solo producto

This plug-in can do also some other customization to the appearance of the price

  • Texto personalizado adicional para todos los precios
  • Puede ocultar el precio original cuando el producto está a la venta
  • Texto personalizado adicional para variaciones
  • Puede ocultar el precio máximo para productos variables

Plug-in is compatible with WooCommerce versions from 3.0.0 to 4.0.x

Hay dos conjuntos de configuraciones

Configuración general : que afectará a todos los productos de la tienda
Se encuentra en WooCommerce – & gt; Configuraciones – & gt; Productos – & gt; Precio por unidad
Configuración del producto único : afecta solo a un producto, también puede anular la configuración general
Está ubicado en el editor de productos – pestaña Precio por unidad


  • Opciones generales: esas configuraciones afectarán a todos los productos
  • Important setting – for this plug-in to work the weight of the product needs to be set
  • Página de producto único con precio recalculado como nueva fila
  • Ejemplo de página de tienda con anulaciones diferentes. El precio recalculado reemplazó el original, el precio recalculado como una nueva fila, sin recálculo en absoluto.
  • Almacenar con el recálculo establecido para todos los productos


  1. Install and activate the plug-in in your WordPress dashboard by going to Plug-ins -> Add New.
  2. Search for “WooCommerce Price Per Unit” to find the plug-in.
  3. When you see WooCommerce Price Per Unit, click “Install Now” to install the plug-in.
  4. Click “Activate” to activate the plug-in.

Preguntas frecuentes

¿Es posible establecer el recálculo solo para un producto?

Sí. Debe ir al editor de productos, seleccionar Precio por unidad y establecer una anulación a la regla que desee. Funciona entonces incluso a pesar de que la configuración global está desactivada.

Tengo un nuevo cálculo, pero el precio parece intacto. ¿Qué pasa?

El precio recalculado se muestra solo cuando se lleva a cabo el recálculo. Eso significa que si no tiene el peso establecido en el producto, no ocurre nada con el precio. Asegúrate de tener un peso establecido.

Quiero usar solo otras funciones, no volver a calcular. ¿Es necesario tener un nuevo cálculo?

No. Algunas características son independientes en el recálculo, las encontrará como “Opciones de precio general” y “Opciones para productos variables”. Estas configuraciones son para toda la tienda; afectarán a todos los productos.


7 de diciembre de 2022 1 respuesta
It has only support for all products at the same time. If you want to sell one product per unit and other per kg, you cannot. Useless
21 de febrero de 2020 1 respuesta
This plugin has potential and is what we need. But the downside is that any filter/sorting looks at the original price, not the price per unit/kg.
Leer todas las 10 reseñas

Colaboradores y desarrolladores

Este software es de código abierto. Las siguientes personas han contribuido a este plugin.


“Precio de WooCommerce por unidad” ha sido traducido a 1 idioma local. Gracias a los traductores por sus contribuciones.

Traduce “Precio de WooCommerce por unidad” a tu idioma.

¿Interesado en el desarrollo?

Revisa el código, echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.

Registro de cambios


  • New feature – Options on product detail to disable recalculation
  • Improvement – Variable products performance optimization
  • Bug-fix – small bugfixes
  • Improvement – HPOS compatibility
  • Improvement – Code refactoring
  • Compatibility with WooCommerce 8.8.3
  • Compatibility with WordPress 6.5.3


  • Improvement – Warning displayed when no weight is set
  • Compatibility with WooCommerce 6.1.1
  • Compatibility with WordPress 5.9.0


  • Bug-fix – Do not display additional text on empty price
  • Bug-fix – Division by zero in some rare circumstances
  • Scripts updated
  • RTL languages improvement
  • WPML configuration created
  • Compatibility with WooCommerce 5.6.0
  • Compatibility with WordPress 5.8.1


  • Backward compatibility for recent bug-fix


  • Bug-fix – In certain configurations price with taxes was displayed improperly in Cart


  • Bug-fix – Improper price display with taxes


  • Bug-fix – “Variations – prefix for variable price” not visible for replaced row


  • New free version – due to huge changes in code(security hardening) the free version is created from scratch
  • For sake of easier parallel development of free and PRO version there is a change in free version approach
  • Removal – Single product settings removed
  • Paid feature released for free – display of recalculated price in Cart
  • New feature – automatic recalculation text


  • Fixed info messages in admin for WooCommerce 4.0.1


  • Added option to trim recalculated prices instead of rounding
  • Added recalculated price prefix
  • Security hardening – complete revision of the code to comply with latest wordpress security recommendations


  • Code revision and rewrite


  • Bug-fix – recalculated price was displayed on products with zero price


  • New feature/bug-fix – displaying recalculate price on cart was influenced by Shop page price behaviour – now it has option by itself
    The settings “Show if displayed on Shop page” and “Show if displayed on Single product page” take respective override from product settings
    Default setting is to show the text always


  • New feature – Automatic recalculation text – it takes the weight unit from your shop settings and creates the text from it (example: /kg). Works together with other setting of this plug-in so it can create text for Different weight unit and also Custom number of units.
  • Added option to control the appearance of the price text
  • Added warning for no weight set(many people is asking why they don’t see the recalculated price)


  • Dropped support for WooCommerce pre 3.0


  • Bug-fix – Settings automatically deleted on uninstall – now there is a setting in general options to delete on uninstall – caused troubles during manual update or upgrade to Pro version.


  • New approach to entering additional text – predefined values


  • Bug fix – “General price additional text” – not showing properly on recalculation


  • Compatibility with WordPress 5.1


  • Added Custom recalculation ratio for variations


  • Added Custom recalculation ratio
  • Recalculated price can be shown also on variation selection
  • Translation fix
  • Core rewrite


  • Plug-in is set to display recalculation for all products by default after installation. Doesn’t affect current installations.
  • Compatibilidad fija con WooCommerce POS


  • Se corrigió el error del precio mostrado incorrectamente con impuestos


  • Se agregó una clase CSS para una nueva fila. El nombre de clase es mcmp_recalc_price_row.
  • Se agregó la opción para el estilo predefinido de la nueva fila (desactivada de manera predeterminada). La nueva fila tendrá diferentes tamaños y cursiva.


  • Mejorado manejo de productos variables. Ahora funciona correctamente incluso con diferente peso en las variaciones.
  • Se agregaron clases de CSS para la modificación de la apariencia de textos adicionales. Las clases se pueden encontrar en los textos de ayuda de configuración general.


  • Changed behaviour on variable products to conform with WooCommerce 3.x
  • Don’t show sale price on variable products


  • Versión inicial