How to Create an Order Form With Calculated Totals

By SharaForms Team7 min readUpdated August 22, 2026

A modern order form lists products with prices, multiplies quantities automatically, applies surcharges through simple if-this-then-price rules, and shows customers a live total before they submit. You need no spreadsheet and no checkout page to start; the structure below works for apparel, food, print, and made-to-order goods alike.

Structure that converts browsers into buyers

  1. 1.Product selection: one dropdown or checkbox row per item with its base price stated beside it.
  2. 2.Quantity fields for each product, defaulting sensibly rather than forcing zeros.
  3. 3.Variant logic: size, color, or format options that appear only for the product being ordered.
  4. 4.Live total block: a computed line that updates as the customer types, not after submission.
  5. 5.Delivery section shown only when physical shipping applies.
  6. 6.Contact and payment details collected last, right before the buy moment.

Pricing patterns you can copy

Flat unit price{price} * {quantity}Mugs at $12 times quantity ordered
Size surchargeIF({size} = "XXL", base + fee, base) * qty$15 shirts, $17 for XXL
Tiered discountIF({qty} >= 24, rate * 0.9, rate) * {qty}Ten percent off two dozen units
Add-on extrasbase * qty + IF({gift}, wrap_fee, 0)Gift wrapping added per order

Conditional fields that prevent fulfillment errors

  • Require the shipping address block only when a physical product sits in the cart.
  • Show engraving or personalization inputs solely for items that support them.
  • Surface pickup-time slots exclusively for local delivery options.
  • Ask for artwork uploads only when custom printing was selected.

After submission: the fulfillment loop

  • Route instant notifications to whoever packs boxes so production starts immediately.
  • Export submissions to CSV sorted by product for batch picking and invoicing.
  • Generate a PDF receipt per order so customers hold a clean record of what they bought.

Templates to start from

Frequently asked questions

Can an order form calculate totals automatically?
Yes. Formula-driven fields multiply unit prices by quantities, apply surcharges through if-then rules, and render the result in a live total that updates while the customer types. SharaForms supports these calculations natively, so totals stay accurate without spreadsheets or manual arithmetic.
How do I accept payments through an order form?
Build the order with calculated totals first, then connect a payment integration such as Stripe so customers pay the computed amount on submission. Until then, the same form works as a quote-and-confirm flow: orders arrive with totals, and you invoice manually while volumes stay low.
How do I handle discounts without coupon codes?
Encode tiered pricing directly in the formula: apply a reduced rate when quantity crosses your threshold, or add a percentage-off rule for bulk rows. Visible quantity pricing often outperforms hidden coupons anyway, because buyers can see the reward for ordering more.
Do customers get a receipt after ordering?
They can. Generate a PDF document from each submission containing the ordered items, quantities, and final total, then send it alongside your confirmation email. Customers keep an unambiguous record of every purchase, and your team stops re-typing order details into invoice templates at month end.

Put this to work on a real form

Free plan, unlimited forms and submissions, all three presentation modes included.

Create a free form

Keep reading

Powerful forms for everyone.

Start free with unlimited forms and submissions. Upgrade when you need more control and customization.

Free forever
No per-response fees
Fair pricing for growing teams
Secure, reliable, and trusted by teams worldwide.
Trusted Teams
Trusted Teams
Trusted Teams
Trusted Teams
Trusted Teams
Product screenshot

Build your first form today.

Start free with unlimited forms and submissions. Upgrade when you need more control and customization.