Knowledge Base

Hi, How can we help?

Pricing & Custom Formula

Every input field provides an option to enable pricing. At first you need to tick the ‘Enable Price’ checkbox in the general edit tab of the field. Then the window will expand and show the options in pricing.

Pricing Type

Pricing type has five varieties of pricing options.

  1. Fixed pricing
  2. Per Character pricing
  3. Multiply By Value
  4. Percentage Of Product Price
  5. Custom Formula

1.Fixed pricing

The value will be fixed as configured, will be added up with product price if the field is not empty.

Example 1: Fixed pricing same for all options



Example 2: Different price for all options



2.Per Character pricing

Price will be calculated per character that customer fill for the field. Admin can configure price per character value in the provided field, and it will count as per the customer enter each characters.

You can exclude the counting of the characters using a regular expression.





3.Multiply by Value

Price can be configured as a product of customer entered number,  It will multiply the number filled by customer with the value set.

Example 1: In this example, the price will be same for all options.



Example 2: Here we are showing you an example of different price for each option. In this, you have to enter prices for each options in the respective columns.



4.Percentage of Product Price

Price can be configured as percentage value of product base price. It will calculate the options price as per the percentage you are giving.




5.Custom Formula

Price can be set using custom formula, where admin can configure any mathematical operations that supported by Javascript and PHP , as well it supports ternary conditional operations.

While configuring the formula, it can use some predefined keywords in formula which will be quoted using { and }.  And also can refer other fields by using field element_ID.

Below are the list of predefined variables

{value}: Value entered by custom on the form.

{quantity}: Product quantity chosen by customer.

{product_price}: Product base price.

{days}: To find the number of days.

{this.count}: To find the count of options that the user selected.

{value.length}: To find the length of the string entered in a field.

Referring other fields price and value

{field.element_id_of_the_field.price}: which using to refer price of other field in a formula.

{field.element_id_of_the_field.value}: which using to refer value of other field in a formula.

Below are showing few examples for custom formula:

1.Set price based on the value percentage


2.Set price if the value is greater than 2. Here we utilizing javascript/php ternary operator


Here it checks if the value entered is greater than 2, and if yes, it multiply value by 10, else it will set price as 0.

3.Set price based on quantity customer choose

(100/{quantity })*{value}

Here by increasing the quantity, the price can be reduced.

4.Set price based on other field value


Here it refer to value of another radio field, and using it in a formula. It multiplies the value of radio field with the value user input for the text/number field.

wcpa-radio-group-1548937046157 is the element id of radio field, You can check below screenshot where it marked how we can get an element ID.

5.Setting Multiple Conditions

You can add multiple conditions for the same option price using ternary operator. For example,

Suppose you have a product and it has a varying options price per number of options varies. One example condition is given below.

  • 1-100 -> {value}*100
  • 101-200 -> {value}*80
  • >200 ->{value}*60



Setting Price as Fee

You can set a price as a fee by ticking this. Its effect is the option price will be added only once even when you select the product more than one. That is the price that set to be fee will be calculated only once per order irrespective of quantity.

Price Settings(Local)

If you ticked the Use Global Settings option it will take the global settings otherwise, these settings are applicable(local scope).

Show price against each fields will show prices against every field which enabled pricing.

Hide options price will hide the price for fields having options price.

By un-ticking the Price Summary Section will hide the respective prices against the tick option.

Pricing settings are available below each form. It will apply for the respective forms only(local scope).

If you enable the first option-Override product base price if options price is higher– it will only select one price either Option price or Base price which is higher.

The second option-Override product base price if options price is greater than zero– will only select the options price if there exist options price.

The third option-Set this form price as Fee– will set all the field price as fee and fee will be counted once irrespective of the quantity.

The fourth option- Exclude this form price from applying discounts- can be used for excluding discounts from the option prices.

You can change the labels for Options Price, Product price, Total and Fee, but it applicable only for the respective form only(local scope).

Price settings(Global)

Go to Settings–>Custom Product Addons–>Display Settings

Here, all the options will be ticked by default. If you don’t want every option as selected you can un-tick them and click on save changes. The settings will take effect on every custom form you have created(Global scope).

There are some pricing settings in the next tab, Contents/Strings of the same path.

You can change the label names of different price options from here – Options price, Product price, Total and Fee.

The format for showing price in field options can be changed from here.

You can also set a Product Price Prefix like ‘starting at’ before the product price on the archive page and the product page. Leave it blank if no prefix is needed. Eg: Starting at $150.00

Customer Support

If you have questions about our plugin(s), are experiencing issues with any of our plugin

image x