Skip to content
VeladaTheme documentation
Support
Contents
Section 02

Before you start

Velada works out of the box, but its jewelry features read from data you add to your store: product metafields, a Metal metaobject, filters, and menus. Set them up once and every product page uses them.

What you need

DataWhat it turns onNeeded?
Product metafields velada.*Tagline, summary, availability, lead time, stone filter, engraving, Complete the setOptional. Each one turns on its own feature.
Metal metaobjectMetal swatches with two tones and a short descriptionOptional. Without it, options show as text buttons.
Shopify Search & Discovery appFilters on collections and search, and complementary products in the cartOptional. Free app made by Shopify.
Main menu with three levelsThe mega menu in the headerRecommended.

Product metafields

Velada uses nine product metafields, all in the namespace velada. Create only the ones you need. The namespace and key have to match the table exactly, or the theme won't find them.

Create the definitions

Settings›Metafields and metaobjects›Products

  1. In your Shopify admin, go to Settings › Metafields and metaobjects and click Products.
  2. Click Add definition.
  3. In Name, enter the name from the table (for example, Summary). You can use any name: customers don't see it.
  4. In Namespace and key, replace the generated value with the exact namespace and key from the table (for example, velada.resumen).
  5. Click Select type and choose the type from the table. For a list, choose the type and then switch One value to List of values.
  6. Click Save. Repeat for each metafield you want to use.
Namespace and keyNameTypeWhere it shows
velada.bajadaTaglineSingle line textUnder the title on the product page, and on Featured products cards
velada.resumenSummarySingle line textProduct cards, and the product card in Hero with light. Separate parts with a middle dot between spaces ( · ), for example Emerald · 18K yellow gold.
velada.estadoAvailabilitySingle line textAvailability block on the product page and the label on product cards, for example Ready to ship or Made to order
velada.plazoLead timeSingle line textNext to the availability, for example Ships in 4 weeks
velada.piedraStoneSingle line text, list of valuesThe Stone filter on collections and search
velada.piedra_textoAbout the stoneMulti-line textA collapsible row on the product page, once you set its Product metafield to velada.piedra_texto (see Product page)
velada.grabadoEngravingTrue or falseTurns on the Engraving block for that product
velada.grabado_maxEngraving limitIntegerCharacter limit for the engraving. 12 if empty.
velada.setComplete the setProduct, list of valuesThe Complete the set section on the product page

Fill them in for each product

  1. Go to Products and open a product.
  2. Scroll down to Metafields. Every definition you created shows there.
  3. Fill in the ones that apply to this product and click Save.
Good to know
  • If a metafield is empty, the theme hides the part that uses it. For example, a product without velada.estado and velada.plazo shows no availability line.
  • When a variant is sold out, the product page shows Sold out instead of the availability.
  • The engraving field takes up to the character limit you set (12 if empty).

Metal metaobject

On the product page, Velada shows metal options as round swatches in two tones, with a short line about the selected metal under them. That information comes from entries of a metaobject called Metal. Each entry matches an option value by its handle.

Step 1 · Create the Metal definition

Content›Metaobjects›Add definition

  1. In your Shopify admin, go to Content › Metaobjects and click Add definition.
  2. In Name, enter Metal.
  3. Shopify creates the type from the name (metal). Change the type to exactly velada_metal before you save. This is the name the theme looks for.
  4. Click Add field and add these four fields. Type each field label exactly as shown, in lowercase and with the underscore: Shopify creates the field key from the label, and the theme reads these keys.
    Field labelTypeWhat it does
    nombreSingle line textThe metal name. Mark it as required.
    color_claroColorLight tone of the swatch
    color_oscuroColorDark tone of the swatch. If empty, the swatch uses the light tone only.
    descripcionMulti-line textOne or two lines shown under the options when this metal is selected. Optional.
  5. Under Field options, set Display name to nombre.
  6. In Access, leave Storefronts selected.
  7. Click Save.

Step 2 · Add one entry per metal

  1. Go to Content › Metaobjects, open Metal, and click Add entry.
  2. In nombre, enter the metal exactly as it's written in your product option values, for example 18K Yellow Gold.
  3. Pick the two colors and, if you want, write the description. For example: Solid 18 karat gold, 75% pure gold.
  4. Check the entry's handle. Shopify creates it from the name, and it has to match the option value in lowercase, with hyphens instead of spaces and symbols (see the table below).
  5. Click Save. Repeat for each metal you sell.
Option value on the productEntry handle
18K Yellow Gold18k-yellow-gold
Yellow Gold 18Kyellow-gold-18k
Rose gold (18k)rose-gold-18k
Platinumplatinum

How the swatches are chosen

  • An option shows as swatches when at least one of its values has a Shopify swatch or a matching Metal entry with a color_claro value. Otherwise its values show as text buttons, like sizes.
  • For each value, Velada uses the first one it finds: a Shopify swatch image, then the Metal entry's colors, then a Shopify swatch color. With none of them, the swatch shows the first letter of the value.
  • The same Metal entries color the Metal filter on collections and search.
If you sell in more than one language

The theme looks for the Metal entry using the option value in the language the customer is viewing. If you translate option values (for example, 18K Yellow Gold to Oro amarillo 18 k), add one more entry for each translated value, with its own handle (oro-amarillo-18-k).

Filters

Collection and search pages use Shopify's native filters. Without any setup, they show Availability and Price. To add more, install the free Shopify Search & Discovery app.

Apps›Search & Discovery›Filters

  1. Go to Apps › Search & Discovery, click Filters, then Add filter.
  2. Click Source and choose what to filter by. Suggested for jewelry: Product type, the Metal product option, the Stone product metafield (velada.piedra), and Price.
  3. Optionally, change the Filter label customers see, then click Save.
  4. Drag the filters in the list to set their order.

The header turns your main menu into a mega menu. Top-level items show in the header. Second-level items become columns, and third-level items become the links in each column.

Content›Menus›Main menu

  1. Go to Content › Menus and open your main menu.
  2. Add the top-level items, for example Jewelry, Engagement, and The house.
  3. Add the column headings under a top-level item and drag them so they're nested below it, for example By type, By metal, and By stone.
  4. Add the links under each column heading and nest them one more level, for example Rings, Earrings, and Necklaces.
  5. Click Save menu. In the theme editor, choose this menu in Header › Menu.

You can also show an image with a heading and a link at the end of the mega menu. See Header and footer.