Product Price by Formula for WooCommerce

Description

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!

Installation

  1. Upload the entire plugin folder to the /wp-content/plugins/ directory.
  2. Activate the plugin through the “Plugins” menu in WordPress.
  3. Start by visiting plugin settings at “WooCommerce > Settings > Product Price by Formula”.

Reviews

September 27, 2019
The plugin works exactly like it should and the support is great. I had a question with issue which was resolved in less than 24 hours. Thank you guys, you are awesome!
May 23, 2019
The plugin functions brilliant and the support is excellent!
January 19, 2019
The plugin works as advertised but beyond that Tom is great and went above and beyond to make it work for our needs.
Read all 4 reviews

Contributors & Developers

“Product Price by Formula for WooCommerce” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

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 to no) added (same in [product_weight], [product_length] and all other shortcodes that use product_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 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.

2.2.1 – 08/04/2019

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

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

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.