Droid Unit Price
Unit price under the WooCommerce product price, e.g. "356,00 Kč / 1 kg" – per product and variation, sale price and VAT included.
Goods sold by weight, volume or length show the price per unit next to the price.
- Product fields under the price: package content (g, kg, ml, l, m, m², pieces) and "price per" (1 kg, 100 g, 1 l, 100 ml, 1 m, 1 m², 1 piece).
- Calculation: unit price = price ÷ content × reference unit, from the current price – a sale price included.
- Where: under the price on the product page and in listings, optionally in the cart. The text can be changed ("{price} / {unit}").
- Variations: each variation can have its own content; picking a variation updates the unit price without reloading the page.
- From the weight: optionally the product weight (kg or g) is used as the content.
- CSV: three columns in the WooCommerce product import and export.
- VAT: with or without VAT, as the shop displays prices. Currency and number format of the shop (CZK, EUR).
- For developers:
droid_unit_price( $product )for templates and feeds, filterdroid_unit_price_html.
Which goods must show a unit price is a legal question for each shop; the plugin does not decide it.
External services
The plugin contacts no external service.
wpDroid.cz plugin catalog
The shared wpDroid.cz → Overview page loads the list of wpDroid.cz plugins from https://wpdroid.cz/api/wp/catalog, only when an administrator opens that page, at most once every 12 hours. No site or visitor data is sent; like every WordPress HTTP request it carries the WordPress version and the site address in the User-Agent header. The catalog is provided by wpDroid.cz.
Plugin updates (copy downloaded from wpdroid.cz only)
WordPress asks https://wpdroid.cz/api/v1/update/droid-unit-price for new versions of this plugin about twice a day and when an administrator checks for updates or installs one. The request carries the installed plugin version, the PHP version and the site language, no site or visitor data; like every WordPress HTTP request it also carries the WordPress version and the site address in the User-Agent header. A copy from wordpress.org does not contact wpdroid.cz for updates. The service is provided by wpDroid.cz.
Screenshots
What you get
- Droid Unit Price plugin, free download
- Download for your e-mail – no payment and no billing details
- Updates right in the WordPress admin
Installation
- Download the plugin from wpdroid.cz, then in Plugins → Add New Plugin → Upload Plugin upload the zip and activate it.
- Fill in the package content of a product (Product data → General, under the price).
- Choose where to show the unit price in wpDroid.cz → Měrná cena.
Common questions
- How much does the plugin cost?
Nothing, the plugin is free.
- A product does not show the unit price. Why?
The package content is not filled in or is zero, or the content unit does not match the selected “Price per” unit. For example, content in millilitres cannot be converted to kilograms.
- Is the unit price calculated from the sale price?
Yes. Always from the current price at which the product is sold, so from the sale price too.
- Is the unit price including or excluding VAT?
The same as the other prices in the shop. The plugin follows the WooCommerce “Display prices in the shop” setting, and in the cart the “Display prices during cart and checkout” setting.
- Does it work with variations?
Yes. Each variation can have its own package content, and after a variation is selected the unit price changes without reloading the page. When variations have the same price, WooCommerce normally hides the variation price. The plugin shows it if the variations’ content differs.
- Can I fill in the package content in bulk?
Yes, with the WooCommerce CSV product import. The plugin adds three columns to both import and export: content, unit and reference unit.
- Can I use the product weight?
Yes, if your weights are in kilograms or grams. In the settings, enable using the weight as package content for products that do not have it filled in. The plugin does not convert pounds and ounces.
- Do I have to show the unit price in my shop?
Which goods require a unit price is a legal question for each shop. The plugin does not decide that, it only displays the price.
- What data does the plugin send?
No data about the shop or customers. The unit price is calculated directly on your site. A copy downloaded from wpdroid.cz checks wpdroid.cz for updates, sending only the plugin version, PHP version and site language. The wpDroid.cz → Overview page loads the list of plugins from wpdroid.cz, at most once every 12 hours.