How to Set Up a Wallpaper Calculator That Prices by Material on Shopify

Four rolls of wallpaper in different material finishes standing on an oak table beside a partly unrolled strip of floral wallpaper, soft window light

To price wallpaper by material on Shopify with Appify Custom Product Options, install the Wallpaper by Material template and keep the material as a Shopify option on your product. Each material is a variant, and its variant price becomes the rate per square meter. The calculator multiplies that rate by the wall's area, so picking a different material changes the price straight away.

The template also rounds the width up to a step that belongs to the material. That step is a variant metafield called custom.material_width. Prices and sizes below come from the Wallpaper by Material 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
Material and rate A Shopify Material option, one variant per material The variant price is the price per square meter
Width step A custom.material_width variant metafield Rounds the shopper's width up to whole steps of that material
Wall size The Dimensions option Width and height in cm, 100 minimum each
Price Total price formula Area in m² times the variant price
Extras Additional Products, linked to store products Each material shows its own extras, each at its store price
Summary Price Summary Effective width, height, area, extras, subtotal and total
Cart and languages Cart properties, Cart edit and Languages What goes on the order line, edit from the cart, English, Spanish and Portuguese

Step 1: Install the Wallpaper by Material template

Open Appify CPO, Calculators and click the Templates tab. Search "wallpaper by". The row reads Wallpaper by Material, described as "Price wallpaper by Shopify Variant price and width metadata". Click the eye icon to preview it, then choose Install to my store.

A draft calculator opens in the editor. See calculator templates for the full flow, and how to start from a calculator template.

The Templates tab of the calculator list searched for wallpaper by, showing the Wallpaper by Material template in the Wallpaper category
The Templates tab. The editor screenshots below come from our installed copy of this template, the one behind the demo.

Step 2: Set up the product in Shopify

Two things live on the Shopify product, not in the calculator. The first is the Material option with one variant per material. Type the price per square meter into each variant's Price field. The demo has four variants:

Material variant Variant price (per m²) Material Width
100% Fiberglass 57.00 47.5
Embossed Vinyl TNT 45.00 50.0
Wall Effect TNT 40.00 50.0
ECO Adhesive Fabric 45.00 50.0
The Material option and the variants table of the demo product in the Shopify admin: four variants with prices 57.00, 45.00, 40.00 and 45.00
The product page in the Shopify admin: the Material option and its four variants. Each price is the rate for one square meter.

The second is a variant metafield, not a product one. Create a variant metafield with the key material_width in the custom namespace, so it reads custom.material_width, with the type Decimal. Then fill in a width for every variant. In our demo the definition is named Material Width.

META.MATERIAL_WIDTH is the name the app uses for that metafield. The app already knows its namespace and key, so you only create the metafield. To see the demo's values, open a variant from the product page and scroll to its Metafields card.

The variant metafield definitions list in the Shopify admin: product scene metafields as URL type, and Material Width with the Decimal type
The variant metafield definitions. Material Width is a Decimal.
The Metafields card of the 100% Fiberglass variant in the Shopify admin, showing Material Width with the number 47.5
The Metafields card of a variant. Material Width is 47.5 for 100% Fiberglass.

The material is not a calculator option. The shopper picks it with the theme's variant buttons above the calculator, and the calculator reads the selected variant. For the trade-offs of variants, read product options vs variants.

Step 3: Initial Price is fixed at 0

In Options & Pricing, Initial Price, Base price is set to Fixed with a Fixed value of 0. The material price does not come from here. It comes from the total price formula in Step 6, which reads the variant price itself. Initial Price explains the other choice, Selected Product Variant.

Initial Price section of the editor with Base price set to Fixed and Fixed value 0
Initial Price: Fixed, 0.

Step 4: The two options

Scroll to Options & Pricing. The template has two options. Open one with the pencil icon at the right of its row. Each opens with four tabs: Basic settings, Advanced settings, Visibility Rules and Value Rules.

Options list of the Wallpaper by Material editor: the Dimensions option with a rate of 0, then Additional Products with five choices that have no formula and a rate of 1
The options list. Dimensions has no price of its own, and the Additional Products choices have no formula.

Dimensions

Dimensions is a Dimension option with two fields: Width and Height. Both use Unit cm, Minimum 100 and Step 0.1, with 0 Decimals.

Its formula is empty and its rate is 0, so it adds nothing to the price directly. The variables in Step 5 read what the shopper types. See option basic settings.

Basic settings of the Dimensions option: type Dimension, Width and Height both in cm with minimum 100 and step 0.1
Dimensions, Basic settings. Open it from the options list with the pencil icon.

On Advanced settings, Show step number is on, which gives the circled 1 and 2 beside the option names. Dimension width is 50 percent, so Width and Height sit side by side, and Column width is 100 percent. Space above, Tooltip and Help text are empty.

Advanced settings of the Dimensions option: Show step number ticked, Dimension width 50 percent, Column width Percent 100
Dimensions, Advanced settings.

Visibility Rules and Value Rules are empty on this option. The Value Rules tab holds one setting and an Add value rule button. The setting: if the option's formula cannot be evaluated, the formula result is 0.

Visibility Rules tab of the Dimensions option reading No visibility rules yet
Dimensions, Visibility Rules tab: no rules.
Value Rules tab of the Dimensions option with the formula fallback result set to 0 and no value rules
Dimensions, Value Rules tab: the fallback of 0 and no rules.

Additional Products

Additional Products is a Button option with Choice source Manual and five choices, each with an image. Under Values & Pricing, Formula x Rate = Choice Price. The formulas are empty, so the choices add nothing to the calculator's total. The price of an extra comes from the store product it is linked to.

Basic settings of the Additional Products option: type Button, Choice source Manual, choices Two-component Resin, TA White Primer and Vice Versa Diamond with empty formulas, rate 1 and an Also adds line for each
Additional Products, Basic settings (first three choices).

Each choice has an Also adds line naming a linked store product, with Change and Remove beside it. Underneath, the quantity mode reads Fixed amount with 1, and Customers can change quantity and Keep together in cart are ticked.

When the shopper picks a choice and adds the wallpaper to the cart, the linked product is added too, at its live Shopify price. See add-on products.

Installing the template does not copy any products into your store. Link each choice to a product in your own store: create the add-on product if you do not have one, or pick an existing one. Use Change on the line, or Link a store product on a choice without one.

The last two choices of Additional Products, Crystallizing and Powdered Glue, each with an Also adds line, Fixed amount 1, and Customers can change quantity and Keep together in cart ticked
The other two choices, with the same quantity settings.
Choice (editor label) Linked store product Price of the linked product
Two-component Resin Two-component Resin 78.00
TA White Primer TA White Primer 40.00
Vice Versa Diamond Vice Versa Diamonds 30.00
Crystallizing Crystallizing 47.00
Powdered Glue Powdered Glue 35.00

Linked product prices are the store prices in the published calculator. The storefront shows 47.00 and 35.00 for the last two.

Advanced settings turn on Multiple selection (minimum 0, no maximum), one column of choices, an image to the left of the text at 40 by 40 px, Equalize button height and Show checkbox on choices. Show step number is on.

Advanced settings of Additional Products: Show step number and Multiple selection ticked, minimum selections 0, one option value column, column width 100 percent, image placement left of text at 40 by 40, and Equalize button height and Show checkbox on choices ticked
Additional Products, Advanced settings.

Show extras by material

Different materials need different extras. Open the Visibility Rules tab. Each rule uses Action: Show value(s) if, a condition on Material and a set of choices to show.

Visibility Rules tab of Additional Products: rule one, All conditions, shows Two-component Resin, TA White Primer and Vice Versa Diamond if Material equals 100% Fiberglass; rule two, Any condition, shows Crystallizing and Powdered Glue if Material equals Embossed Vinyl TNT or Wall Effect TNT; rule three starts for ECO Adhesive Fabric
Visibility Rules, Additional Products: rules one and two, and the start of rule three.
If the Material is The shopper sees
100% Fiberglass Two-component Resin, TA White Primer, Vice Versa Diamond
Embossed Vinyl TNT or Wall Effect TNT Crystallizing, Powdered Glue
ECO Adhesive Fabric Crystallizing

Material is the Shopify option, not a calculator option. In a rule's If field you choose it as the condition source, and the choices come from the product being previewed. The second rule uses Any condition (OR) because either material qualifies. The others use All conditions (AND) with one condition.

See visibility rules, rule conditions and inside a visibility rules calculator.

The third visibility rule: All conditions, Show value(s) if Material equals ECO Adhesive Fabric, with only Crystallizing ticked as a value to show
The third rule, for ECO Adhesive Fabric (scroll down in the same tab).

Value Rules on this option are empty too, with the same fallback of 0.

Value Rules tab of Additional Products with the formula fallback result set to 0 and no value rules yet
Additional Products, Value Rules tab.

Step 5: The variables that turn size into area

Under Variables, two do the work. ROUNDED_WIDTH rounds the shopper's width up to whole steps of the material's width:

CEILING(INPUT("DIMENSIONS", "dim1") / VAR("META.MATERIAL_WIDTH")) * VAR("META.MATERIAL_WIDTH")

AREA_M2 multiplies that width by the height and converts square centimeters to square meters:

VAR("ROUNDED_WIDTH") * INPUT("DIMENSIONS", "dim2") / 10000

META.MATERIAL_WIDTH is the custom.material_width variant metafield of the selected variant from Step 2. A 100 cm wall in 100% Fiberglass (47.5) rounds up to 3 steps, 142.5 cm. In the other materials (50) it rounds to 100 cm.

Only the width is rounded up. The height is used as typed.

The other four variables feed the summary and the cart. METADATA repeats the width step and HEIGHT is the height as typed.

ROUNDED_WIDTH_M and HEIGHT_M are the same two in meters. See pricing variables and the formula editor.

Variables section of the editor listing ROUNDED_WIDTH, AREA_M2, METADATA, HEIGHT, ROUNDED_WIDTH_M and HEIGHT_M with their formulas
The Variables section. ROUNDED_WIDTH and AREA_M2 carry the pricing.

Step 6: The total price formula and the cards under it

In Total Price Formula, the Primary formula is:

VAR("AREA_M2") * VAR("SHOPIFY.PRICE")

VAR("SHOPIFY.PRICE") is the price of the variant the shopper selected, so it is the material's rate. Area in square meters times that rate is the price. Price granularity is Total (single quantity representing multiple units), which charges the precise total for the whole wall.

Total discount is set to Fixed amount, 0, so no discount applies and the summary has no discount line. See total price formula.

Total Price Formula section with price granularity Total, the primary formula VAR AREA_M2 times VAR SHOPIFY.PRICE, and a Total discount of type Fixed amount set to 0, above the Quantity Discount Rules and Fixed Fees cards
The formula and the total discount, with the quantity rules card below.

The cards below are set up but empty. Pricing Tables, above the formula, has none.

Quantity Discount Rules reads Mode 1D, Aggregation Per line, Tiers 0, Disabled. Fixed Fees has no fee and Price Adjustments has no rule. Use them for a volume break, a setup fee or a surcharge.

The Quantity Discount Rules card showing Disabled with 0 tiers, the Fixed Fees card with an Add Fee button, and the Price Adjustments card with an empty rule list
Quantity Discount Rules, Fixed Fees and Price Adjustments: none configured.

Step 7: Optional features

The second editor step, Optional features, has a row of links: Layout, Price Summary, Cart properties, Weight calculation, Custom SKU rules, Languages, Multi-currency and Taxes.

Layout and Price Summary

Layout is Single-Step Calculator. In Price Summary, the ticked fields are Options, Subtotal and Total. Base price, Quantity, Quantity Discount, Discounts, Fixed Fees, After Discounts, Unit Price, Add-ons and Total with add-ons are off.

Layout set to Single-Step Calculator and the Price Summary fields: Options, Subtotal and Total ticked, Discounts and Fixed Fees unticked, then the Options to show list starting with Effective Width
Layout and the top of Price Summary.

Under Options to show there are four lines: Effective Width (the ROUNDED_WIDTH variable, value template {result} cm), Height, Area ({result} m²) and Additional Products (the option). Use Add item to show another line, such as a rate line from a variable. The linked extras the shopper adds are listed under the Additional Products row. See price summary display.

The lower part of Price Summary: the value template of the Height line, the Area line with the result in square meters, and the Additional Products option line
The rest of the Options to show list.

Cart properties, weight, SKU and cart edit

Cart properties decide what appears on the cart and order line. Send option names and values in the customer's language is on. In the line properties, Dimensions is unticked, so the raw width and height are not sent. Rounded Width and Height are sent in meters (from ROUNDED_WIDTH_M and HEIGHT_M), and Additional Products is ticked.

Weight calculation has no formula (unit kg). Custom SKU rules has no composition, and Show SKU in cart is off. Cart edit has Allow edit from cart on, which shows an Edit options button on the cart. See cart properties and edit options from the cart.

Cart properties with Send option names and values in the customer language ticked, Dimensions unticked, Rounded Width and Height variables in meters, Additional Products ticked, and the Weight calculation card with an empty formula in kg
Cart properties and Weight calculation.
Custom SKU rules with an empty composition, Cart edit with Allow edit from cart ticked, and Languages with English as default plus Spanish and Portuguese (Brazil) at 100 percent
Custom SKU rules, Cart edit and Languages.

Languages, currency and taxes

Languages sets English as the default and enables Spanish and Portuguese (Brazil), each 100 percent translated.

The All translations button lists the translated strings. That is also where the shopper-facing names of the choices live. The storefront buttons read Two-Component Resin, White TA Primer, Viceversa Diamond, Crystallizer and Powder Adhesive, where the editor says Two-component Resin, TA White Primer, Vice Versa Diamond, Crystallizing and Powdered Glue. See how to translate product options and calculators.

Multi-currency is automatic when Shopify Markets is set up, and there is nothing to set under Taxes.

Step 8: Personalization

The third step, Personalization, lets customers see a live preview of their choices on the product image. It is off for this calculator, and the template uses no Designer step.

Step 9: Link it to your product and publish

Go to the last step, Placement & Styling. Where does this calculator appear? is Product pages (recommended). Under Associated products, click Select products and pick the wallpaper product. Collections work too.

The Placement and Styling step with Where does this calculator appear set to Product pages and the Select products button under Associated products ringed in red
Placement & Styling: Select products (ringed) links the wallpaper product.

Publish is at the top right of the editor. The calculator shows on the storefront once the product is linked, the product's template has the Appify Calculator block (added in the theme editor), and the calculator is published.

The top bar of the calculator editor with the Publish button ringed in red
The Publish button at the top right of the editor.

What the shopper sees

The product page opens on the first material, 100% Fiberglass, at a 100 by 100 cm wall. The width rounds up to 142.50 cm, so the area is 1.43 m². The subtotal and the total are both 81.23 (1.425 m² at 57.00, rounded to the cent).

The Wallpaper by Material demo: four Material buttons with 100% Fiberglass selected, Width and Height 100 cm, three additional products, and a summary of effective width 142.50 cm, area 1.43 m², subtotal 81.23 and total 81.23
The demo as the shopper first sees it.

Now a wall 255 cm wide and 260 cm high. Choose Wall Effect TNT. The width rounds up to 300 cm, so the area is 7.80 m² at 40.00 and the total is 312.00.

The demo with Wall Effect TNT selected and a 255 by 260 cm wall: effective width 300.00 cm, area 7.80 m², subtotal 312.00 and total 312.00, with the extras Crystallizer and Powder Adhesive unticked
Wall Effect TNT, 255 x 260 cm.

Here is the same wall in each material:

Material Effective width Area Rate per m² Total
100% Fiberglass 285.00 cm 7.41 m² 57.00 422.37
Embossed Vinyl TNT 300.00 cm 7.80 m² 45.00 351.00
Wall Effect TNT 300.00 cm 7.80 m² 40.00 312.00
ECO Adhesive Fabric 300.00 cm 7.80 m² 45.00 351.00

Live demo, 255 x 260 cm, no extras ticked.

Two things change with the material. The rate changes (57.00 against 40.00 per m²), and so does the width step, which is why Fiberglass is priced on 7.41 m² and the other three on 7.80 m².

The demo with 100% Fiberglass selected and a 255 by 260 cm wall: effective width 285.00 cm, area 7.41 m², subtotal 422.37 and total 422.37
100% Fiberglass, same wall: 285.00 cm wide, 7.41 m², total 422.37.

Tick the two extras for Wall Effect TNT (the buttons read Crystallizer and Powder Adhesive) and each appears under Additional Products in the summary under its product name: Crystallizing 47.00 and Powdered Glue 35.00. The total stays 312.00. The extras are separate store products with their own prices and a quantity box each.

The demo with Wall Effect TNT and a 255 by 260 cm wall, both extras ticked with a quantity box each, and the summary listing Crystallizing x 1 at 47.00 and Powdered Glue x 1 at 35.00 under Additional Products, with subtotal and total 312.00
Both extras ticked: they are listed under Additional Products at their store prices.

In the cart, Edit options reopens the calculator with the choices filled in. Our case study of this calculator looks at the same demo as a worked example.

Ways to extend it

  • Rates kept outside Shopify. Put a rate per material in a pricing table, add a Button option whose choices come from the Shopify Material option, and look the rate up with that choice in the total formula.
  • A volume break. Turn on Quantity Discount Rules for tiers by quantity. See quantity discounts.
  • A flat fee per order. Add a setup or rush charge with Add Fee under Fixed Fees.
  • Show the combined amount. Tick Add-ons and Total with add-ons in Price Summary to show the checkout amount with the extras included. Tick Discounts if you add one.
  • A pattern the shopper places on the wall. The repeat guides cover the Product Designer side: horizontal repeat and vertical repeat.

For the bigger picture, read how to sell custom wallpaper by wall size. More setup guides are in the tutorials hub.

FAQ

How does the material change the price?

Each material is a Shopify variant, and its variant price is the rate per square meter. The total formula multiplies the wall area by that rate.

Why is the width rounded up?

The width is rounded up to whole steps of the material's width, read from the custom.material_width metafield on the variant. In the demo, a 100 cm wall in 100% Fiberglass is priced as 142.50 cm.

Can each material offer different extras?

Yes. Visibility rules use the Shopify Material option as the condition and show only the choices you tick for that material.

How do I add a new material?

Start in Shopify: add a variant with its price per square meter and a custom.material_width value. Then add the material to the visibility rules if it has its own extras.

Are the extras added to the calculator total?

No. Each extra is a linked store product at its own price. It is added to the cart with the wallpaper and listed under Additional Products in the summary.

Every material, priced to the square meter.

Install Free on Shopify

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