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

Set a price per unit

  1. Open the option set and select the Number, Range slider or Dimension option.
  2. In the Pricing section, the Price choice list starts on No add-on price.
  3. Choose the per-unit choice for your option type:
  1. Enter the amount in Price per unit (for a Dimension option the field is called Price per square unit).
  2. 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.
  3. 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.
  4. 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

A Number option priced per unit, with Price per unit, Unit, Minimum and Maximum in the Pricing section

Range slider

A Range slider option with Price per unit the customer chooses selected and a price per unit entered

Dimension

A Dimension option with Price per square unit selected and the price entered

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.

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

Related articles

← How add-on pricing works How add-on prices appear in the cart and at checkout →