Skip to content

Calculations & Dynamic Formulas ​

QoraCRM Pro allows you to evaluate real-time mathematical formulas based on user inputs. You can use calculations to display live cost estimates to users or dynamically calculate product prices for checkout.


🧮 1. Calculator Field [Pro] ​

The Calculator field evaluates mathematical formulas in real-time to display dynamic results (e.g., price estimates, body mass index, area measurements).

Visual Formula Builder ​

In the Calculator Settings sidebar panel, configure your formula:

  • Operator Buttons: Quickly insert arithmetic operators: +, -, /, *, (, ), ..
  • Field Variable Picker ({..}): Select any existing numeric or choice field from the dropdown menu to insert its variable tag into the formula (e.g., {Room Size:7dw7o9weg}).
  • Prefix & Suffix: Append currency symbols or units before/after the calculated output (e.g., Prefix: $, Suffix: USD or sq ft).

Formula Example: ​

js
({room_length} * {room_width} * 15.5) + {cleaning_option}
  • {room_length} — Number input for room length.
  • {room_width} — Number input for room width.
  • 15.5 — Base rate per square unit.
  • {cleaning_option} — Selected radio/checkbox price for additional service options.

🛒 2. Product Field: Calculation Type [Pro] ​

When creating a Product field, selecting the Calculation product type allows you to compute the product's unit price dynamically using a mathematical formula.

How It Works: ​

  • Uses the exact same visual formula builder and math logic as the Calculator Field.
  • Key Difference: While a Calculator field is purely informational, a Product (Calculation) field dynamically sets the payable unit price of a product item, feeding directly into the order Total and Stripe checkout.

Example: ​

A custom printing order form where product price depends on page count and paper quality:

js
({page_count} * 0.10) + {paper_quality}
  • {page_count} — Number of pages entered by the user.
  • {paper_quality} — Selected paper option value (e.g., Premium Glossy = $5.00).
  • Result: Sets the final item price to be charged at checkout.

Released under GPL-2.0+ License.