All Collections
Build & customize
Form logic & calculations
How to calculate the additional price in your order form
How to calculate the additional price in your order form

Calculate additional prices in order forms. Set logic for packaging options and use answer piping to display the total price.

Updated this week

Let's consider our example.

We add a single-choice field with two options for standard packaging and gift wrapping, and for each of them, we want to add an additional price to the total order price. So we write it like this:

  • Standard Packaging- 5€

  • Premium Gift Wrapping- 15€

You can also add other types of fields such as multi-choice or dropdown fields.

Add logic for calculating the total price

On the top of your page, click on the “Logic” tab, and from the left menu, select “Advanced logic“.

In our example, after the packaging options question, add the condition:

If the answer is option 1, then +Add 5 to the price,

And another condition:

If the answer is option 2, then +Add 15 to the price

Now by choosing each of these fields, the packaging price will be added to the total price on your form.

How to use answer piping to show the total price at the end of your form

If you want to show the total price(product field price + additional price) at the end of your form or in the success message, follow these steps:

Add a variable field with a formula

You should add a variable and a calculation formula for the product fields and additional prices;

In our example, the formula is:

set1*60+set2*70+set3*45+price

add variable and formula

Don't forget to add an ID for the variable field. In the example, the ID is: total_price

Add a section field to pipe the calculation of "total price"

To display the total price at the end of your form or in your success pages, you should use the variable ID for answer piping like this:

{{total_price}}

answer piping the total price

Template:

Did this answer your question?