Order a sample
Published 3 days ago
The Sample block shows the sample product linked to a wallpaper, with its image, title, price and an Add sample button. Shoppers can order a sample to check the color and texture at home before buying full rolls. Samples are separate products in WallTropic, so they have their own price, stock and image.
Turn it on
- Create a sample product and link it from the wallpaper with the
walltropic.sample_productmetafield. See Link sample products. - In the theme editor, open the product template, and under Product information click Add block > Sample. The default product template already includes it.
The block shows the sample product linked in the walltropic.sample_product metafield. It's hidden when no sample is linked, and on products whose format is sample.

Settings
| Setting | What it does |
|---|---|
| Sample size text | For example "A4 sample, 21 × 29.7 cm". Shown under the sample's price. |
| Desktop position | Beside product info (default) shows the sample panel in its own column on wide screens. Inline shows it in the details column, where you place the block. Always shown inline on smaller screens. |
What shoppers see
- The sample's image, title and price.
- Add sample, which adds one sample to the cart straight away. When the sample is sold out, it shows "Sample sold out" instead.
- View sample product, a link to the sample's own page.
Other places samples appear
- Product cards show an Order sample link with the sample's price on wallpaper with a linked, available sample. Turn it off with Show "Order sample" link in the section. See Product cards.
- Quick view shows the same Order sample link.
- Cart drawer recommendations can show Add sample buttons. See Cart recommendations.
- In the cart, sample products get a Sample badge.
Tips
- Prices on product cards and the product page always use the wallpaper's full-size variants; the sample has its own price.
- Murals use the mural template, which doesn't include the Sample block. Add it if you sell mural samples.
- Mention the sample size and what's included in Sample size text, so shoppers know what they'll receive.