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 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.
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.
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.
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.
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.
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 |
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.
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.
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.
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.
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.
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.
| 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.
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.
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.
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.
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.
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.
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.
| 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.
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.
Whatever you sell, however you price it · The last options app you'll shop for