Omschrijving
Product Price by Formula for WooCommerce plugin lets you set formula for automatic WooCommerce product price calculation.
Product price formula can be set with standard mathematical operations, e.g.:
x*1.5+p1/p2
In addition in formula calculations you can use these shortcodes:
[math_round]
– Rounding shortcode.[math_ceil]
– Rounding up (ceil).[math_floor]
– Rounding down (floor).[math_min]
– Min value.[math_max]
– Max value.[product_meta]
– Product’s meta (any).[product_weight]
– Product’s weight.[product_height]
– Product’s height.[product_width]
– Product’s width.[product_length]
– Product’s length.[product_stock]
– Product’s stock.[product_total_sales]
– Product’s total sales number.[product_id]
– Product’s ID.[product_attr]
– Product’s attribute.[product_date]
– Product’s publish date.[option]
– Site option.[timestamp]
– Current time.[to_timestamp]
– Converts textual datetime description to timestamp.[if_customer_location]
– Price by customer’s country (location by IP).[if_user_role]
– Price by customer’s user role.[if_user_id]
– Price by customer’s user ID.[if_time]
– Price by current time.[if_date]
– Price by current date.
Pro version has these additional shortcodes available:
[if_value]
– Compares any two values.[if_product_id]
– Price by product’s ID.[if_product_meta]
– Price by product’s meta.[if_product_category]
– Price by product’s category.[if_product_tag]
– Price by product’s tag.[if_product_taxonomy]
– Price by product’s taxonomy (any).[if_regular_price]
– Apply formula to regular product price.[if_sale_price]
– Apply formula to sale product price.[if_current_filter]
– Apply formula for selected filter only.
For examples and additional information on shortcodes please visit Product Price by Formula for WooCommerce plugin page.
Feedback
- We are open to your suggestions and feedback. Thank you for using or trying out one of our plugins!
Installatie
- Upload the entire plugin folder to the
/wp-content/plugins/
directory. - Activate the plugin through the “Plugins” menu in WordPress.
- Start by visiting plugin settings at “WooCommerce > Settings > Product Price by Formula”.
Beoordelingen
Bijdragers & ontwikkelaars
“Product Price by Formula for WooCommerce” is open source software. De volgende personen hebben bijgedragen aan deze plugin.
BijdragersVertaal “Product Price by Formula for WooCommerce” naar jouw taal.
Interesse in ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.
Changelog
2.3.6 – 18/12/2020
- WP tested up to: 5.6
- WC tested up to: 4.8.0
- Dev – PHP 8.0 compatibility updated.
2.3.5 – 12/09/2020
- WP Tested 5.5.1
- WP Tested 4.5.1
- Dev – Plugin Review & Updgrade notice added
2.3.4 – 30/06/2020
- WP Tested 5.4.2
- WP Tested 4.2.2
2.3.3 – 30/03/2020
- WP Tested 5.4.
2.3.2 – 26/09/2019
- Dev – Shortcodes –
[if_date]
– Shortcodes are now processed in attributes. - Dev – Shortcodes –
[product_date]
shortcode added. - Dev – Code refactoring.
2.3.1 – 24/09/2019
- Dev –
[product_meta]
–use_parent_product
attribute (defaults tono
) added (same in[product_weight]
,[product_length]
and all other shortcodes that useproduct_meta()
). - WC tested up to: 3.7.
2.3.0 – 10/07/2019
- Fix – Admin columns – PHP notice (for variable products with no prices) fixed.
- Dev –
[if_product_taxonomy]
–use_parent_product
attribute (defaults tono
) added (same in[if_product_category]
and[if_product_tag]
). - Dev –
[if_product_taxonomy]
–multiple
attribute (defaults tono
) 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.
2.2.1 – 08/04/2019
- Dev –
[product_meta]
–convert_to_numeric
shortcode attribute added (defaults toyes
). - Dev –
[product_meta]
–product_id
shortcode attribute added (defaults to current product’s ID). - Dev –
[product_attr]
shortcode added.
2.2.0 – 01/04/2019
- Dev –
[option]
shortcode added. - Dev –
[timestamp]
,[to_timestamp]
shortcodes 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
andnot_between
comparison operators (andinclusive
attribute) added (i.e. for comma separated pairs). - Dev –
[if_value]
–in
andnot_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.
2.1.2 – 21/01/2019
- 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 unlimited number of “price by formula” products can be added with free version).
2.1.1 – 25/10/2018
- 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.
2.1.0 – 25/10/2018
- 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.
2.0.0 – 10/10/2018
- 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.
1.1.0 – 03/10/2018
- 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.
1.0.0 – 12/09/2017
- Initial Release.