Link sample products
Published 3 days ago
In WallTropic, a sample is its own product, separate from the wallpaper. That gives each sample its own price, stock, image and shipping, and lets shoppers add a sample in one click from product pages, product cards, quick view and the cart drawer.
Step 1: Create the sample product
- In Shopify admin, go to Products > Add product.
- Title it clearly, for example "Palm Grove – Sample".
- Add an image (a close-up of the pattern works well), a price (or 0 for free samples) and inventory.
- Give it a single variant if you can. Single-variant samples get a one-click Add sample button on product cards; samples with several variants get Choose sample instead.
- Set the metafield Product format (
walltropic.product_format) tosample. - Save.
Step 2: Link it from the wallpaper
- Open the wallpaper product.
- In Metafields, set Sample product (
walltropic.sample_product) to the sample you created. - Save.
You only link from the wallpaper to the sample. The sample doesn't need a link back.
If you haven't created the metafield definitions yet, see Set up product metafields.

Step 3: Keep samples in their own collection
So that collection pages, search and recommendations show wallpaper rather than samples:
- Create a Samples collection (handle samples) and add your sample products to it. The demo content links to /collections/samples from the cart and sample promotions.
- Keep sample products out of your wallpaper collections. With automated collections, add a condition that leaves them out, for example by product type or tag.
- To hide samples from store search, ask your developer or use an app to set Shopify's
seo.hiddenmetafield to 1 on each sample product. This also hides them from search engines.
Step 4: Show the sample on the product page
The Sample block shows the linked sample on the product page. It's in the default product template already. Set Sample size text (for example "A4 sample, 21 × 29.7 cm"). See Order a sample.
Where shoppers can order samples
| Where | What they see |
|---|---|
| Product page | The Sample panel with Add sample |
| Product cards | An Order sample link with the sample's price (turn off with Show "Order sample" link) |
| Quick view | An Order sample link |
| Cart drawer recommendations | Add sample buttons (turn off with Show "Add sample" buttons) |
| Samples page | A grid of sample products with Add sample buttons |
| Cart | Samples are marked with a Sample badge |
Sample links only show when the sample product is available.
Tips
- Product cards and product pages always show the wallpaper's full-size price, never the sample price.
- If a design has no sample, leave Sample product empty: the sample panel and links simply don't appear.
- Use a samples page to explain your sample policy. See Samples page.