Product data
Set up swatch images and the metafields Alume reads.
Alume is in development. These early guides grow as the theme does.
Several Alume features stay hidden until a product, variant, or collection has the right metafield. Create each one in Shopify, then point the theme setting at it.
Custom swatch images
Choose one setup path for Theme settings > Swatches > Swatch source.
Swatch color or image
Use a small pattern or fabric image stored on Shopify's native color entry.
- In Shopify admin, open Products and select a product.
- Choose an accurate Category that includes a color category metafield, then save.
- In Category metafields, open the color field. Edit an entry or choose Add new entry.
- In the entry's Image field, select an image or upload your custom swatch image, then save the entry and product.
- In Variants, edit your color option and use the dynamic source icon to connect it to the color category metafield. Select the matching entries as option values, then save. For a new option, choose the category metafield when adding it.
- In the theme editor, open Theme settings > Swatches and set Swatch source to Swatch color or image. Save.
Editing a shared color entry updates every product connected to it. Naming an unconnected option “Color” does not give it a native swatch image. See Shopify's category swatch setup.
Variant image
Use the product photo assigned to a variant.
- In Shopify admin, open Products and select a product.
- In Variants, click the image icon beside a variant.
- Select an existing product image, or click Add image to upload one. Click Done, then Save.
- Repeat for the variants that need a photo, including size variants of the same color.
- In the theme editor, open Theme settings > Swatches. Set Swatch source to Variant image.
- In Options with variant images, enter matching option names separated by commas, such as
Color, Colour. Save.
Uploading to the product gallery alone does not assign the image to a variant. See Shopify's variant image instructions if your admin uses the redesigned product details page.
Check your swatches
Open the product in the storefront and check each color. Alume uses the assigned variant photo in Variant image mode, then falls back to the native swatch image or color when that photo is missing. Swatch shape applies to both colour and image swatches throughout the theme.
Add a metafield
- In your Shopify admin, go to Settings > Metafields and metaobjects.
- Open Products, Variants, or Collections, depending on what the feature reads.
- Click Add definition.
- Set the namespace and key exactly as this page writes them, such as
theme.alternative. - Choose the type named below, then save.
Product card highlights
Add a short line to individual product cards, such as a material or finish.
- In Shopify admin, open Settings > Metafields and metaobjects > Products and choose Add definition.
- Name it Card highlight, set its namespace and key to
theme.highlight, and choose Single line text. Save the definition. - Open a product, find Card highlight in its metafields, enter the line shoppers should see, and save.
- In the theme editor, open Theme settings > Product cards. Enter
theme.highlightin Highlight metafield. - Open a collection containing that product. Its card shows the line beside its product details. Products without a value show no highlight.
You can use another single-line text metafield by entering its full namespace.key. Leave Highlight metafield blank to hide highlights on every card. The setting reads product metafields, not variant metafields.
Lists of products
Smart alternatives reads two product metafields. Both are type Product, with List of products turned on.
theme.alternativeis the list of other products a shopper might choose instead.theme.upgradeis the list of higher-priced products. Alume only offers one when its price is higher by at least the Price difference on the section.
Leave either list empty and that side stays unused. The section stays hidden until a choice has a real difference, or you write a label. See Smart alternatives.
Facts you name yourself
Product facts, Diptych compare, and Smart alternatives do not ship with fixed fact names. In the section or block, open Facts and enter one metafield per line:
namespace.key|Label
For example, custom.material|Material. The part before the bar is the metafield. The part after it is the label shoppers see. A blank Facts field shows nothing.
Create each fact as a product metafield. A single-line text field is the usual type. A row is skipped when that product has no value.
Blog post products
For Article > Shop this story, create these definitions on Blog posts, rather than Products:
| Namespace and key | Type | What it supplies |
|---|---|---|
custom.shop_the_story | Product reference, list of products | Up to eight available products when the block’s Products picker is empty. |
custom.shop_the_story_heading | Single line text | The heading when the block’s Heading is empty. |
custom.reading_time | Integer | A positive reading-time estimate in minutes; otherwise the theme estimates at 200 words per minute, rounded up. |
Fill the values on each blog post. Direct selections in the block take priority and are shared by posts using that template. Author images and bios use the dynamic sources you connect; see Author.
Color, date, and exceptions
- Mega menu collection swatches read a collection Color metafield named
theme.collection_color. If that is empty, Alume usestheme.swatch_hex. A collection with neither is left out of the swatch column. - Connected products can use a color or image metafield, such as
theme.swatch_color. Enter that namespace and key in the block's Swatch metafield. - Pre-orders can show a ship date from a Date metafield. The Ship date metafield setting uses
custom.ship_dateas the example. A date on the variant replaces the date on the product. See Pre-orders. - Gift wrap skips a product whose
custom.no_gift_wrapmetafield is true. Create it as True or false on products.
Star ratings use the metafields from your reviews app. Those are covered in Star ratings.
