Product cards
A product card is the image, title and price that represents a product wherever products are listed: collection pages, featured collections, search results and product recommendations. The Product cards settings apply to every card, so your products look the same across your online store.
Open theme settings
Steps:
- From your Shopify admin, go to Online Store > Themes.
- Find Heirloom, and then click Edit theme.
- Click the Theme settings icon.
- Click Product cards.
Show a subtitle on product cards
A subtitle is a short line under the product title on each card, such as “Cold-pressed, 500 ml”. Heirloom reads it from Shopify’s standard product subtitle metafield, descriptors.subtitle.
Steps:
- Add the subtitle to your products. Learn how in Metafields.
- In the Product cards settings, make sure that Show product subtitle is checked. It’s on by default.
- Click Save.
Cards for products without a subtitle look the same as before.
How cards line up
Cards in one row share their rows, so prices and buttons line up across the row even when titles run to different lengths. The unit price, when a product has one, sits right after the price. A sold-out card dims its image, title and price.
Let customers add to cart from a card
With Show quick add on, each card has a quick add action under it: a text link by default, or an outlined button when Card button style is Outline button. On computers it shows when a customer points at the card, unless you set Quick add appears to Always. Touch screens always show it. What the action does depends on the product:
- One variant: an Add to cart button adds one to the cart.
- 2 to 10 variants: a Choose options button opens a chooser on the card. Up to three variants show as option buttons, and more show in a dropdown. An Add to cart button sits below, and the chooser’s button turns into a small close mark once it’s open. Sold-out variants are listed but can’t be chosen.
- More than 10 variants: a Choose options link opens the product page. The same goes for gift cards, products sold only by subscription, and products whose quantity rules need more than 1 or a set step.
- Sold out: no action. The sold out badge says that the product is sold out. When the badge is off, or a sale badge takes its place, a plain Sold out line shows where the action would be.
You can change the words on the buttons with Add to cart label and Choose options label. Leave them blank to use Add to cart and Choose options in the customer’s language. A featured collection, related products or recently viewed section can show or hide quick add for its own products, whatever the theme setting is.
Quick add works without JavaScript. When JavaScript is on and Cart type is Drawer, the cart drawer opens with the added item. Otherwise the customer goes to the cart page.
Change the sale and sold out badges
A card shows one badge at most, in a corner of its image. A product on sale shows the sale badge, and a product with no variants in stock shows the sold out badge.
Steps:
- In the Product cards settings, find Badges.
- Under Sale badge shows, choose Text for a word such as Sale, Percentage saved for “Save 20%”, or Amount saved for “Save $5.00”.
- To use your own word, enter it in Sale badge text or Sold out badge text.
- Choose a corner in Badge position.
- Click Save.
The percentage and the amount are worked out from the variant whose price the card shows. If that variant isn’t on sale but another one is, the badge shows your text instead.
Settings
- Image shape: The shape of product images on cards. Square is 1:1, Portrait is 4:5, Tall is 3:4, Landscape is 4:3, Classic is 3:2 and Wide is 16:9. A featured collection, related products or recently viewed section can use its own shape.
- Image fit: How each image fills that shape. Crop to fill fills the shape and crops what doesn't fit. Show whole image shows each image uncropped on a plain background, and never larger than its own size. Use it when your product photos have different shapes.
- Card style: How each card sits on the section. Plain shows the image and text straight on the background. Framed adds a thin border in the color scheme's border color, with rounded corners and padding. Filled puts the card on a tint of the page mixed with the scheme's border color, so it shows on every style. On a colored band it uses the scheme's card color. Also applies to collection and blog post cards.
- Swap images on hover: Shows the product's second media item, as a still image, when a customer points at the card. Products with one image don't change. Touch screens show only the first image.
- Show vendor: Shows the product's vendor above its title.
- Show product subtitle: Shows the standard descriptors.subtitle metafield under the product title. Cards for products without that metafield are unchanged.
- Show product type: Shows the Shopify product type under the title (for example Oil or Sparkling).
- Show rating: Stars from your reviews app, shown once a product has reviews.
- Card text alignment: Lines up the title, price and other text on each card to the left or the center.
Quick add
- Show quick add: Adds an Add to cart or Choose options button under each card. Learn more in Let customers add to cart from a card.
- Card button style: How the quick add button looks. Text link, the default, is a plain underlined link for a quiet grid. Outline button is a light outlined button across the card. It shows only when Show quick add is on.
- Quick add appears: Touch screens always show it.
- Add to cart label: For products with one variant; blank shows Add to cart.
- Choose options label: For products with options; blank shows Choose options.
Badges
- Show sale badge: Shows a badge on products whose compare-at price is higher than their price.
- Sale badge shows: Percentage and amount show the saving of the variant the card prices.
- Sale badge text: Leave blank for Sale.
- Show sold out badge: Shows a Sold out badge on products that have no variants in stock. A product that's on sale shows the sale badge instead.
- Sold out badge text: Leave blank for Sold out.
- Badge position: The corner of the image that the badge sits in.
Price
- Text before a price range: Shown before the lowest price when variants differ; blank shows From.
- Show currency codes: Applies to every price in the store; the cart total always shows the code.
Related
- Learn more about collection pages.
- Learn more about image sizes.
- Learn more about layout and corners.
- Learn more about product metafields.