Set up product metafields
Published 3 days ago
WallTropic reads your wallpaper data from product and variant metafields in the walltropic namespace. This data turns on the calculator, the mural size finder and size cards, the sample panel, the Product details block, the right buttons on product cards, and the "/ roll", "/ panel" or "/ sample" label after prices.
Products without this data still work like normal products. You can add the data gradually, product by product.
1. Create the metafield definitions
A theme can't create metafield definitions, so add them once in Shopify admin. Creating definitions gives each field the right type and an easy input in the product editor.
- In Shopify admin, go to Settings > Custom data.
- Click Products, then Add definition.
- For each product field in the first table below, enter the Name, set Namespace and key exactly as shown, choose the Type, and save.
- Go back to Custom data, click Variants, and add the variant fields in the second table.

Product fields
| Name (suggested) | Namespace and key | Type | Use |
|---|---|---|---|
| Product format | walltropic.product_format |
Single line text | One of roll, panel, mural, sample or wall_decor. Turn on Limit to preset choices and add these five values. |
| Calculator enabled | walltropic.calculator_enabled |
True or false | Set to false to hide the calculator on this product. Leave empty to follow the theme setting. |
| Sample product | walltropic.sample_product |
Product (one product) | On a wallpaper, the separate sample product to offer. |
| Roll width | walltropic.roll_width |
Dimension | The width of one roll. |
| Roll length | walltropic.roll_length |
Dimension | The usable length of one roll. |
| Pattern match | walltropic.pattern_match |
Single line text | One of free, straight or half_drop. Turn on Limit to preset choices and add these three values. |
| Pattern repeat | walltropic.pattern_repeat |
Dimension | The vertical pattern repeat. Needed for straight and half-drop matches. |
| Panel width | walltropic.panel_width |
Dimension | The width covered by one panel. |
Variant fields
| Name (suggested) | Namespace and key | Type | Use |
|---|---|---|---|
| Panel height | walltropic.panel_height |
Dimension | The height of the panel in this variant. |
| Panels per purchase unit | walltropic.panels_per_purchase_unit |
Integer (minimum 1) | How many panels quantity 1 of this variant contains: 1 for a single panel, or the number in a set. |
| Mural width | walltropic.mural_width |
Dimension | The finished width of this mural size. |
| Mural height | walltropic.mural_height |
Dimension | The finished height of this mural size. |
When a roll or panel measurement changes from variant to variant (for example a wide and a standard roll), also add that field as a variant definition with the same key, such as walltropic.roll_width on variants. WallTropic uses the selected variant's value first and falls back to the product's value.
2. Fill in the data for each format
Open a product in Shopify admin and scroll to Metafields (and to each variant's Metafields).
Roll wallpaper
| Field | Example |
|---|---|
| Product format | roll |
| Roll width | 52 cm |
| Roll length | 10 m |
| Pattern match | straight |
| Pattern repeat | 64 cm |
| Sample product | Palm Grove sample |
The calculator needs roll width, roll length and pattern match, plus pattern repeat for straight and half-drop matches. With a free match, leave pattern repeat empty.
Panel wallpaper
Panels are repeating wallpaper sold in fixed widths and a choice of heights.
| Field | Where | Example |
|---|---|---|
| Product format | Product | panel |
| Panel width | Product (or each variant when width is an option) | 24 in |
| Panel height | Each height variant | 8 ft, 9 ft, 10 ft … |
| Panels per purchase unit | Each variant | 1 (or 3 for a set of three) |
Create a Shopify option for the height (for example "Height: 8 ft, 9 ft, 10 ft") and set Panel height on each variant. The calculator recommends the smallest height that covers the shopper's tallest wall. Don't rely on the option name (such as "8 ft") for the measurement: only the metafield is used. If every panel product has the same width, you can leave Panel width empty and set Default panel width in Theme settings > Wallpaper calculator instead.
Scenic murals
| Field | Where | Example |
|---|---|---|
| Product format | Product | mural |
| Mural width | Each size variant | 300 cm |
| Mural height | Each size variant | 250 cm |
Give the mural a size option with one variant per size, and use the mural product template. See Mural sizes.
Samples
| Field | Where | Example |
|---|---|---|
| Product format | The sample product | sample |
| Sample product | The wallpaper it belongs to | the sample product |
See Link sample products.
Wall decor and other products
Set Product format to wall_decor and use the wall-decor product template. Wall decor has no calculator, sample panel or product details, and product cards show Add to cart or Choose options like a regular product.
What each field turns on
| Feature | Needs |
|---|---|
| Calculator button (rolls) | Format roll, roll width, roll length, pattern match (and repeat unless free) |
| Calculator button (panels) | Format panel, a panel width (or Default panel width) |
| Panel height recommendation | Panel height on each variant (or the product) |
| Setting the panel quantity for the shopper | Panels per purchase unit on the recommended variant |
| Mural size finder and size cards | Format mural, mural width and height on the variants |
| Sample panel and Order sample links | Sample product |
| "/ roll", "/ panel", "/ sample" after prices | Format roll, panel or sample |
| View wallpaper / View mural on cards | Format roll, panel or mural |
| Product details block | Any of the measurements |
Tips
- Type format and match values in lowercase exactly as shown (
half_drop, not "Half drop"). Limit to preset choices prevents typos. - Dimension fields store a number and a unit. Use whichever unit your supplier uses: inches, feet, yards, millimeters, centimeters or meters all work, and WallTropic converts between them.
- Copy measurements from your supplier's specification. The calculator is only as accurate as this data.
- To fill in many products at once, use Shopify's bulk editor (select products, click Bulk edit and add the metafield columns).