The Unit price calculation / Total price calculation field (this section is titled Total Price Formula in the nav) is the main place you define how the line price is computed from options and base. You can also set minimum and maximum price caps and a calculator-level discount. Configure it in Calculator Editor → Options & Pricing → Total Price Formula.
If you leave the formula empty, the app still produces a price: see When the formula is empty below.
If the formula field is blank (no expression):
After that intermediate price, the app still applies minimum / maximum price, total discount, fixed fees, and quantity discount rules as you configured them.
Use a non-empty formula when you want explicit control—for example VAR("BASE_PRICE") + OPT("A") + OPT("B"), or richer logic with IF(), TABLE(), and computed variables.
Stale compiled formula: If you previously had a formula and cleared it, save the calculator so the app does not reuse an old compiled graph. The editor normally clears this when the field is empty.
OPT("KEY") or INPUT("KEY"), the base with VAR("BASE_PRICE"), calculator variables with VAR("KEY"), Shopify values with VAR("SHOPIFY.PRICE"), etc., and tables with TABLE().| Setting | Description |
|---|---|
| Price granularity | Controls whether the formula is per-unit or a single total. |
| Price formula | The main formula that computes the price. |
| Minimum price | The lowest price allowed. Leave blank for no minimum. |
| Maximum price | The highest price allowed. Leave blank for no maximum. |
| Discount type | How the discount is calculated (fixed, percent, or formula-based). |
| Discount value / formula | The discount amount, percentage, or formula depending on the type. |
The discount section reduces the calculated price before it reaches the cart.
| Discount Type | Description |
|---|---|
| Fixed amount | Subtract a fixed dollar amount from the total. |
| Percent | Subtract a percentage of the total. |
| Calculated (amount) | Use a formula to compute a dollar-amount discount. |
| Calculated (percent) | Use a formula to compute a percentage discount. |
Fixed fees are added after the total price formula is evaluated — you do not need to include them in your formula.
INPUT("WIDTH") * INPUT("HEIGHT") * TABLE("sqft_rates", OPT("MATERIAL")). Min: 10. The customer pays at least $10 per unit.VAR("AREA") * VAR("RATE") * INPUT("QTY"). Discount type: Percent, Value: 10. Every order gets 10% off.