Set up the calculator
Published 3 days ago
This guide takes you from no calculator to a working calculator on your product pages and a standalone calculator page. It takes about 15 minutes once your product measurements are in place.
Step 1: Add the product data
The calculator reads each product's measurements from walltropic metafields. For each product:
- Rolls:
product_format=roll, plusroll_width,roll_length,pattern_matchand (for straight or half-drop)pattern_repeat. - Panels:
product_format=panel, pluspanel_width(or a store-wide Default panel width),panel_heighton each height variant andpanels_per_purchase_uniton each variant. - Murals:
product_format=mural, plusmural_widthandmural_heighton each size variant.
See Set up product metafields for how to create these fields.
Step 2: Choose your settings
- In the theme editor, open Theme settings > Wallpaper calculator.
- Check that Show calculators on product pages is on.
- Choose your Default unit (Inches or Centimeters).
- Set Top trim and Bottom trim for rolls (2 in each is a common default), and decide whether to Suggest a spare roll.
- Leave Waste buffer at 0% unless your supplier recommends one.
- For panels, set Height allowance if your supplier recommends extra height, and Default panel width if your panel products share one width.
- For murals, set Width allowance per side and Height allowance per side.
- Set Help link to your contact page, or leave it empty to use /pages/contact.
If you change the unit, change the trim and allowance numbers to match: they aren't converted for you.
See Wallpaper calculator settings for every setting.
Step 3: Check the product template
- In the theme editor, open Products > Default product.
- Under Product information, check that the Calculator block is there, close to Variant picker and Buy buttons. If not, click Add block > Calculator.
- Do the same for Products > mural.
Step 4: Test it
- In the theme editor, preview a roll product. You should see Calculate rolls needed under the variant picker. If you see "Calculator hidden: this product or variant is missing the walltropic measurements it needs.", check the product's metafields.
- Open the calculator, enter a wall (for example 3 m wide and 2.4 m high) and compare the estimate with your supplier's own guidance.
- Click Use [number] rolls and check that the quantity changes.
- Repeat with a panel product and a mural.
Step 5: Create the calculator page
- In Shopify admin, create a collection that contains your roll and panel wallpaper (for example an automated collection where the product format is roll or panel, or simply all wallpaper).
- Go to Online Store > Pages > Add page. Title it "Wallpaper calculator", choose the calculator template and set the handle to wallpaper-calculator.
- In the theme editor, open the page, select Wallpaper calculator and choose your collection in Products.
- Add your Measuring guide link and FAQ link.
See Calculator page.
Step 6: Promote it
- On the home page, the Promo banner calculator band links to /pages/wallpaper-calculator. Check the link. Keep Hide when the wallpaper calculator is off ticked so the band disappears if you turn the calculator off.
- Link the calculator from your measuring guide, FAQ and room collections.
How the estimate works
- Rolls: each wall's width is divided by the roll width and rounded up to whole drops. Every drop is cut for the tallest wall, plus trim, plus one full pattern repeat for straight and half-drop matches. Drops per roll = roll length ÷ cut length, rounded down. Rolls = drops (plus any waste buffer) ÷ drops per roll, rounded up. Doors and windows aren't deducted.
- Panels: each wall's width is divided by the panel width and rounded up. The recommended height is the smallest panel height that covers the tallest wall plus allowance. Sets = panels ÷ panels per set, rounded up.
- Murals: the recommended size is the smallest size whose width and height both cover the wall plus allowance on each side.
Example: a wall 120 in wide and 96 in high, with a roll 20.5 in wide and 393.7 in long, a straight match with a 25 in repeat and 2 in trim at top and bottom: 6 drops; cut length 96 + 4 + 25 = 125 in; 3 drops per roll; 2 rolls.
Turn the calculator off for one product
Set that product's walltropic.calculator_enabled metafield to false. Use this for products the calculator doesn't suit, such as coordinated A/B rolls, double-roll packs or wide-width wallcoverings.