FurrowThe Shopify theme for farm shops

Guide

Product fields and dynamic sources

Every cheese has its own milk and rind, every chutney its own ingredients, every class its own dates. You keep those in each product’s own fields, and connect Furrow’s blocks to them once: from then on, every product page shows its own.

How it works

A product page uses one template for many products. A block’s typed words would be the same on every product, so instead you connect the setting to a field (Shopify also calls them metafields) that each product fills in for itself. Shopify calls a connected field a dynamic source.

  1. Make the field. In your admin, Settings > Custom data > Products, choose Add definition, give it a name (Tasting notes) and a type. Use Single line text for one short value, Multi-line text for a list with an item a line, and Rich text for paragraphs with bold and links.
  2. Fill it in on each product, near the foot of the product’s page in your admin.
  3. Connect it. In the theme editor, open a product, select the block, and use the Connect dynamic source button beside the setting to choose the field.

Shopify lets a field be connected to text, rich text, link, color, image and resource settings, but not to a plain several-line text box. Furrow’s settings that hold a list, one item a line, are rich text for this reason, so they take a multi-line field.

Screenshot to comeThe theme editor with a Product facts block selected and the Connect dynamic source menu open

Lists, one item a line

Product facts, an experience’s dates, the day hour by hour and its lists are read a line at a time. They read the lines the same way, typed or connected:

  • Typed in the theme editor: each paragraph, or each line break (Shift + Enter), is one item.
  • Connected to a multi-line text field: each line of the field is one item.

Product facts read best as a label and a value: Milk: Raw cow’s milk, Ripening: 4 weeks, Keeps: 2 weeks, chilled.

What can be connected

Section or blockSettingA field like
Product: Text blockTextA line under the title, single line text
Product: Servings and weightTextServes, single line text: “Serves 4 to 6”
Product: Product factsFactsFacts, multi-line text, a fact a line
Product: AwardsPrize, Given by, YearSingle line text each
Product: Collapsible rowContentIngredients or Allergens, rich text or multi-line text
Product: the section’s DrawingDrawingA file field holding a drawing
Story and notes: NoteTextTasting notes, Serving, Keeping, Allergens
An experience: A fact, Dates, The day, List, After the priceValue, Dates, Moments, ItemsSee Experiences
Article (recipe): Serves and timesServes, Preparation time, Cooking timeThe article’s own fields

A connected block that is empty for a product is hidden on that product: a cheese with no awards has no awards block.

Shopify’s standard fields

  • Subtitle. Add Shopify’s standard Subtitle definition in Settings > Custom data > Products. Furrow shows it, with nothing to connect, in the product page’s Subtitle block, under each portrait in Made here, on product cards and in the board planner, and as an experience’s short line.
  • Category fields, like allergens and dietary preferences, that Shopify adds when you choose a product’s category, can be connected like any other field: to a collapsible row, for example.

Without fields

Fields are an extra, not a need. Every block can be typed in the theme editor, and Furrow reads Shopify’s own fields everywhere: the title, vendor, product type, tags (Award: tags make rosettes), description, images and each variant’s weight. A product page with nothing connected still looks complete.