Inside a Shopify Roll Calculator: Width, Length and Volume Discounts

Bright illustration of a roll of translucent film on a table beside three roll width buttons and a length field with plus and minus buttons, next to a product card with a price tag

This roll calculator asks for two things: a roll width and a length. The price follows both, and a volume discount shows up as the order grows.

It's the Privacy Film by the Roll calculator on our Shopify demo store, built with Appify Custom Product Options. The product sells film by the roll in three widths, and the shopper chooses how much of it to buy.

What it does

The shopper taps one of three width buttons, then sets a length with a number field. The price summary below shows the subtotal, any quantity discount, the total and the price per unit.

Roll calculator with three width buttons, 36 inch, 48 inch and 60 inch, and a Length field set to 1 with minus and plus buttons
The whole calculator: Roll Width and Length.

With 36" Wide and a length of 1, the summary reads 21.59. Prices here are in dollars.

Why this calculator is hard to build, and how Appify Custom Product Options handles it

  • Each roll width has its own price. The three widths are priced at 21.59, 28.78 and 35.96, and 36" Wide is selected when the page loads. The summary shows a price before the shopper touches anything.
  • The length has to be typed or stepped, not picked from a short list. Length is a Quantity option shown as a number field with plus and minus buttons. It starts at 1 and can't go below it.
  • The width has to change the rate for every unit of length. The length's price is a formula: the rate for the chosen width times the length. Pick a wider roll and every unit of length costs more.
  • Bigger orders need a discount ladder. Five quantity discount rules take 10% off at 10, rising to 30% off at 50.
  • The shopper should see the discount before adding to cart. The price summary shows the subtotal, the discount, the total and the price per unit.
  • The order has to keep the roll the shopper chose. The width and length travel with the line to the cart and the order.

One price, worked out

Here is a 48" Wide roll at a length of 12, with prices in dollars. Every number comes from the calculator's price summary.

  • Subtotal: 345.36 before the discount.
  • Quantity Discount: 10%.
  • Total: 310.82.
  • Price / unit: 28.78 struck through, then 25.90.
Roll calculator with the 48 inch Wide button selected and a Length of 12
48" Wide, length 12.
Price summary showing a subtotal of 345.36 dollars, a quantity discount of 10 percent, a total of 310.82 dollars and a price per unit of 28.78 struck through then 25.90
The summary shows the discount, then the new unit price.

For comparison, the default view (36" Wide, length 1) shows 21.59 as the subtotal and the total, a 0% discount and 21.59 per unit.

The design decisions

Width is three buttons, not a typed number

Roll widths come in set sizes, so the shopper picks one: 36" Wide, 48" Wide or 60" Wide. Each width has its own price, and a small roll picture sits beside each row so the two fields read at a glance.

Length is a number field that starts at 1

The Quantity option gives a field the shopper can type in or step with plus and minus. Setting the minimum to 1 means the shopper can't add a roll with no length.

The rate follows the width

The length formula reads a rate that depends on the chosen width, then multiplies it by the length. A pricing table can be read inside a formula, so a rate sheet can sit behind a field like this one.

The discount ladder is percent off

Five breaks: 10% at 10, 15% at 20, 20% at 30, 25% at 40 and 30% at 50. They run in the simple one-dimension mode. The full set of options is in the guide to tiered and volume pricing for custom products.

In the demo, a length of 12 shows the 10% break in the summary.

The width sets the rate and the quantity break comes off the top. Both show up in one summary, so the shopper can follow the price from 345.36 to 310.82.

The summary shows four lines

Subtotal, Quantity Discount, Total and Price / unit. Once a discount applies, the price per unit shows the old figure struck through and the new one beside it. A shopper who buys a longer roll can see what each unit now costs.

What arrives with the order

The roll width and the length go on the cart line and the order line as cart properties. Your team sees the same choices on the app's Orders page.

When a store turns on Edit options for a calculator, a shopper who picked the wrong width can change it in the cart and update the line. For a repeat order, Appify Reorder brings the configuration back, where Shopify's Buy again button only adds the variant.

Make it yours

Get this calculator

Ask Chat with AI for the options, the rates and the discounts in your own words. A starting prompt:

"Build a roll calculator with three width buttons: 36" Wide, 48" Wide and 60" Wide."

"Add a Length field with plus and minus buttons that starts at 1."

"Price the length as a rate for the chosen roll width, multiplied by the length."

"Add percent-off quantity breaks: 10% at 10, 15% at 20, 20% at 30, 25% at 40 and 30% at 50."

Add your own rates, then check one roll against a price you've worked out by hand before you publish.

FAQ

Can I sell a product by the roll in different widths on Shopify?

Yes. Add the widths as buttons and a length as a Quantity option. The price follows the width and the length the shopper picks.

How do volume discounts work on a roll product?

You set percent-off breaks by quantity. This demo takes 10% off at 10 and rises to 30% off at 50.

Can a rate sheet sit behind a roll product?

Yes. A formula can read a pricing table, so the rates live in one sheet you can update.

Does the shopper see the discount before adding to cart?

Yes. The price summary shows the subtotal, the quantity discount, the total and the price per unit.

Can customers change their roll width after adding to cart?

Yes, when Edit options is turned on for the calculator. The shopper reopens their choices from the cart and updates the line.

Sell it by the roll. Price it by the width.

Install Free on Shopify

Whatever you sell, however you price it · The last options app you'll shop for