Configurar Apparel
Algumas seções do Apparel leem dados que você guarda nos produtos: a data de um drop, uma fórmula, um caimento. Um tema não consegue criar essa estrutura por você, então esta página lista cada definição que o tema lê, exatamente como a Shopify pede. Ela é gerada a partir do próprio tema, então nunca pede uma que o tema não lê mais.
Nesta ordem
- Crie primeiro as definições de metaobjetos, em Configurações → Dados personalizados → Metaobjetos, com os campos listados abaixo. Os metacampos de produto que listam entradas apontam para elas.
- Crie as definições de metacampos em Configurações → Dados personalizados → Produtos (e Variantes, quando a tabela indicar), com o namespace e a chave exatamente como estão escritos e o tipo indicado.
- Preencha-os em cada produto, no painel Metacampos no fim da página do produto no admin da Shopify.
- Abra o editor de temas. As seções que os leem mostram os dados na hora; uma seção que ainda não tem nada a mostrar diz o que falta, só no editor.
Metaobjetos a criar
O tipo deve ser exatamente igual; o nome é seu. Dê acesso da loja virtual a cada definição, ou o tema não consegue ler as entradas.
FAQ faq
A question and its answer, for Collapsible content set to read entries.
questionSingle line textsingle_line_text_fieldObrigatórioanswerRich textrich_text_fieldObrigatório
Testimonial testimonial
A quote, for Testimonials set to read entries.
quoteMulti-line textmulti_line_text_fieldObrigatórioauthorSingle line textsingle_line_text_fieldOpcionaldetailSingle line textsingle_line_text_fieldOpcionalimageFilefile_referenceOpcionalsourceSingle line textsingle_line_text_fieldOpcional
Logo logo
A logo, for Logo list set to read entries.
imageFilefile_referenceObrigatóriolinkURLurlOpcional
Icon item icon_item
One promise with an icon, for Icon bar set to read entries.
headingSingle line textsingle_line_text_fieldObrigatórioiconSingle line textsingle_line_text_fieldOpcionalimageFilefile_referenceOpcionaltextMulti-line textmulti_line_text_fieldOpcional
Metacampos a criar
O namespace e a chave devem ser exatamente iguais. Dê acesso da loja virtual a cada definição, ou o tema não consegue lê-la.
hullara.drop_numberEm produtosSingle line text
single_line_text_fieldThe drop's number — 014 — on the release board, the hero, the card and the product page.
hullara.drop_opens_atEm produtosDate and time
date_timeWhen the drop opens. Before it, the product reads "Opens …" with a countdown and a reminder form instead of a buy button.
hullara.restockEm produtosTrue or false
booleanMarks a drop that comes back, so the board says "Restock" rather than a new number.
hullara.accentEm produtosColor
colorThe product's own color, behind its card or a bento tile when those settings ask for it.
hullara.colourwaysEm produtosProduct (list of products)
list.product_referenceThe other colors of a product, when each color is a product of its own; Colorways links them.
hullara.colourwayEm produtosSingle line text
single_line_text_fieldThis product's own color name in that list.
hullara.badgeEm produtosSingle line text
single_line_text_fieldA word on the product's card — Organic, New — in every language: translate it in Translate & Adapt. A badge:Organic tag reads the same in every language, because Shopify does not translate tags.
hullara.ships_onEm produtosDate
dateA pre-order date: the delivery estimate counts from it rather than from today.
custom.fitEm produtosInteger
number_integerWhere the product sits on the fit scale, from -2 (runs small) to 2 (runs large).
custom.lastsEm variantesSingle line text
single_line_text_fieldHow long the chosen size lasts — "about six months" — under the size buttons.
Escritos por um app
Estes você não cria: o app indicado os preenche, e o tema os lê quando isso acontece.
reviews.rating— Stars on the product page and in testimonials. (a reviews app)reviews.rating_count— How many reviews the stars stand for. (a reviews app)shopify--discovery--product_recommendation.complementary_products— The products a bundle or "Pairs well with" offers when set to complementary. (the Search & Discovery app)