跳到内容

JeyTech Unit Price Guard for WooCommerce

v1.0.2

JeyTech · 2026年10月13日 上架

Show the price per kg, litre, metre or square metre, calculated from each product's net quantity. Variations, sales and cart included.

正在使用
10 以下
评分
暂无
累计下载
291
最近更新
2026年10月28日
需要 WordPress 6.6+已测试到 7.1.5PHP 7.4+

贡献者

截图

Set the net quantity, quantity unit and unit price reference on a product.
Set the net quantity, quantity unit and unit price reference on a product.
A sale product shows its price per kg, calculated from the active price.
A sale product shows its price per kg, calculated from the active price.
A variable product shows a unit price range and the selected variation's price per litre.
A variable product shows a unit price range and the selected variation's price per litre.
Unit prices are displayed on product lists in a block theme.
Unit prices are displayed on product lists in a block theme.
The Cart Block includes the configured unit price line.
The Cart Block includes the configured unit price line.
Adjust the display and unit price format under WooCommerce > Unit Price.
Adjust the display and unit price format under WooCommerce > Unit Price.

Selling coffee by the 250 g bag, olive oil by the 75 cl bottle or fabric by the metre? Enter the net quantity once and the unit price is calculated from the current price every time the page is displayed. A price change or a sale never leaves a stale “€/kg” in a product description.

  • Net quantity and unit on simple products and on each variation (g, kg, ml, cl, l, cm, m, m²). Variations without their own quantity use the parent values.
  • Unit price per kg, l, m or m², or per 100 g / 100 ml when you choose it for a product.
  • Calculated from the active price, sale included, with your store tax display settings and price decimals.
  • Shown under the price on product pages and product lists (classic templates and product blocks), and for the selected variation.
  • Variable products show a unit price range when every variation shares the same reference unit.
  • Optional line in the cart, mini-cart and checkout, classic and Cart/Checkout blocks.
  • Editable format, for example “{price} / {unit}” or “({price} per {unit})”.

Products without a net quantity are not changed. The plugin makes no external requests and does not change prices, orders or stock.

Which products must show a unit price depends on your country’s rules. This plugin calculates and displays the unit price you configure; it does not decide whether a product is concerned.

Translations are delivered through native WordPress language packs when available.

Other free JeyTech plugins

Setup tutorial.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums