Title: WebDig.Dev Price From for WooCommerce
Author: Joao Costa
Published: <strong>2021 年 3 月 24 日</strong>
Last modified: 2026 年 10 月 3 日

---

搜索插件

![](https://ps.w.org/woo-price-from-in-variable-products/assets/banner-772x250.png?
rev=3726761)

![](https://ps.w.org/woo-price-from-in-variable-products/assets/icon-256x256.png?
rev=3726761)

# WebDig.Dev Price From for WooCommerce

 作者：[Joao Costa](https://profiles.wordpress.org/webdigpt/)

[下载](https://downloads.wordpress.org/plugin/woo-price-from-in-variable-products.1.3.0.zip)

 * [详情](https://cn.wordpress.org/plugins/woo-price-from-in-variable-products/#description)
 * [评价](https://cn.wordpress.org/plugins/woo-price-from-in-variable-products/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/woo-price-from-in-variable-products/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/woo-price-from-in-variable-products/#developers)

 [支持](https://wordpress.org/support/plugin/woo-price-from-in-variable-products/)

## 描述

WebDig.Dev Price From for WooCommerce replaces the default price range (for example“
€10.00 – €50.00”) shown on variable and grouped products with a single “From” price,
based on the cheapest option available.

**Features**

 * Shows “From” followed by the lowest price on variable products whose variations
   have different prices.
 * When the cheapest variation is on sale, shows its regular price crossed out next
   to its sale price.
 * Shows “From” followed by the lowest price on grouped products.
 * Keeps the WooCommerce price suffix (for example “VAT included”) and the store
   tax display settings.
 * Works with standard WooCommerce shop, category and single product price displays.
 * Adds the `pricefrom` CSS class to the “From” label for custom styling.
 * Compatible with High-Performance Order Storage (HPOS).
 * No settings required.

**Translations**

Included: Portuguese (Portugal), Spanish (Spain), French (France) and German. Additional
translations are welcome at translate.wordpress.org.

## 屏幕截图

[⌊Default WooCommerce price display for variable products (before plugin activation).⌉⌊
Default WooCommerce price display for variable products (before plugin activation)
.⌉[

Default WooCommerce price display for variable products (before plugin activation).

[⌊Modified price display after activating the plugin.⌉⌊Modified price display after
activating the plugin.⌉[

Modified price display after activating the plugin.

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/woo-price-from-in-variable-
    products` directory, or install the plugin through the WordPress plugins screen
    directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. WooCommerce must be installed and active.
 4. No additional configuration is required. The plugin will automatically adjust price
    display for variable and grouped products.

## 常见问题

### Does the plugin change the price charged to the customer?

No. The plugin only changes how the price is displayed. Cart, checkout and order
totals are not affected.

### How do I style the “From” label?

Use the `.pricefrom` CSS class, for example: `.price .pricefrom { font-size: 0.85em;}`.

### Which crossed-out price is shown on sale?

The regular price of the same variation that has the lowest price, so the crossed-
out price always corresponds to the price shown.

## 评价

此插件暂无评价。

## 贡献者及开发者

「WebDig.Dev Price From for WooCommerce」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Joao Costa ](https://profiles.wordpress.org/webdigpt/)

「WebDig.Dev Price From for WooCommerce」插件已被翻译至 3 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/woo-price-from-in-variable-products/contributors)
为本插件所做的贡献。

[帮助将「WebDig.Dev Price From for WooCommerce」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/woo-price-from-in-variable-products)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/woo-price-from-in-variable-products/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/woo-price-from-in-variable-products/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/woo-price-from-in-variable-products/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/woo-price-from-in-variable-products/)。

## 更新日志

#### 1.3.0

 * Tested up to WordPress 7.1 and WooCommerce 11.1.
 * Fixed: the crossed-out sale price could belong to a different variation than 
   the price shown.
 * Fixed: possible fatal error on grouped products without priced children (PHP 
   8).
 * Fixed: free (0) child products were ignored on grouped products.
 * Fixed: the WooCommerce price suffix (for example “VAT included”) was removed.
 * Fixed: bundled translations were not loaded because of an invalid language path.
 * Fixed: translated strings showed backslashes in the HTML output.
 * Removed: debug messages written to the PHP error log on every page load.
 * Removed: call to the deprecated `woocommerce_variable_sale_price_html` filter.
 * Changed: text domain set to `woo-price-from-in-variable-products` to match the
   plugin slug (translate.wordpress.org).
 * Changed: functions renamed with a unique `webdig_wpf_` prefix to avoid conflicts
   with WooCommerce.
 * Changed: HTML removed from translatable strings.
 * Added: `Requires Plugins: woocommerce` header.
 * Added: Portuguese (Portugal) translation; updated Spanish, French and German 
   translations.

#### 1.2.5

 * Fixed a critical issue when verifying HPOS compatibility.
 * Replaced `is_enabled` method with `wc_get_feature` to check HPOS activation.
 * Adjusted debug logs to prevent unnecessary errors.
 * Improved compatibility checks for modern WooCommerce environments.
 * Tested up to WooCommerce 9.4.3 and WordPress 6.7.1.

#### 1.2.4

 * Corrected price display issue where HTML tags were rendered as plain text.
 * Replaced `esc_html__` with `__` for frontend price formatting.
 * Improved handling of grouped product prices.

#### 1.2.3

 * Fixed a PHP notice related to compression (`ob_end_flush`).
 * Added configuration option to disable output compression in WordPress.
 * Enhanced debugging features for compatibility testing.

#### 1.2.2

 * Improved HPOS compatibility with `FeaturesUtil` declaration.
 * Adjusted the code to avoid direct interactions with WooCommerce internal classes.
 * Updated POT file to include new strings for compatibility logs.

#### 1.2.1

 * Added robust error handling for compatibility issues.
 * Improved debugging messages for HPOS activation.
 * Minor optimizations to code structure for better readability.

#### 1.2.0

 * Added compatibility with WooCommerce High-Performance Order Storage (HPOS) and
   Remote Logging.
 * Refactored code to avoid direct interactions with `wp_postmeta` and `wp_posts`.
 * Improved price display logic for grouped and variable products.
 * Tested up to WordPress 6.7.1 and WooCommerce 9.4.3.
 * Updated minimum PHP requirement to 7.4.
 * Optimized translations and text domain handling.

#### 1.1.0

 * Updated plugin name and branding to “WebDig.Dev WooCommerce – Price From in Variable
   Products”.
 * Improved price formatting logic for variable products.
 * Added compatibility with WordPress 6.7.1 and WooCommerce 9.4.3.
 * Updated minimum PHP requirement to 7.4.
 * Enhanced translations and text domain loading.
 * Fixed minor issues in grouped product price calculations.

#### 1.0.2

 * Fixed minor bugs.
 * Tested up to WordPress 6.3.1 and WooCommerce 8.1.1.

#### 1.0.1

 * Tested up to WordPress 6.3.1 and WooCommerce 8.1.1.

#### 1.0.0

 * Initial release.
 * Tested up to WordPress 5.2 and WooCommerce 3.6.1.

## 额外信息

 *  版本 **1.3.0**
 *  最后更新：**2 周前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.5 或更高版本 **
 *  已测试的最高版本为 **7.1.3**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [Dutch (Belgium)](https://nl-be.wordpress.org/plugins/woo-price-from-in-variable-products/)、
   [English (US)](https://wordpress.org/plugins/woo-price-from-in-variable-products/)、
   [Spanish (Chile)](https://cl.wordpress.org/plugins/woo-price-from-in-variable-products/)
   和 [Spanish (Spain)](https://es.wordpress.org/plugins/woo-price-from-in-variable-products/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/woo-price-from-in-variable-products)
 * 标签
 * [product price](https://cn.wordpress.org/plugins/tags/product-price/)[Variable Products](https://cn.wordpress.org/plugins/tags/variable-products/)
   [variations](https://cn.wordpress.org/plugins/tags/variations/)[woocommerce](https://cn.wordpress.org/plugins/tags/woocommerce/)
 *  [高级视图](https://cn.wordpress.org/plugins/woo-price-from-in-variable-products/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/woo-price-from-in-variable-products/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/woo-price-from-in-variable-products/reviews/)

## 贡献者

 *   [ Joao Costa ](https://profiles.wordpress.org/webdigpt/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/woo-price-from-in-variable-products/)