How to charge per unit: number, range slider and dimension options
Per-unit pricing multiplies a price by what the customer enters, such as centimetres of engraving or the area of a custom print. This article covers the Number, Range slider and Dimension options.
Before you start
- Turn on add-on pricing under Settings > General. See How to turn on add-on pricing.
- Create the option in an option set. See How to add, edit, reorder and delete options.
Set a price per unit
- Open the option set and select the Number, Range slider or Dimension option.
- In the Pricing section, the Price choice list starts on No add-on price.
- Choose the per-unit choice for your option type:
- Number: Price per unit the customer enters
- Range slider: Price per unit the customer chooses
- Dimension: Price per square unit
- Enter the amount in Price per unit (for a Dimension option the field is called Price per square unit).
- For a Number option, enter a Unit such as "cm". Customers see it next to the price, like "$0.50 per cm". A Range slider and a Dimension option have their own unit setting in the option card.
- Set the bounds. A priced Number needs both a minimum and a maximum, and a Range slider always has both. A Dimension option uses Smallest side and Largest side.
- Click Save.
If you switch a Number option back to No add-on price, its price and unit are cleared.
Examples in the editor
Number

Range slider

Dimension

What each option multiplies
| Option | Charge |
|---|---|
| Number | Price per unit × the number the customer enters |
| Range slider | Price per unit × the value the customer picks |
| Dimension | Price per square unit × width × height |
A Dimension option can ask for two sides or three (Customers enter). The price always uses width and height only, so a third side (depth) does not change it.
The amount is exact, then rounded to the nearest cent, with halves rounding up. A number outside the minimum and maximum is not charged, and the widget asks the customer to enter a valid number.
Worked example
A print shop sells posters with a Dimension option.
- Price per square unit: $0.01 (unit: cm)
- The customer enters a width of 60 and a height of 40.
The area is 60 × 40 = 2,400 square cm, so the add-on is 2,400 × $0.01 = $24.00. On a $12.00 variant, the line costs $36.00 per item.
A Number option "Engraving length" at $0.50 per cm, with 12 entered, adds 12 × $0.50 = $6.00. A $0.15 price per unit with 2.5 entered gives 2.5 × $0.15 = $0.375, which rounds up to $0.38.
Limits
- The price per unit times the largest allowed value (for a Dimension option, the largest side times itself) cannot be more than 9,999,999.99. If it is, the editor asks you to lower the price or the maximum.
- Prices have at most two decimals.
- A price per unit is not available on a subscription line. See How add-on pricing works.
Related articles
- How add-on pricing works
- How add-on prices appear in the cart and at checkout
- Dimension option
- Range slider and quantity options
← How add-on pricing works How add-on prices appear in the cart and at checkout →