Linux 软件免费装
Banner图

JeyTech Unit Price Guard for WooCommerce

开发者 jeytech
更新时间 2026年10月14日 02:54
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

woocommerce unit price base price price per kg price per litre

下载

1.0.0 1.0.1

详情介绍:

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. 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.

安装:

  1. Install and activate with WooCommerce active.
  2. Edit a product: in Product data > General, enter the Net quantity (e.g. 250), its Unit (g) and the unit price shown (per kg or per 100 g). For variations, open the variation and fill the same fields, or leave them empty to use the parent values.
  3. Optional: adjust the display and format under WooCommerce > Unit 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.
  • Unit prices are displayed on product lists in a block theme.
  • The Cart Block includes the configured unit price line.
  • Adjust the display and unit price format under WooCommerce > Unit Price.

常见问题:

Is the unit price updated during a sale?

Yes. It is calculated from the active price each time it is displayed, so scheduled and manual sales are included.

Does it include tax?

It follows your WooCommerce tax display settings: the shop setting for product pages, the cart setting for the cart and checkout.

Why is there no range on my variable product?

A range is shown only when every visible variation has a net quantity, directly or through the parent, with the same reference unit. The selected variation still shows its own unit price.

Is it shown in order emails?

No. Version 1.0.0 shows the unit price on the storefront, cart and checkout.

What happens on uninstall?

The plugin settings are deleted. Net quantities saved on products are kept.

更新日志:

1.0.1 1.0.0