Static preview of a Shopify theme. It approximates Shopify's rendering; checkout is off. This page shows each custom section in isolation. Concept store by Jagrit Vats (jagritvats.com): fictional brand. Case study Section gallery All work

Custom sections in Oftly

Every section below is merchant-editable through settings, blocks and presets. The quiz, routine builder, before/after, ingredient table, concern tiles, shipping bar, refill steps, FAQ and glossary are self-contained and can be dropped into another theme.

Hero: fill line

The homepage hero built around the store's one idea. Pick a product and the gauge, day count and opened, refill and last-drop dates are computed from its size and daily-use metafields.

Files: sections/hero-fill-line.liquid

What the merchant can edit

Section settings

SettingTypeNotes
Small line above the headingtext
HeadingtextareaName a number or a process only this store would say.
Textrichtext
ProductproductIts day count comes from the product's size and daily-use metafields (see METAFIELDS.md).
Photoimage_pickerLeave empty to use the product's first image.
Photo description (alt text)text
Show opened, refill and last-drop datescheckbox
First button labeltext
First button linkurl
Second button labeltext
Second button linkurl

Hero: fill line, second setup

The same section pointed at another product with no photo: the label card stands in, and every number updates from that product's metafields.

Files: sections/hero-fill-line.liquid

What the merchant can edit

Section settings

SettingTypeNotes
Small line above the headingtext
HeadingtextareaName a number or a process only this store would say.
Textrichtext
ProductproductIts day count comes from the product's size and daily-use metafields (see METAFIELDS.md).
Photoimage_pickerLeave empty to use the product's first image.
Photo description (alt text)text
Show opened, refill and last-drop datescheckbox
First button labeltext
First button linkurl
Second button labeltext
Second button linkurl

Shop by concern

Concern tiles as blocks, each linked to a collection. Title, image and product count fall back to the collection's own.

Files: sections/concern-tiles.liquid

What the merchant can edit

Section settings

SettingTypeNotes
Small line above the headingtext
Headingtext
Textrichtext
Tiles per row on desktopselect
Show product countcheckbox
Word after the counttext

Block: Concern

SettingTypeNotes
CollectioncollectionThe tile links here and counts its products.
Tile titletextLeave empty to use the collection title.
One line under the titletext
Imageimage_pickerLeave empty to use the collection image. Skin close-ups and textures work; avoid before-and-after faces.

Shop by concern, set up as steps

Same section, different blocks: tiles for routine steps instead of concerns.

Files: sections/concern-tiles.liquid

What the merchant can edit

Section settings

SettingTypeNotes
Small line above the headingtext
Headingtext
Textrichtext
Tiles per row on desktopselect
Show product countcheckbox
Word after the counttext

Block: Concern

SettingTypeNotes
CollectioncollectionThe tile links here and counts its products.
Tile titletextLeave empty to use the collection title.
One line under the titletext
Imageimage_pickerLeave empty to use the collection image. Skin close-ups and textures work; avoid before-and-after faces.

Skin quiz

Questions and answers are nested blocks. Each answer maps to concerns, recommends products and can rule products out. One question at a time, keyboard friendly, and the result loads straight into the routine builder. No network calls: product data is rendered into the page.

Files: sections/skin-quiz.liquid, blocks/_oftly-quiz-question.liquid, blocks/_oftly-quiz-answer.liquid

What the merchant can edit

Section settings

SettingTypeNotes
Small line above the headingtext
Headingtext
Textrichtext
Heading levelselectUse H1 when the quiz is the page's main content.
Imageimage_picker
Image description (alt text)text
Start panel texttextarea
Products the quiz can recommendproduct_listAnswers only recommend products in this list. Each product's routine step comes from its Routine step metafield.
Routine steps, in ordertextComma-separated. The result picks the best product for each step, then keeps the strongest matches.
Products in the resultrange
Page with the routine builderpage"Send to the builder" opens this page with the routine filled in. If the builder is on the same page, it fills in place.
Result headingtext
Note under the resulttext
Starttext
Nexttext
Backtext
Send to the routine buildertext
Start overtext
Progress texttext[n] is the current question, [total] the number of questions.
Message when no answer is chosentext
Word after the day counttext

Block: Question

SettingTypeNotes
Questiontext
Help texttextOptional. One line under the question.

Block: Answer

SettingTypeNotes
Answertext
Small print under the answertext
ConcernstextComma-separated, matching the products' Concerns metafield, e.g. "oil, pores". Each match adds 1 point to a product.
Recommend these productsproduct_listEach adds 2 points. Products must also be in the quiz's product list.
Never recommend these productsproduct_listFor answers like "my skin stings easily": strong acids or retinal are left out of the result.

Skin quiz, two-question setup

The same section with two question blocks, a two-product result and different steps.

Files: sections/skin-quiz.liquid, blocks/_oftly-quiz-question.liquid, blocks/_oftly-quiz-answer.liquid

What the merchant can edit

Section settings

SettingTypeNotes
Small line above the headingtext
Headingtext
Textrichtext
Heading levelselectUse H1 when the quiz is the page's main content.
Imageimage_picker
Image description (alt text)text
Start panel texttextarea
Products the quiz can recommendproduct_listAnswers only recommend products in this list. Each product's routine step comes from its Routine step metafield.
Routine steps, in ordertextComma-separated. The result picks the best product for each step, then keeps the strongest matches.
Products in the resultrange
Page with the routine builderpage"Send to the builder" opens this page with the routine filled in. If the builder is on the same page, it fills in place.
Result headingtext
Note under the resulttext
Starttext
Nexttext
Backtext
Send to the routine buildertext
Start overtext
Progress texttext[n] is the current question, [total] the number of questions.
Message when no answer is chosentext
Word after the day counttext

Block: Question

SettingTypeNotes
Questiontext
Help texttextOptional. One line under the question.

Block: Answer

SettingTypeNotes
Answertext
Small print under the answertext
ConcernstextComma-separated, matching the products' Concerns metafield, e.g. "oil, pores". Each match adds 1 point to a product.
Recommend these productsproduct_listEach adds 2 points. Products must also be in the quiz's product list.
Never recommend these productsproduct_listFor answers like "my skin stings easily": strong acids or retinal are left out of the result.

Routine builder

Pick any three across steps the merchant defines, then see each bottle's gauge and a six-month fill line of run-outs and refill dates. Adds all three in one /cart/add.js call, with a selling plan per item when refilling and a _routine_id line property the cart uses to group them.

Files: sections/routine-builder.liquid

What the merchant can edit

Section settings

SettingTypeNotes
Small line above the headingtext
Headingtext
Textrichtext
Heading levelselectUse H1 when the builder is the page's main content (a dedicated routine page).
Anchor for linkstextLinks ending in #routine-builder scroll here.
Products per routinerange
Routine ticked on arrivalproduct_listA sensible starting routine, so the fill line shows straight away. Shoppers untick and swap freely. Leave empty to start blank.
Routine discount shownrangeDisplay only. Create the matching automatic discount in Discounts (see SETUP.md): a theme can't apply discounts.
Refills ship this many days before a bottle runs outrange
Fill line coversselect
Note under the buttontextarea[pct] becomes the discount.
Headingtext
Texttext[lead] becomes the lead time in days.
Step numbertext[n] is the step number.
Picked countertext[n] picked, [size] needed.
Counter when completetext
Purchase choice headingtext
One-time optiontext
One-time option detailtext
Refill optiontext
Refill option detailtext
Set pricetext
Refill savingtext
Routine discounttext[pct] becomes the discount.
Totaltext
Add buttontext
Add button in the mobile bartext
Add button after addingtext
Word after a day counttext
Refill ships columntext
Reorder column (one-time)text
Intervaltext[n] is the number of days.
Legend: refilltext
Legend: run-outtext
Table: product columntext
Table: lasts columntext
Table: runs-out columntext
Table: next columntext

Block: Step

SettingTypeNotes
Step nametext
Rule shown beside the nametext
Note under the nametext
Eligible productsproduct_listDay counts come from each product's size and daily-use metafields. Refill intervals come from its selling plans.
Most picks from this steprange

Routine builder, morning pair

The same section set to two products, two steps, a 90-day fill line and a 5-day lead.

Files: sections/routine-builder.liquid

What the merchant can edit

Section settings

SettingTypeNotes
Small line above the headingtext
Headingtext
Textrichtext
Heading levelselectUse H1 when the builder is the page's main content (a dedicated routine page).
Anchor for linkstextLinks ending in #routine-builder scroll here.
Products per routinerange
Routine ticked on arrivalproduct_listA sensible starting routine, so the fill line shows straight away. Shoppers untick and swap freely. Leave empty to start blank.
Routine discount shownrangeDisplay only. Create the matching automatic discount in Discounts (see SETUP.md): a theme can't apply discounts.
Refills ship this many days before a bottle runs outrange
Fill line coversselect
Note under the buttontextarea[pct] becomes the discount.
Headingtext
Texttext[lead] becomes the lead time in days.
Step numbertext[n] is the step number.
Picked countertext[n] picked, [size] needed.
Counter when completetext
Purchase choice headingtext
One-time optiontext
One-time option detailtext
Refill optiontext
Refill option detailtext
Set pricetext
Refill savingtext
Routine discounttext[pct] becomes the discount.
Totaltext
Add buttontext
Add button in the mobile bartext
Add button after addingtext
Word after a day counttext
Refill ships columntext
Reorder column (one-time)text
Intervaltext[n] is the number of days.
Legend: refilltext
Legend: run-outtext
Table: product columntext
Table: lasts columntext
Table: runs-out columntext
Table: next columntext

Block: Step

SettingTypeNotes
Step nametext
Rule shown beside the nametext
Note under the nametext
Eligible productsproduct_listDay counts come from each product's size and daily-use metafields. Refill intervals come from its selling plans.
Most picks from this steprange

Before / after

A native range input drives the divider, so it works with arrow keys and screen readers. Images, labels and the Sample caption are settings; the store uses it to compare textures, never results.

Files: sections/before-after.liquid

What the merchant can edit

Section settings

SettingTypeNotes
Small line above the headingtext
Headingtext
Textrichtext
Left imageimage_picker
Left image description (alt text)text
Left labeltext
Right imageimage_pickerUse the same crop and size as the left image.
Right image description (alt text)text
Right labeltext
Divider starts atrange
Sample labeltextShown beside the caption. Required for stock or illustrative images.
Captiontext
Slider name for screen readerstext

Before / after, second setup

Different images, labels and starting position.

Files: sections/before-after.liquid

What the merchant can edit

Section settings

SettingTypeNotes
Small line above the headingtext
Headingtext
Textrichtext
Left imageimage_picker
Left image description (alt text)text
Left labeltext
Right imageimage_pickerUse the same crop and size as the left image.
Right image description (alt text)text
Right labeltext
Divider starts atrange
Sample labeltextShown beside the caption. Required for stock or illustrative images.
Captiontext
Slider name for screen readerstext

Ingredient table

Reads product metafields and metaobjects: key actives with % and what each does, pH or a pH note, a caution line and the full INCI list. Blank fields are skipped; with no data the section renders nothing.

Files: sections/ingredient-table.liquid

What the merchant can edit

Section settings

SettingTypeNotes
ProductproductLeave empty on product pages to use the product being viewed.
Small line above the headingtext
Headingtext[product] becomes the product title.
Textrichtext
Show the full INCI listcheckbox
Show pHcheckbox
Footnotetext
Actives table titletext
Ingredient columntext
Amount columntext
Role columntext
When no % is giventext
Sizetext
Cautiontext
INCI headingtext

Ingredient table, anhydrous product

An oil serum with no pH: the pH note metafield takes its place, and the caution line appears.

Files: sections/ingredient-table.liquid

What the merchant can edit

Section settings

SettingTypeNotes
ProductproductLeave empty on product pages to use the product being viewed.
Small line above the headingtext
Headingtext[product] becomes the product title.
Textrichtext
Show the full INCI listcheckbox
Show pHcheckbox
Footnotetext
Actives table titletext
Ingredient columntext
Amount columntext
Role columntext
When no % is giventext
Sizetext
Cautiontext
INCI headingtext

Free-shipping progress

A gauge-style progress bar for the free-shipping threshold. It reads /cart.js and updates on every cart change, announced politely to screen readers. The same snippet sits in the cart drawer.

Files: sections/shipping-progress.liquid

What the merchant can edit

Section settings

SettingTypeNotes
Headingtext
Free shipping from (store currency)numberMatch your free-shipping rate in Settings > Shipping and delivery.
Message below the thresholdtext[amount] becomes the amount left to spend.
Message at the thresholdtext

How refills work

Numbered steps as blocks, for explaining the refill model honestly.

Files: sections/refill-steps.liquid

What the merchant can edit

Section settings

SettingTypeNotes
Small line above the headingtext
Headingtext
Textrichtext
Link labeltext
Linkurl

Block: Step

SettingTypeNotes
Titletext
Textrichtext

Product cards with routine step, key active, a day-count gauge and the price inside the add button.

Files: sections/featured-products.liquid

What the merchant can edit

Section settings

SettingTypeNotes
Small line above the headingtext
Headingtext
Textrichtext
Productsproduct_listPick products here, or leave empty and choose a collection.
Collectioncollection
Products shownrange
Columns on desktopselect
Link labeltext
Linkurl

FAQ

Grouped questions as blocks, using native details and summary.

Files: sections/faq.liquid

What the merchant can edit

Section settings

SettingTypeNotes
Small line above the headingtext
Headingtext
Textrichtext

Block: Group heading

SettingTypeNotes
Headingtext

Block: Question

SettingTypeNotes
Questiontext
Answerrichtext
Open by defaultcheckbox

Ingredient glossary

Every entry of the Ingredient metaobject, with links to the products that contain it.

Files: sections/ingredient-glossary.liquid

What the merchant can edit

Section settings

SettingTypeNotes
Small line above the headingtext
Headingtext
Textrichtext
Found in labeltext
Good to know labeltext
Text when there are no entriestext

Your cart

Add $45.00 for free US shipping