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`, plus `roll_width`, `roll_length`, `pattern_match` and (for straight or half-drop) `pattern_repeat`.
- **Panels:** `product_format` = `panel`, plus `panel_width` (or a store-wide **Default panel width**), `panel_height` on each height variant and `panels_per_purchase_unit` on each variant.
- **Murals:** `product_format` = `mural`, plus `mural_width` and `mural_height` on each size variant.

See [Set up product metafields](/docs/walltropic/product-metafields) for how to create these fields.

## Step 2: Choose your settings

1. In the theme editor, open **Theme settings** > **Wallpaper calculator**.
2. Check that **Show calculators on product pages** is on.
3. Choose your **Default unit** (**Inches** or **Centimeters**).
4. Set **Top trim** and **Bottom trim** for rolls (2 in each is a common default), and decide whether to **Suggest a spare roll**.
5. Leave **Waste buffer** at 0% unless your supplier recommends one.
6. For panels, set **Height allowance** if your supplier recommends extra height, and **Default panel width** if your panel products share one width.
7. For murals, set **Width allowance per side** and **Height allowance per side**.
8. 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](/docs/walltropic/calculator-settings) for every setting.

## Step 3: Check the product template

1. In the theme editor, open **Products** > **Default product**.
2. Under **Product information**, check that the **Calculator** block is there, close to **Variant picker** and **Buy buttons**. If not, click **Add block** > **Calculator**.
3. Do the same for **Products** > **mural**.

## Step 4: Test it

1. 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.
2. 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.
3. Click **Use [number] rolls** and check that the quantity changes.
4. Repeat with a panel product and a mural.

## Step 5: Create the calculator page

1. 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).
2. Go to **Online Store** > **Pages** > **Add page**. Title it "Wallpaper calculator", choose the **calculator** template and set the handle to **wallpaper-calculator**.
3. In the theme editor, open the page, select **Wallpaper calculator** and choose your collection in **Products**.
4. Add your **Measuring guide link** and **FAQ link**.

See [Calculator page](/docs/walltropic/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.

## Related

- [Calculator on the product page](/docs/walltropic/product-calculator)
- [Wallpaper calculator settings](/docs/walltropic/calculator-settings)
- [Calculator page](/docs/walltropic/calculator-page)
- [Set up product metafields](/docs/walltropic/product-metafields)