How to Set Up a Custom Curtain Calculator on Shopify

Sheer cream pencil-pleat curtains on a black rod in a bright window recess, with a yellow tape measure and a fabric swatch card on the wooden sill

To set up a custom curtain calculator on Shopify with Appify Custom Product Options, install the Custom Curtains template, check its options, check its Drop Range pricing table, then check the formula and publish. The shopper enters a width and a drop in cm or inches, then picks a heading, a gather, single or pair, and a side finish. The price is fabric, plus heading, plus sides, with a minimum price of 79.99.

Installing the template may be all you need. This guide explains every setting so you can change it with confidence. The prices below come from the Customizable Curtains demo. They are examples, so swap in your own.

Prefer to watch? Here is the whole setup as a video.

Short on time? See it in action in under a minute.

At a glance

Part Where it lives What it does
Width and drop Two Number Input options, with limits that change by unit The shopper enters sizes in cm or inches
Heading, gather, configuration, sides Dropdown and Image swatch options Each choice carries a price or a multiplier
Price per metre The Drop Range pricing table A taller curtain costs more per metre of fabric
Seven variables Variables Convert units, size the fabric, then price fabric, heading and sides
Final price Total price formula, per unit Adds the three costs together, then applies a minimum price of 79.99
Summary Price Summary Shows one line: Total

Step 1: Install the Custom Curtains template

Open Appify CPO, Calculators and click the Templates tab. Search "curtain". The Custom Curtains row is tagged Curtains. Click its title or the eye icon to open the preview. On the preview page, choose Install to my store and confirm. A new draft calculator appears in My calculators and opens in the editor. See calculator templates for the full flow.

The Templates tab searched for curtain, showing the Curtain Rods, Custom Curtains and Wall and Ceiling Curtain track templates tagged Curtains, with the Custom Curtains title and its eye icon ringed in red
The Templates tab. This guide covers Custom Curtains, ringed with its preview eye icon. Each install is a one-time copy, so your changes never touch the catalog.

The calculator is linked to a Shopify product. The demo product is called Customizable Curtains. Use any curtain product you like.

Step 2: Initial Price

In Options & Pricing, Initial Price, the Base price is set to Selected Product Variant. Here the total formula does not use the base, so the Shopify product price does not change the curtain price. The formula builds the whole price. The help text in the editor says the same: with a formula in place, Initial Price only counts where you use VAR("BASE_PRICE"). See Initial Price.

Initial Price section of the Custom Curtains editor with Base price set to Selected Product Variant
Options & Pricing opens on Initial Price. Base price is Selected Product Variant.

Step 3: The options

The template has fourteen options. Every one lives in Options & Pricing. To open an option, click the pencil icon on its row. The arrow at the top left of the open option takes you back to the list. Each open option has four tabs: Basic settings, Advanced settings, Visibility Rules and Value Rules. The settings below are explained in option basic settings.

The Options and Pricing list of the Custom Curtains editor showing My sizes are in, Window Width and Curtain Drop with their keys and Required tags
The options list. Each row shows the label, its key in brackets, and a Required tag where it applies. The icons on the right are eye, pencil (edit), copy, trash and reorder.

My sizes are in (the unit)

This is a Radio Button option with two manual choices, cm and inches. It is Required, its key is MY_SIZES_ARE_IN, and neither choice has a price. inches is ticked as the Default, so the calculator opens with inches picked. It does two jobs. It changes the allowed sizes, and it tells the formulas how to convert.

Basic settings of the My sizes are in option: type Radio Button, key MY_SIZES_ARE_IN, required, two manual choices inches (ticked as default) and cm with empty formulas
Open My sizes are in with its pencil icon. Basic settings: type, key, Required, and the two choices with inches ticked as the default.

Window Width and Curtain Drop

Both are Number Input options and both are Required. Window Width has a Minimum value of 20 and a Maximum value of 787, with a Step of 1 and 0 Decimal places. Those numbers are the inches limits. Curtain Drop uses 12 and 107 the same way. Neither field has a price. The width and drop feed the variables in Step 4.

Basic settings of the Window Width option: type Number Input, key WINDOW_WIDTH, required, minimum 20, maximum 787, step 1, decimal places 0, empty pricing formula
Window Width, Basic settings.
Basic settings of the Curtain Drop option: type Number Input, key CURTAIN_DROP, required, minimum 12, maximum 107, step 1, decimal places 0
Curtain Drop, Basic settings.

The limits change when the shopper picks cm. Open the option, then click the Visibility Rules tab. Window Width has two rules with the action Limit. One says: if My sizes are in equals cm, the minimum is 50 and the maximum is 2000. The other says: if it equals inches, the minimum is 20 and the maximum is 787. Curtain Drop has two rules in the same way (30 to 274 cm, 12 to 107 inches). The grey line under each field on the product page is its help text. You set that on the Advanced settings tab. See visibility rules for every action.

Visibility Rules tab of the Window Width option with two Limit rules: if My sizes are in equals cm, min 50 max 2000 step 1; if inches, min 20 max 787 step 1
Window Width, Visibility Rules tab: two Limit rules, one for cm and one for inches.

Heading

Heading is a Dropdown with five manual choices. It is Required. Each choice has a price per metre of fabric width in its Formula field, and Formula x Rate = Choice Price. In the demo:

Heading Formula
Slot Top 0
Slot Top & Bottom 5
Pencil Pleat Tape OPT("PENCIL_PLEAT_OPTIONS") (the tape size picks the price)
Wave 0
40mm Eyelet 0
Basic settings of the Heading option: type Dropdown, key HEADING, required, manual choices Slot Top 0, Slot Top and Bottom 5, Pencil Pleat Tape OPT of PENCIL_PLEAT_OPTIONS, Wave 0
Heading, Basic settings. Scroll down in the open option to see 40mm Eyelet.

Options that appear for one heading

Several more options only show for one heading. Each has a Show if rule on its Visibility Rules tab, with the condition Heading equals that choice.

Option Type Shows when Heading is Choices
Slot Top Image swatch Slot Top For rods or wire up to 19mm
Slot Top & Bottom Image swatch Slot Top & Bottom For rods or wire up to 19mm
Pencil Pleat Options Image swatch Pencil Pleat Tape 2in tape at 2.25, 3in tape at 2.95
Confirm Track Length and Wave Number Input and Image swatch Wave A number from 0 to 100, then 60mm Wave or 80mm Wave
Eyelet Colours Image swatch (Required) 40mm Eyelet Antique Gold, Brass, Gun Metal, Nickel

Pencil Pleat Options is the one that touches the price. Its two formulas, 2.25 and 2.95, feed the Pencil Pleat Tape choice above. The other options in this group have no formula, so they change what the order says, not what it costs. That includes Wave: choosing it adds no price, so it is a heading style choice.

Basic settings of the Pencil Pleat Options option: type Image swatch, manual image source, choices 2in Pencil Pleat Tape with formula 2.25 and 3in Pencil Pleat Tape with formula 2.95, rate 1
Pencil Pleat Options, Basic settings. Each choice has its own image swatch and price.
Visibility Rules tab of the Pencil Pleat Options option: logic all conditions, action Show if, condition Heading equals Pencil Pleat Tape
Pencil Pleat Options, Visibility Rules tab: Show if Heading equals Pencil Pleat Tape.
Basic settings of the Confirm Track Length option: type Number Input, key CONFIRM_TRACK_LENGTH, minimum 0, maximum 100, empty pricing formula and empty rate
Confirm Track Length, Basic settings. Shoppers fill this in, but the Formula and Rate fields are empty, so it adds nothing to the price.
Basic settings of the Wave option: type Image swatch, choices 60mm Wave and 80mm Wave with image swatches and empty formulas
Wave, Basic settings. Both choices have an empty Formula, so neither changes the price.
Basic settings of the Eyelet Colours option: type Image swatch, required, choices Antique Gold, Brass, Gun Metal and Nickel with image swatches and empty formulas
Eyelet Colours, Basic settings. Each colour has a swatch image and no formula.

Gather

Gather is an Image swatch option with five choices. How much fabric the curtain needs depends on it. The formulas are multipliers, not money: FLAT 1, 1.5x 1.5, 2x 2, 2.5x (Recommended) 2.5, and 3x 3. The "(Recommended)" tag is only part of the label.

Basic settings of the Gather option: type Image swatch, choices FLAT 1, 1.5x 1.5, 2x 2, 2.5x Recommended 2.5, each with rate 1 and an image swatch
Gather, Basic settings. The numbers are multipliers that the fabric variable reads.

Configuration

Configuration is an Image swatch with two choices: Single (formula 1) and Pair (formula 2). It multiplies the side finish cost, so a pair of panels pays for two sets of sides. Both choices show a small picture on the product page.

Basic settings of the Configuration option: type Image swatch, choices Single with formula 1 and Pair with formula 2, each with a swatch image
Configuration, Basic settings.

Sides

Sides is a Required Dropdown. Each finish has a flat price per panel: Hemmed Sides 3.95, Unfinished Sides (Fabric will fray) 0, False Hem 2.95 and Overlocked 1.95.

Basic settings of the Sides option: type Dropdown, required, Hemmed Sides 3.95, Unfinished Sides 0, False Hem 2.95, Overlocked 1.95
Sides, Basic settings.

Window Name

The last option is a Text option with no price. It gives the shopper a place to label the window, such as "Living room".

Step 4: The variables

Variables sit below the options. Each one has a Key and a Formula, and later formulas read it with VAR("KEY"). The template has seven. See pricing variables.

Variable What it does
WIDTH_METERS Turns the width into metres. Inches are multiplied by 0.0254. Otherwise the width is divided by 100.
DROP_METERS The same conversion for the drop.
CALCULATED_TOTAL_FABRIC_WIDTH Rounds the width in metres up to the next 0.1, then multiplies by the Gather choice. This is the metres of fabric needed.
PRICE_PER_METRE Looks up the Drop Range table (Step 5) with the drop in cm.
CALCULATED_TOTAL_FABRIC_COST Price per metre times metres of fabric.
CALCULATED_TOTAL_HEADING_COST Metres of fabric times the Heading choice price.
CALCULATED_TOTAL_SIDES_COST The Sides price times the Configuration choice.

The unit variables use HAS("MY_SIZES_ARE_IN","inches") to check which unit is picked. INPUT reads what the shopper typed and OPT reads a choice's formula result. The functions are listed in the formula reference.

Variables card of the Custom Curtains editor listing WIDTH_METERS, DROP_METERS, CALCULATED_TOTAL_FABRIC_WIDTH, CALCULATED_TOTAL_FABRIC_COST, CALCULATED_TOTAL_HEADING_COST, PRICE_PER_METRE and CALCULATED_TOTAL_SIDES_COST with their formulas
The Variables card. Long keys are cut off on screen.

Step 5: The Drop Range pricing table

The Pricing Tables card sits right below Variables in Options & Pricing. The template has one table, Drop Range, with the lookup mode nearestLower. That mode finds the closest row key that is at or below the input. The keys are drops in cm, and the value is the fabric price per metre.

To look at the table, click the pencil icon on the Drop Range row in the Pricing Tables card. The grid opens below the card, with the mode shown as Nearest lower. The blue column holds the drops, and the green Price column holds the price per metre. Click Close when you are done.

Pricing Tables section listing one table named Drop Range, tagged Local, with lookup mode nearestLower and its pencil icon ringed in red
The Pricing Tables card. The pencil icon on the Drop Range row, ringed, opens the table.
The Drop Range pricing table opened in the editor: name Drop Range, mode Nearest lower, one Price column with row keys 1, 150 and 250 giving 2.98, 5.6 and 9.5
The Drop Range table, opened from the pencil icon. Row 1 is 2.98, row 150 is 5.6 and row 250 is 9.5.
Drop starts at (cm) Fabric price per metre
1 2.98
150 5.60
250 9.50

So a drop of 213 cm falls in the 150 band and costs 5.60 a metre. The table is tagged Local, which means it belongs to this calculator only. Read more in pricing tables and using tables in formulas.

Step 6: The total price formula

Go to Options & Pricing, Total Price Formula. Price granularity is Per unit (round to 0.01): each curtain is rounded to the cent and then multiplied by the quantity. In Unit price calculation, the Primary formula adds the three costs:

VAR("CALCULATED_TOTAL_FABRIC_COST")+VAR("CALCULATED_TOTAL_HEADING_COST")+VAR("CALCULATED_TOTAL_SIDES_COST")

Show Min / Max settings opens an optional minimum and maximum price. Here the Minimum price is 79.99 and the maximum is empty. The app works out the price from the formula first, then compares it with the minimum. If the result is lower than 79.99, the shopper sees 79.99. If it is higher, nothing changes. The Total discount is a fixed amount of 0. See total price formula.

Total price formula card: price granularity Per unit round to 0.01, primary formula adding the fabric, heading and sides cost variables, Min / Max settings open with a minimum price of 79.99 and no maximum, total discount fixed amount 0
Total Price Formula with Min / Max settings open: granularity, Primary formula, a Minimum price of 79.99 and Total discount.

Step 7: Quantity Discount Rules

Right below the formula is Quantity Discount Rules. In this template it is Disabled, with Mode 1D and 0 tiers. Click Configure when you want a discount for ordering several curtains. See quantity discount rules.

Quantity Discount Rules card showing Mode 1D, Aggregation Per line, Tiers 0 and a Disabled tag
Quantity Discount Rules, switched off in the template.

Step 8: Layout and Price Summary

Click Optional features in the step bar. Layout comes first. The calculator is a Single-Step Calculator, so every option sits on one page. See calculator layout.

Layout section with Calculator type set to Single-Step Calculator
Optional features, Layout.

Price Summary follows. Only Total is ticked, so the shopper sees one line. Tick Base price, Options or Unit Price to show more. See price summary display.

Price Summary section with the Total field ticked and Base price, Options, Quantity, Subtotal, Unit Price and other fields unticked
Optional features, Price Summary: only Total is ticked.

Personalization is switched off in this template, so there is nothing to set on that step.

Step 9: Link it to your product and publish

Click Placement & Styling. Where does this calculator appear? is set to Product pages (recommended). Under Associated products, click Select products and pick your curtain product. The demo has one product linked. Then click Publish. The help text in the editor says Publish, not Save, makes the storefront update. See publishing a calculator.

Placement and Styling step: Product pages recommended, Associated products with one product, the Select products button and the Publish button ringed in red
Placement & Styling with Select products and Publish ringed.

What the shopper sees

This is the Customizable Curtains demo before anything is chosen. The unit radio opens on inches, and the two number fields, the heading dropdown, the gather swatches, single or pair, the sides dropdown and the window name all show. The total starts at 79.99, which is the minimum price.

The Customizable Curtains product page calculator before any choice, showing the unit radio set to inches, width and drop fields, heading dropdown, gather swatches, configuration and sides
The demo calculator, untouched.
The price summary reading Total 79.99
The summary before any choice.

Now a worked example. The shopper keeps inches and enters a width of 150 and a drop of 84. They pick Pencil Pleat Tape with the 2in tape, 2.5x gather, a Pair, Hemmed Sides, and name it "Living room". The Pencil Pleat Options swatches appeared the moment Pencil Pleat Tape was picked. The total reads 84.44.

The curtain calculator filled in: inches, width 150, drop 84, Pencil Pleat Tape with 2in tape, gather 2.5x, Pair, Hemmed Sides, window name Living room
The same calculator, filled in.
The price summary reading Total 84.44
The summary for that selection.
Step Working Result
Width in metres 150 in x 0.0254 = 3.81, rounded up to the next 0.1 3.9 m
Fabric needed 3.9 m x 2.5 gather 9.75 m
Drop in cm 84 in = 213.36 cm, so the 150 band 5.60 per metre
Fabric cost 9.75 x 5.60 54.60
Heading cost 9.75 x 2.25 (2in tape) 21.94
Sides cost 3.95 (Hemmed) x 2 (Pair) 7.90
Total 54.60 + 21.94 + 7.90 84.44

A smaller curtain shows the minimum price at work. With a width of 60 and a drop of 84 and the same choices, the parts add up to 39.30. The calculator shows 79.99 instead.

The price summary reading Total 79.99 for a width of 60 and a drop of 84
Width 60, drop 84: the parts add up to 39.30, so the minimum price of 79.99 applies.

In the cart, Edit options reopens the calculator with the choices filled in (the demo has Allow edit from cart on). See editing options from the cart.

When to do it differently

  • Different fabric prices. Edit the three rows of the Drop Range table, or add rows for more drop bands.
  • A new heading. Add a choice to Heading with its price per metre. If it needs its own swatches, add an option and give it a Show if rule.
  • A different minimum. Change or clear the Minimum price under Show Min / Max settings in Total Price Formula.
  • Volume discounts. Switch on Quantity Discount Rules.
  • A one-off charge. Add a fee under Fixed Fees, below the total formula.
  • Another change. Ask Chat with AI, the panel beside the editor, to make it for you.

Want the finished demo explained as an overview? Read inside a made-to-measure curtain calculator. For selling curtains in general, see how to sell fabric, rugs and curtains by size. Related setups: curtain rods and wall and ceiling curtain tracks. More setup guides are in the tutorials hub.

FAQ

Do I have to build this calculator by hand?

No. Install the template and it arrives as a draft with every option, table, variable and formula in place. Each install is a one-time copy, so your changes are yours.

Can shoppers enter sizes in cm or inches?

Yes. The My sizes are in radio sets the unit. The allowed width and drop change with it, and the variables convert both to metres.

How does the drop change the price?

The Drop Range table gives a price per metre of fabric for each drop band. A taller curtain falls in a higher band.

Why do the heading choices show different swatches?

Each set of swatches has a Show if rule on the Heading choice. Only the matching set appears.

Is there a minimum price?

In this template, yes. The Minimum price is 79.99, set under Show Min / Max settings in Total Price Formula. A curtain that prices lower is shown at 79.99. Clear the field if you do not want a floor.

Does a pair cost twice as much as a single?

In this template, Pair doubles the side finish cost. The fabric and heading cost follow the window width, whatever the configuration.

Every curtain width, drop and heading, priced as the shopper picks.

Install Free on Shopify

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