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.
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 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 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.
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.
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.
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.
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.
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.
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.
| 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.
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.
| 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.
Value Rules on this option are empty too, with the same fallback of 0.
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.
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.
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.
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.
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.
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.
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.
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.
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).
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.
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².
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.
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.
Whatever you sell, however you price it · The last options app you'll shop for