Skip to main content
All CollectionsBuild & customizePayment methods
How to calculate the price in the form
How to calculate the price in the form

Calculate product prices, add shipping fees, and display the total amount before users pay. Easy setup, secure transactions.

Updated over a month ago

By following these simple steps, you’ll be able to create a customized order form that suits your specific needs in no time!

1. Create a form and customize it

Sign in to your Formaloo account, go to the dashboard, click on + New Formaloo, and choose form. Edit it from "edit base" to start building your form, or use one of our 200+ Templates.

2. Add product fields

You can add products to your online order forms or any form for selling items using the product field, which is a useful tool.

⭐ Pro tip:

By adding product fields, the price variable will be added to your logic page and you can add additional prices to this variable via the advanced logic.

3. Additional pricing options

Here you can add extra amounts to your order - for example, if you need to include additional costs such as packaging or shipping fees. So you can add a single choice field, and add your options.

additional price

Then with the logic you can add these prices to the product price your client has already chosen.

4. Connect your payment gateway to your online order form

After you make your form, It’s time to connect it to your payment gateways to redirect customers to them. So by linking the form to a payment gateway, customers can make purchases quickly and securely.

payment method

From the settings tab, you can enable the Form with payment option and select your payment method to connect your payment method to your online form.

⭐ Pro tip:

If you don't have any product fields and want to use single-choice fields for your products and calculate the price, the price variable will be automatically added to your logic page by enabling the "Form with payment" option.

Learn more about How to create a payment method on your forms.

🧩 Template:

5. Add logic for calculating the additional price

Now it’s time to calculate the total price using the logic, where you can also connect and add additional prices to the product fields’ prices.

logic and calculation

Once you choose a field, the logic tab will appear on the right sidebar, click on it and select advanced logic.

📝 Additional insights: Check how to use Formaloo Logic to boost knowledge about advanced logic.

6. Pipe the total price and show it to the user

It is a good idea to show the total price to the users at the end of your form, so the customers can see the calculation of their order before redirecting to the payment gateway.

📝 Additional insights: Learn more about how to use answer piping on your forms.

To pipe the total price on your form, You should add a content field and write inside the description part like this:

Total price: {{price}} or @price

Answer pipe the variable
Did this answer your question?