Slab builds product cards in two different ways. Most collection and slider grids render a Product card block that lives on that page’s template. Recently viewed (grid and slider) loads the separate product-card product template over the network. Use the section below to find the right place to edit for the area you care about.
Use this path for collection pages, search results, product grids and sliders, and recommendations when the theme loops products on the server.
Each template stores its own Product card setup. Changing the card on the collection template does not change Recently viewed, and the other way around.
Card chrome—padding, color scheme, borders, corner radius, gap between inner blocks, visibility, scroll animation—is controlled on the Product card block itself. See the Product card reference for those settings and the full list of blocks you can nest.
Recently viewed (grid and slider) does not use the Product card block from your collection template. The storefront fetches each product using the product-card product template (product.product-card.json in theme files).
Optional: Shopify loads this with the alternate template view parameter (?view=product-card).
That template uses the Product section. The theme’s default layout is a Container that groups Product media, Rich text (often wired to the product title), Price, and Swatches—you can add, remove, or reorder blocks in the editor the same way as on other product templates.
Edits here apply to any feature that loads that template with the product-card view (including Recently viewed). They do not change cards on collection or search pages unless those pages are also loading that view (they normally are not).
product-card template.The Product section allows a different mix of blocks than the nested list inside a Product card block on collection templates—for example Buy buttons and Product options are available here if you want that experience inside a fetched card.
Save your changes, then open a page with Recently viewed (grid or slider) and confirm the card matches what you expect.
What appears on a card depends on which surface you are editing (page Product card block vs product-card product template). In both cases, content comes from the blocks you add—not from one combined “product card settings” panel.
| What you want | What to use |
|---|---|
| Formatted title or body copy | Rich text (on page cards, nested in Product card; on the product-card template, usually inside a Container or other theme block that supports it) |
| Price | Price |
| Images or video | Product media |
| Tags, sale, or custom labels | Badges (including metafield-based badges) |
| Variant color or pattern chips | Swatches |
| Stock messaging | Inventory availability |
| Quick add from a grid or slider card | Quick buy button inside the Product card block (see Quick actions) |
| Full add to cart / options on the fetched product-card template | Buy buttons, Product options, and related blocks in the Product section when editing the product-card template |
Add or edit a Rich text block and connect the field to product information (for example the product title) when the editor offers that connection. The default product-card template ships with rich text using the product title. The same pattern works for many metafields when you connect a supported setting to a metafield you defined in Shopify admin.
To surface custom attributes as badges, configure the Badges block as described in Badges.
product-card view by default. You can still enter the same template suffix as your card layout if you want overlapping designs.Start by connecting your source repository and choosing the pages you want to publish.
You can then browse your documentation and ask questions about the content your team has shared.