Formula Pro for WooCommerce 的产品价格
Formula Pro for WooCommerce 插件的产品价格可让您设置自动 WooCommerce 产品价格计算的公式。它使用标准数学运算进行设置。
x*1.5+p1/p2
例子:
1. [math_round]
舍入短代码。您可以使用 precision 属性设置小数。
[math_round precision="1"][if_customer_location country="US,CA"]x*1.10[/if_customer_location][if_customer_location not_country="US,CA"]x*1.20[/if_customer_location][/math_round]
2. [math_ceil]
四舍五入 (ceil)
[math_ceil]x*[product_weight][/math_ceil]
3. [math_floor]
向下舍入 (floor)
[math_floor]x*[product_length][/math_floor]
4. [math_max]
最大值
[math_max value1="x*p1" value2="{product_total_sales}"]
5. [product_meta]
您可以检索产品的任何 Meta – 由 required key 属性设置的 Meta key。
[product_meta key="_weight"]
6. [if_customer_location]
按客户位置(按 IP)定价
[if_customer_location country="US,CA"]x*1.10[/if_customer_location][if_customer_location not_country="US,CA"]x*1.20[/if_customer_location]
文档
Formula Pro for WooCommerce 插件的产品价格在哪里有用?
Formula Pro for WooCommerce 插件的产品价格对所有 WooCommerce 网站都有帮助。下面是一个开始将 Formula Pro 的产品价格用于 WooCommerce 插件的小列表。
- 电子商务网站
- 时尚网站
- 旅游商务网站
- 美容产品相关网站
- 餐厅网站
- 假日促销优惠
Formula Pro for WooCommerce 产品价格的主要特点
1. 为所有产品启用
通过选中复选框,按公式为所有产品启用价格计算。
2. 禁用产品 ID
如果您已选中“为所有产品启用”选项,则可以选择在此处添加产品例外。将其设置为以逗号分隔的产品 ID 列表。
3. 禁用产品类别 ID
如果您已选中“为所有产品启用”选项,则可以选择在此处添加产品类别例外。您可以将其设置为以逗号分隔的产品类别 ID 列表。
4. 使用相同的公式
您可以为所有产品启用相同的配方。
5. 为空价格禁用
您可以通过公式为价格为空的产品禁用价格。
6. 价格过滤器优先级
WooCommerce 价格过滤器的优先级。设置为 0 以使用默认优先级。
7. 添加仪表板小部件
您可以向管理仪表板小组件添加默认设置。
8. 产品列表列
您可以向 admin products (管理商品) 列表添加列。它有四个值。
- 已启用公式
- 公式
- 参数
- 价格
是什么让 Formula Pro for WooCommerce 插件的产品价格脱颖而出?
- 无需编码技能
- 干净的代码、布局和设计
- 易于设置或配置
- 支持和更新
改进建议
如果您对改进此项目有任何建议,请告诉我们!我们很乐意考虑任何建议,并感谢您的努力。我们将每周审查您的反馈,并选择最需要的功能以包含在未来的更新中!联系我们这里.
更改日志
2025 年 4 月 15 日(版本 2.4.5)
* Latest WordPress 6.8 compatibility Check
2024 年 11 月 27 日(版本 2.4.4)
* Latest WordPress 6.7.1 compatibility Check
2024 年 9 月 13 日(版本 2.4.3)
* Fix - Product list column field design in the backend
2024 年 9 月 2 日(版本 2.4.2)
* Dev - Support for WooCommerce's High-Performance Order Storage (HPOS) added * Latest WordPress 6.6.1 compatibility Check * Latest WooCommerce 9.0.2 compatibility Check
2024 年 5 月 17 日(版本 2.4.1)
* Fix - Disable Rating Notice. * Fix - WooCommerce plugin is not installed on plugin activation * Latest WordPress 6.3 compatibility Check
2023 年 4 月 15 日(版本 2.4.0)
* WordPress 6.2 Compatibility updated.
2022 年 11 月 11 日(版本 2.3.9)
* WordPress 6.1 Compatibility updated.
2022 年 5 月 28 日(版本 2.3.8)
* Fix - Parent category not required now to set formula for subcategories * WordPress 6.0 Compatibility updated.
2021 年 11 月 26 日(版本 2.3.7)
* WooCommerce 5.9 Compatibility updated.
2021 年 8 月 11 日(版本 2.3.6)
* WP 5.8 Compatibility updated.
2021 年 7 月 12 日(版本 2.3.5)
* Dev - Database Upgrade and Rename the plugin.
2021 年 3 月 13 日(版本 2.3.4)
* WP 5.7 Compatibility Updated
2020 年 12 月 10 日(版本 2.3.3)
* Dev - PHP 8.0 Compatibility Updated * Dev - Licensing Feature Added
2019 年 9 月 26 日(版本 2.3.2)
* Dev - Shortcodes - '[if_date]' - Shortcodes are Now Processed in Attributes * Dev - Shortcodes - '[product_date]' Shortcode Added * Dev - Code Refactoring
2019 年 9 月 24 日(版本 2.3.1)
* Dev - '[product_meta]' - 'use_parent_product' Attribute (Defaults to 'no') Added (same in '[product_weight]', '[product_length]' and All Other Shortcodes that Use 'product_meta()') * WC Tested Up To: 3.7
2019 年 7 月 10 日(版本 2.3)
* Fix - Admin Columns - PHP Notice (For Variable Products with No Prices) Fixed * Dev - '[if_product_taxonomy]' - 'use_parent_product' Attribute (defaults to 'no') Added (same in '[if_product_category]' and '[if_product_tag]') * Dev - '[if_product_taxonomy]' - 'multiple' attribute (defaults to 'no') Added (same in '[if_product_category]' and '[if_product_tag]') * Dev - '[if_user_id]' Shortcode Added * Dev - '[if_product_meta]' Shortcode Added * Dev - General - Bulk Settings - Enable for All Products - "Disable for Product IDs" Option Added * Dev - General - Bulk Settings - Enable for All Products - "Disable for Product Category IDs" Option Added * Dev - General - General Settings - "Disable for empty price" Option Added (Defaults to 'Yes') * Dev - General - Advanced Settings - "Plugin URLs" Option Added * Dev - General - Advanced Settings - "Price changes" Option Added * WC Tested Up To: 3.6 * Tested Up To: 5.2
2019 年 4 月 8 日(版本 2.2.1)
* Dev - '[product_meta]' - 'convert_to_numeric' Shortcode Attribute Added (Defaults to 'Yes') * Dev - '[product_meta]' - 'product_id' Shortcode Attribute Added (Defaults to Current Product's ID) * Dev - '[product_attr]' Shortcode Added
2019 年 4 月 1 日(版本 2.2)
* Dev - '[option]' Shortcode Added * Dev - '[timestamp]', '[to_timestamp]' Shortcode Added * Dev - '[if_regular_price]', '[if_sale_price]', '[if_current_filter]' Shortcodes Added * Dev - '[if_product_id]' Shortcode Added * Dev - '[product_id]' Shortcode Added * Dev - '[if_value]' - 'between' and 'not_between' Comparison Operators (and 'inclusive' attribute) Added (i.e. For Comma Separated Pairs) * Dev - '[if_value]' - 'in' and 'not_in' comparison operators added (i.e. For Comma Separated Lists) * Dev - '[if_value]' - Evaluate Formula Action Removed from Shortcode's Atts and Content * Dev - Default Formula - Automatically Listing All Shortcodes in Admin Settings * Dev - Tabs and New Line Symbols are Now Automatically Removed from Formula * Dev - Code Refactoring * Dev - Admin Settings Restyled
2019 年 1 月 21 日(版本 2.1.2)
* Fix - '[product_meta]' - Zero Post Meta Value Issue Fixed * Dev - '[product_meta]' - Applying Conversion to Number for Non-numeric Values (Includes Fractions) * Dev - '[if_value]' Shortcode Added * Dev - '[if_product_taxonomy]', '[if_product_category]', '[if_product_tag]' Shortcodes Added to Settings Description (in "Default Formula" section) * Dev - Free Plugin's Version Limitation (Only ten "price by formula" products enabled at a time) removed (i.e. now an unlimited number of "price by formula" products can be added with the free version)
2018 年 10 月 25 日(版本 2.1.1)
* Dev - '[if_product_taxonomy]' Shortcode Added * Dev - '[if_product_category]' Shortcode Added * Dev - '[if_product_tag]' Shortcode Added * Dev - Maximum Number of "Price by Formula" Enabled Products in Free Version Increased to 10 * Dev - Products List Columns - "Formula Enabled" Column Added
2018 年 10 月 25 日(版本 2.1)
* Dev - Use Same Formula - "Yes (With Same Params)" Option Added * Dev - Per Product - Calculation - "Use Default Formula with Individual Params" Option Added * Dev - Per Product - Calculation - Displaying Info in Case of Global Override * Dev - Code Refactoring
2018 年 10 月 10 日(版本 2.0)
* Dev - '[product_length]' Shortcode Added * Dev - '[product_width]' Shortcode Added * Dev - '[product_height]' Shortcode Added * Dev - '[product_weight]' Shortcode Added (and '%weight%' Value Marked as Deprecated) * Dev - '[product_stock]' Shortcode Added (and '%stock%' Value Marked as Deprecated) * Dev - '[product_total_sales]' Shortcode Added (and '%total_sales%' Value Marked as Deprecated) * Dev - '[product_meta]' Shortcode Added * Dev - '[if_customer_location]' Shortcode Added * Dev - '[if_user_role]' Shortcode Added * Dev - '[if_time]' Shortcode Added * Dev - '[if_date]' Shortcode Added * Dev - '[math_round]' Shortcode Added (and "Final Price Rounding" Section Marked as Deprecated) * Dev - '[math_ceil]' Shortcode Added * Dev - '[math_floor]' Shortcode Added * Dev - '[math_min]' Shortcode Added * Dev - '[math_max]' Shortcode Added * Dev - Admin Settings - "Products List Columns" Option Added * Dev - Default Formula Settings Moved to Separate "Default Formula" Section * Dev - "Advanced Settings" Subsection Added ("Shortcodes Prefix", "Price Filters Priority" Options) * Dev - Admin Settings Restyled and Descriptions Updated * Dev - Major Code Refactoring
2018 年 10 月 3 日(版本 1.1)
* Dev - "Add Default Settings Admin Dashboard Widget" Option Added * Dev - "Admin Note" Option Added for Each Parameter * Dev - "Final Price Rounding" Options Added * Dev - "Use Same Formula for All Products (With Individual Params)" Option Added * Dev - '%weight%' Special Value Added * Dev - Hiding "Enabled" Option in Per Product Settings if "Enable Price Calculation by Formula For All Products" is Enabled * Dev - Formulas With No (i.e. Zero) Parameters are Now Allowed * Dev - Major Code Refactoring (Special Values; 'version_updated()' etc.) * Dev - Admin Settings Minor Restyling (and Small Fixes) * Dev - "WC Tested Up To" Added to Plugin Header * Dev - Plugin URI Updated
2017 年 9 月 12 日(版本 1.0)
* Initial Release