To set up a wallpaper calculator that repeats the pattern both ways on Shopify, install the Wallpaper Repeat X-Y template in Appify Custom Product Options. Give each color variant of your product its price and its pattern picture in Shopify, set the width of one tile of your pattern, then link your product and publish.
This guide explains what each part of the calculator is for and how the price is worked out, so you can change it for your store without breaking it.
Prefer to watch? Here is the whole setup as a video.
Short on time? See it in action in under a minute.
What it does
The shopper picks a color from the swatches, then types the width and the height of their wall in inches. The calculator shows the area in square feet and the total under the calculator. They can also open the Product Designer to see the pattern repeated across and down a wall of that size, and drag it to choose where it starts.
The calculator opens on Green, with both size inputs empty, so the Area starts at 0.00 ft² and the Total at 0.00.
How the price is built
The price is the wall's area in square feet, times the price of the color picked. Each color is a variant of your Shopify product, and that variant's price is your rate per square foot.
The sizes are typed in inches. Width times height gives square inches, and dividing by 144 gives square feet.
The running example is a wall 144 inches wide and 96 inches high, in Green:
- Area in square inches: 144 times 96 is 13,824.
- Area in square feet: 13,824 divided by 144 is 96.00.
- Your rate per square foot: the Green variant is priced at 29.00.
- Price of the wallpaper: 96.00 times 29.00 is 2,784.00.
Compare this with how you price. If you charge for the area of the wall at a rate per color, this template fits. If you price another way, see If you price differently near the end.
How it fits together
Each part feeds the next, in the same order as the steps below:
- The color picks a variant of your Shopify product. The variant's price is the rate, and its picture is the pattern (Step 2).
- The size inputs hold the width and the height of the wall, in inches (Step 3).
- One variable turns the two sizes into the area in square feet (Step 4).
- The total price formula multiplies the area by the rate (Step 5).
- The price summary shows the area and the total (Step 6).
- Personalization is set to show the color picked on the product photo, and saves a picture of it with the order when the Designer is not used (Step 7).
- The Designer draws a wall of the size typed and repeats the variant's picture across and down it (Step 8).
- The order carries the color, the size and the saved design (Step 9).
What you'll change for your store
| What | Where | Step |
|---|---|---|
| Your colors, each with its rate per square foot and its pattern picture | The variants of your product, in Shopify | Step 2 |
| The width of one tile of your pattern, if it is not 48 inches | Print width, in the Designer | Step 8 |
| The picture shown when a variant has none | Fallback image, in the Designer | Step 8 |
| Your product | Placement & Styling | Step 10 |
Everything else works as it is. Each step ends with the changes you might want and how to check each one in the live preview on the right of the editor. See live preview.
Step 1: Install the template
In Appify Custom Product Options, open Calculators in the left menu and click the Templates tab. Search for "X-Y" and click the Wallpaper Repeat X-Y title.
The preview page shows the working calculator. Click Install to my store and confirm. A new draft calculator opens in the editor.
The install is your own copy. Nothing shows on your store until you publish it in the last step. See calculator templates.
Step 2: The color swatches and your Shopify variants
The shopper picks the color of their wallpaper from the swatches at the top of the calculator. Each color is a variant of your Shopify product: one version of the product with its own price and picture. The variant does two jobs here. Its price is your rate per square foot for that color. Its picture is the pattern, shown on the swatch, on the product photo (Step 7) and on the Designer's wall (Step 8).
Your colors in Shopify
Your product needs a Shopify option for the colors, with one variant per color. On the demo product the option is called Color, with three variants:
| Variant | Price (the rate per square foot) | The running example's wall costs |
|---|---|---|
| Green | 29.00 | 2,784.00 |
| Red | 28.00 | 2,688.00 |
| White | 27.00 | 2,592.00 |
In your Shopify admin, open Products, then your wallpaper product, then each variant. Type your rate per square foot in its Price. The picture at the top of the variant is its pattern.
The Color option in the calculator
The swatches come from your product's color option, so they always match your variants. In Options & Pricing, click the pencil on the Color row. The settings are on Basic settings:
- Image source: Shopify product option. This is what builds the swatches. Their choices come from one option of the linked product, and each swatch shows that variant's picture.
- Shopify option: Color. Which option of your product the swatches come from. The line under it reads "Values come from this option on the linked product."
- Sync option selection to Shopify variant picker: ticked. When the shopper clicks a swatch, the app also selects that color's variant. So the variant price the formula uses, and the variant added to the cart, follow the swatch. On the demo each color gives its own total, the page address changes to that variant, and the cart line names the color. The product photo also changes with the swatch (Step 7).
The Color row only says "Synced from Shopify product variants": its choices are not typed in the editor, and the option has no Formula and no amount of its own. The color counts in the price only through the variant's price, which the total price formula multiplies by the area (Step 5). That price, 29.00 for Green, is a rate per square foot, not the price of the wallpaper. See sync options with Shopify variants.
Adding a color
Add a variant to your product's color option in Shopify, with its price and its picture. The calculator shows it as a new swatch by itself, Personalization uses its picture on the product photo, and the Designer uses it as the pattern. Nothing changes in the calculator.
If your product's color option has another name (Pattern, for example), pick that name under Shopify option once your product is linked (Step 10).
For example, a Blue variant priced at 30.00 makes the running example's wall cost 96.00 times 30.00, which is 2,880.00. To check it, once your product is linked (Step 10), pick the new color in the live preview and type 144 and 96. The Area should read 96.00 ft² and the Total 2,880.00.
Display
The option's Label, Color, shows above the swatches, because Hide option label on calculator is unticked. You can rename it; the name has no effect on the price. Show option value labels, on Advanced settings, is Always, so the variant's name (Green, Red, White) shows under each swatch. Swatch Shape is Circle, so each swatch is a round picture of its variant's pattern, and the one picked has a black circle around it.
Step 3: The size inputs for the wall
This is where the shopper types the width and the height of the wall, in inches. These two numbers are the only measurements the calculator has. The area, and so the price, is worked out from them (Step 4). The same two numbers size the wall in the Designer (Step 8).
The option is a Dimensions option: one option that holds several numbers, one per input. In Options & Pricing, click the pencil on the Dimensions row. The inputs are under Dimension Configuration on Basic settings, one row each:
-
Dimension 1 label is Width, the first input. Formulas read it as
dim1(Step 4). -
Dimension 2 label is Height, the second input. Formulas read it as
dim2(Step 4). - Unit is in on both rows. It is only the word shown inside the input. It converts nothing: the formula in Step 4 is what treats the numbers as inches. It is also printed in the cart line ("Width: 144 in").
- Minimum is 1 on both rows: the smallest width or height the shopper can order. On the demo a typed 0 changed to 1.
- Decimals is 0 on both rows, so only whole inches are taken. On the demo a typed 10.5 changed to 11, and the price followed the changed number.
- Initial value, Maximum and Step are empty, so the inputs open empty and have no upper limit.
- Pricing: Formula and Rate are both empty. The option has no price of its own, and the size counts only through the variable (Step 4).
What the shopper types in Width and Height is the wall's size in inches, after the input has rounded it to a whole number. It goes to the variable AREA_FT2 (Step 4) and sets the width and the height of the Designer's wall (Step 8). See option basic settings.
What you might change
Let the shopper type a fraction of an inch. Set Decimals to 1 on both rows, or to 2 for quarter inches like 13.25. To check it, pick Green in the live preview and type 13.5 and 96. The Width should stay 13.5, the Area should read 9.00 ft² and the Total 261.00. That is 13.5 times 96, which is 1,296 square inches, divided by 144, which is 9.00, times 29.00.
Set a smallest or largest wall. Type the smallest size in inches in Minimum and, if you have one, the largest in Maximum, on each row. To check it, look under the Width and Height labels in the live preview. With a Minimum of 12, they should read "(min: 12)" in place of "(min: 1)".
Display
The Label, Dimensions, shows above the two inputs, because Hide option label on calculator is unticked. Hide dimension labels on calculator is unticked too, so Width and Height show above their inputs, each with "(min: 1)" under it. That text comes from Minimum. Dimension width (%), on Advanced settings, is 50, so the two inputs sit side by side, each half the width of the calculator. The Unit, in, shows inside each input on the right.
The round question mark beside the word Dimensions is the Tooltip, set on Advanced settings. Its text is the template's advice to the shopper, so replace it with your own.
Step 4: The variable that turns the size into square feet
A variable is a number the calculator works out with a formula, so other parts can use it by name. This template has one: the area of the wall in square feet. In Options & Pricing, click Variables in the links at the top. There is one row: its key, AREA_FT2, which is the name formulas use for it, and its formula. See pricing variables.
AREA_FT2: the area in square feet
In plain words. This is the area the shopper pays for. The width in inches times the height in inches gives the area in square inches. A square foot is 12 by 12 inches, which is 144 square inches, so dividing by 144 gives square feet.
With the running example. 144 times 96 is 13,824 square inches. 13,824 divided by 144 is 96.00 square feet.
The formula. AREA_FT2 is:
( INPUT("DIMENSIONS_IN", "dim1") * INPUT("DIMENSIONS_IN", "dim2") ) / 144
Read it piece by piece:
-
INPUT("DIMENSIONS_IN", "dim1")takes one input of a Dimensions option as the shopper typed it. Here it is the first input, the Width. DIMENSIONS_IN is the option's key, the name formulas use for it. -
INPUT("DIMENSIONS_IN", "dim2")is the second input, the Height. - The
*means times: width times height is the area in square inches. - The
/ 144divides by the number of square inches in a square foot. It is a conversion number, not a price.
Two parts read AREA_FT2: the total price formula (Step 5) and the Area line of the price summary (Step 6). The Designer does not read it: its wall takes the two inputs directly (Step 8).
What you might change. The 144 is fixed. It turns square inches into square feet, so it is right as long as the inputs take inches and your rate is per square foot. Your rates are not in this formula: they are each variant's Price in Shopify (Step 2).
Step 5: The total price formula
This is where everything comes together: the area in square feet times your rate per square foot gives the price of the wallpaper. In Options & Pricing, click Total Price Formula in the links at the top. The formula is in the box under Unit price calculation:
VAR("AREA_FT2")*VAR("SHOPIFY.PRICE")
-
VAR("AREA_FT2")reads a variable by its key. This one is the area in square feet (Step 4). -
VAR("SHOPIFY.PRICE")is the price of the Shopify variant picked, which is the color's rate (Step 2). - The
*means times.
In the running example, 96.00 times 29.00 gives 2,784.00.
This formula is the whole price. Nothing is added on top of it. The sizes count through AREA_FT2, and the color through the variant price. The price of your Shopify product is used as a rate here, not added to the price.
What you might change
Your rates do not change here. They are each variant's Price in Shopify (Step 2).
You can add a minimum price. The smallest wall the shopper can order is 1 by 1 inch. That is 0.01 ft², and it costs 0.20 at the demo's Green rate. If that is less than an order costs you to make, set a minimum. Click Show Min / Max settings under the formula, and type your minimum as a plain number in Minimum price (formula, optional). It is for the whole line, not for each square foot. To check it, with a minimum of 25, type 1 and 1 in the live preview. The Total should read 25.00, not 0.20. See total price formula.
Step 6: The price summary
Under the calculator, the price summary shows the shopper the area they are paying for, above the total. In the running example it reads Area 96.00 ft² and Total 2,784.00.
Click Optional features, then Price Summary in the links at the top:
- Show fields: Options and Total are ticked, so the summary shows the item below, then the total.
- Options to show: one item, labelled Area, marked Variable (AREA_FT2). It shows the variable from Step 4.
- Format value as price is unticked, so the area shows as a number, not as money.
- The text
{result} ft²puts ft² after the number.{result}stands for the number. Decimals 2 gives 96.00. See price summary display.
Step 7: Personalization, the color on the product photo
Personalization is set up to show the color picked on the product photo. Its one layer swaps the product image to the picture of that color's variant. On the demo, the product photo changes to the new pattern each time the shopper clicks a swatch.
When the shopper adds to the cart without opening the Designer, a picture of that preview is also saved with the order (the Personalization Preview line, Step 9). It does not change the price.
Click Personalization in the step bar at the top. From the top of the step:
- The checkbox at the right of the Personalization card is ticked. Without it, none of the settings below are used.
- Canvas background: Background source is Main product image (variant-aware). The starting picture is your product's main image. The layer below swaps it for the color picked.
- Where to show the live preview on the product page is All product images. The line under it reads "Personalization overlay appears on every image in the main product gallery."
- Theme integration: Mode is Auto (recommended). The app tries to put the preview on your theme's product gallery. If it finds no place for it, it shows the preview in the calculator block. Custom theme selectors (optional) is empty; it is only needed when the app cannot find your theme's product image container.
Under Layers, the Layer stack holds one layer, named Colour, marked image. Click it to open Layer settings on the right. The layer is linked to the Color option, and the shopper cannot move, resize or rotate it:
- Layer name is Colour. It is the layer's name in the editor, and the shopper never sees it.
- Visible in preview is ticked, so the layer is used.
- Image: Behavior when a value is selected is Swap the canvas background image. When the shopper picks another color, the whole picture is replaced. The note under it reads "Position, size, and shape settings don't apply".
- Image fit is Cover (fill the area, crop overflow). The swapped picture fills the area, and any part that does not fit is cut off.
- Preview images per value is a note, not a field: images come from the Shopify product variants automatically, so there is nothing to map.
Because the swatches come from your Shopify variants, each color uses its variant's picture by itself. A new color needs nothing here. See managing layers.
The photo swap only shows on the storefront, not in the editor. To see what to expect, open the Wallpaper Repeat X-Y demo. It opens on Green with the green pattern as the product photo. Click the Red swatch: the product photo changes to the red pattern, and the Total for 144 by 96 changes to 2,688.00. Your own product page should do the same with your colors once it is live.
Step 8: The Designer
The last option on the calculator, the Preview & Show Price button, opens the Product Designer. It shows the shopper their color's pattern on a wall of the size they typed, repeated across and down, and lets them drag the pattern to choose where it starts. It does not change the price.
What the shopper sees
The Designer opens over the page with the pattern repeated across and down the wall, three tiles wide. A faded copy of the pattern carries on past the wall's edges. The wall is labelled 12 ft 0 in along the top and 8 ft 0 in down the side. The Designer shows feet and inches, though the size was typed as 144 and 96 inches. Two green lines run down the wall and split it into three equal parts, one every 48 inches. A figure labelled 5' 4" stands beside the wall for scale.
On the right, the shopper still sees Color (showing Green), the Width and Height inputs (144 and 96), the total, a small note button and a green Save Design button. Dragging on the wall moves the pattern both across and down. The green lines stay where they are, and the total stays 2,784.00. After Save Design the Designer closed, and the Preview & Show Price button on the product page showed a small picture of the design beside its words.
The settings, in the order you see them
First, the button itself. In Options & Pricing, click the pencil on the Preview & Show Price row. Its Label is the words on the button. Linked option is None - don't link an option, so the button is not tied to a file upload. The editor's note reads "None - don't link an option: opens Designer with an empty artboard." The Designer then fills the wall from its own settings, below.
Now click Designer in the step bar at the top. The step opens full screen. The settings are in the Product panel on the right, from top to bottom. A link between a calculator value and the Designer is called a binding. See the Designer settings.
Right-panel options. Color and Dimensions. These are the options the shopper sees beside the wall, so they can change the color or the size without leaving the Designer.
Artboard size for Print area: the size of the wall. The print area is the wall as the Designer draws it.
- Size comes from: From an option. The wall takes its size from the calculator, through the Artboard size card below.
- Width when the option is empty and Height when the option is empty: 96 in each. The size the wall uses until the shopper types one. On the demo, the Designer opened with no size typed shows a wall of 8 ft 0 in by 8 ft 0 in, with one green line down the middle.
- The Artboard size card. Open it with its arrow. Size from is Width & height sources, so the width and the height each come from their own source. Width source is Dimensions, with the Width dimension input Width: the wall is as wide as the number in the Width input. Height source is Dimensions, with the Height dimension input Height: the wall is as high as the number in the Height input.
In the running example, 144 by 96 inches makes a wall of 12 ft 0 in by 8 ft 0 in. See binding calculator options to canvas properties.
Canvas bindings, the Product image card: the pattern. Open it with its arrow. From the top:
- Image sources: Dynamic (product / variant), with Source 1: Variant featured image. The pattern comes from the Shopify product, not from a list in the calculator: it is the picture of the color variant picked. This is why a new color needs nothing here.
- Fallback image. Shown when a variant has no picture. The template's is a grey sample texture, so replace it with one of your own.
Further down the same card:
- Pattern sources: Static. The way the pattern repeats is set once, in the next field, for every product.
- Repeat (tile pattern): Repeat both (repeat-xy). The pattern repeats across the wall and down it, as a grid of tiles. This is the setting the template is named for.
- Default placement: Free (customer can pan). The shopper can drag the pattern to choose where it starts.
- Print width sources: Static. One print width for every product.
- Print unit: inches (in) and Print width: 48. The real width of one tile of the pattern, here 48 inches. The Designer draws a green line every 48 inches, so two lines on the 144 inch wall. The height of a tile is not typed: the Designer works it out from the shape of the picture, so the pattern is not stretched.
- Repeat pattern at panel width: ticked. Each tile is drawn exactly as wide as the print width, so the pattern on the wall is to scale. On the demo the 144 inch wall is three tiles wide.
Under the gear at the top left of the Designer step there are more settings. They are not in the Product panel. On the General tab, under Customer experience, Customer access is Limited editing: the wall follows the calculator, and the shopper gets only the tools you allow. Every box under Customer capabilities is unticked, so the shopper cannot add text, pictures or shapes. Layout mode is Drag image: the wall stays fixed and the pattern moves inside it. With Free placement, this is what lets the shopper drag the pattern. Image drag axis is Automatic (based on fit). The editor's line reads "Automatic pans only where the image extends past the artboard." On the demo the pattern moves both ways.
On the Buttons tab, Save button label is Save Design, the words on the save button. Show comment button is ticked, with the Comment button label Add note, so a note button sits beside the save button for the shopper. See wallpaper and product image bindings.
What you might change
These Designer settings only show on the storefront, in the Designer opened from your product page, not in the editor's live preview. Open the Wallpaper Repeat X-Y demo to see what to expect, and compare it with your own product page once it is live.
- The width of one tile of your pattern. Set Print width to the real printed width of one copy of your pattern picture. Set Print unit to the unit you measured it in. To compare, open the demo, type 144 and 96 and click Preview & Show Price: the wall is three tiles of 48 inches. With a Print width of 24 inches, the same wall on your product page should be six tiles across, with five green lines (144 divided by 24 is 6).
- The picture shown when a variant has none: in Fallback image, click Replace and pick a picture of your own.
- The empty wall. To show another size before the shopper types one, change Width when the option is empty and Height when the option is empty. These are the two 96 in fields in the Product panel under Artboard size for Print area, in inches. The Fallback width and Fallback height on the gear's Artboard tab are a different pair: those are used only when a print area has no size of its own. To compare, open the demo and click Preview & Show Price before typing a size: the wall is 8 ft 0 in by 8 ft 0 in. With 120 and 96, your product page should show a wall labelled 10 ft 0 in by 8 ft 0 in.
- Keeping the pattern where it is: set Default placement to Locked (no pan) and the shopper can no longer drag it. To compare: on the demo, dragging on the wall moves the pattern. On your product page the same drag should leave it where it is.
Step 9: What reaches the order
Everything you need to make the order is saved with it. In the cart, and on the order in your Shopify admin, the shopper's choices show as lines under the product. For the running example: Dimensions: Width: 144 in, Height: 96 in. See cart properties.
- The color has no line of its own. It is the variant, so it is in the product name: Wallpaper Repeat X-Y - Green.
- Dimensions is the wall's size in inches, both numbers on one line.
- Design Files appears when the shopper clicked Save Design in the Designer before adding to the cart. It links to a page for that design. On the demo, that page shows the pattern on a 144 in by 96 in wall. It says the proof is a visual reference: you print from your own pattern file, using the production details. It offers the production assets, a layered design file, the production details, the proof picture and a cut line file.
- Personalization Preview, a picture of the color on the product photo (Step 7), appears in its place when the shopper adds to the cart without opening the Designer.
Click Exit fullscreen to leave the Designer. Open Optional features, then Cart properties in the links at the top. Design Files, Personalization Preview and, under Line properties, Dimensions are ticked, and Admin only is unticked. The shopper can also change their choices from the cart with the Edit options button. See edit options from the cart.
Step 10: Link your product and publish
Open Placement & Styling. Keep Product pages (recommended), click Select products and pick your wallpaper product. To cover every product in a collection, use Select collections instead.
Your colors now show in the swatches. Click Publish. Publish is what updates your store; Save only keeps your draft. See publishing a calculator.
If you price differently
Pricing by material, with each material's width stored on its variant? See how to set up a wallpaper calculator that prices by material.
Pricing from a table of sizes and rates instead of one rate per square foot? See how to set up pricing tables for custom products.
FAQ
Can each color have its own price?
Yes. Each color is a variant, and its Price is its rate per square foot (Step 2). On the demo, the running example's wall costs 2,784.00 in Green, 2,688.00 in Red and 2,592.00 in White.
Does the price change when the shopper moves the pattern?
No. On the demo, the Designer's total stayed 2,784.00 after the pattern was dragged across and down. The price comes only from the size and the color.
Does the shopper have to open the Designer?
No. On the demo, the wallpaper goes into the cart without it, at the same 2,784.00, with a Personalization Preview line in place of Design Files (Step 9). The shopper does have to give a color and a size. Both are marked with a star. On the demo, Add to cart with the size inputs empty added nothing and printed "This field is required." under them.
Can the shopper type a fraction of an inch?
Not as the template is set. The inputs take whole inches: on the demo a typed 10.5 became 11. To allow fractions, change Decimals (Step 3).
Wallpaper priced by the square foot, with a pattern your shopper can place both ways.
Whatever you sell, however you price it · The last options app you'll shop for