## Description

**Product Price by Formula for WooCommerce** plugin lets you set formula for automatic WooCommerce product price calculation.

*Plugin settings are accessible via “WooCommerce > Settings > Product Price by Formula”.*

### Bulk Settings

- Enable for all products
- Enables price calculation by formula for all products.
- Default:
`no`

- Default:
- Use same formula
- Enables same formula for all products (with individual params).
- Default:
`no`

- Default:

### Admin Settings

- Add dashboard widget
- Adds default settings admin dashboard widget.
- Default:
`no`

- Default:
- Products list columns
- Adds columns to the admin products list. Possible values: Formula; Params; Price.
- Default:
*None*

- Default:

### Advanced Settings

- Shortcodes prefix
- Optional prefix for all plugin’s shortcodes. E.g.: if set to
`my_prefix_`

, will transform`[math_round]`

to`[my_prefix_math_round]`

.- Default:
*None*

- Default:
- Price filters priority
- Priority for WooCommerce price filters. Set to zero to use the default priority.
- Default:
`0`

- Default:

### Default Formula Settings

You can set default settings here. All settings can later be changed on individual product’s edit page (in **Product Price by Formula** meta box).

In **formula** use `x`

variable for product’s base price. For example: `x+p1*p2`

. Please note that you can not use `x`

or `pN`

**inside other params**.

In **formula and/or params** use can also use shortcodes.

Please note that if you are using **caching plugins** and dynamic product pricing (e.g.: price changing with product stock (`[product_stock]`

) or by customer’s location (`[if_customer_location]`

)), then caching needs to be disabled for products pages. If you want to keep caching enabled, you will need to cache product pages for each condition: for example for `[if_customer_location]`

you can set *Default customer location* option to *Geolocate (with page caching support)* in *WooCommerce > Settings > General*.

- Formula
- Price formula.
- Default:
*None*

- Default:
- Number of parameters
- Save settings after you change this number – new settings fields will appear.
- Default:
`1`

- Default:
- pN: Value
- Parameter value.
- Default:
*None*

- Default:
- pN: Admin note (optional)
- Optional parameter admin note.
- Default:
*None*

- Default:

### Shortcodes

`[math_round]`

– Rounding shortcode. Number of decimals can be set with `precision`

attribute.

#### Example

[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]

`[math_ceil]`

– Rounding up (ceil).

#### Example

[math_ceil]x*[product_weight][/math_ceil]

`[math_floor]`

– Rounding down (floor).

#### Example

[math_floor]x*[product_length][/math_floor]

`[math_min]`

– Min value.

#### Example

[math_min value1="x*p1" value2="x*p2"]

`[math_max]`

– Max value.

#### Example

[math_max value1="x*p1" value2="{product_total_sales}"]

`[product_total_sales]`

– retrieves product’s total sales number.

#### Example

[product_total_sales]

`[product_stock]`

– retrieves product’s stock.

#### Example

[product_stock]

`[product_weight]`

– retrieves product’s weight.

#### Example

[product_weight]

`[product_length]`

– retrieves product’s length.

#### Example

[product_length]

`[product_width]`

– retrieves product’s width.

#### Example

[product_width]

`[product_height]`

– retrieves product’s height.

#### Example

[product_height]

`[product_meta]`

– retrieves any meta for the product. Meta key is set by required `key`

attribute.

#### Example

[product_meta key="_weight"]

`[if_customer_location]`

#### Example

[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]

`[if_time]`

#### Example

[if_time from="00:00:00" to="11:59:59"]x*1.10[/if_time][if_time from="12:00:00" to="23:59:59"]x*1.20[/if_time]

`[if_date]`

#### Example

[if_date from="2018-09-15 00:00:00" to="2018-10-15 23:59:59"]x*1.10[/if_date][if_date from="2018-10-16 00:00:00" to="2019-09-14 23:59:59"]x*1.20[/if_date]

`[if_user_role]`

#### Example

[if_user_role role="guest,administrator"]x*1.10[/if_user_role][if_user_role not_role="guest,administrator"]x*1.20[/if_user_role]

### Examples

Let’s say product’s standard (i.e. original) price is $50 and its stock is 15 pcs. If you set **Formula** to `x+p1*p2`

, **Number of parameters** to `2`

, **p1** to `1.5`

and **p2** to `[product_stock]`

, then final price will be `50 + 1.5 * 15 = 72.5`

, i.e. $72.50.

### Prices & Licenses

Single site | Unlimited sites | |

1 year | ||

Lifetime |

### Refunds

**30 day money back guarantee**refund policy.

5out of 5djmfxp–hi

i want buy and use “Product Price by Formula for WooCommerce”

but i want know some details

i want use a unique single formula for all products(all product use a one formula)

but any products use own paramaters for universal formula.

can i do with this plugin?