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
| Data | What it turns on | Needed? |
|---|---|---|
Product metafields velada.* | Tagline, summary, availability, lead time, stone filter, engraving, Complete the set | Optional. Each one turns on its own feature. |
| Metal metaobject | Metal swatches with two tones and a short description | Optional. Without it, options show as text buttons. |
| Shopify Search & Discovery app | Filters on collections and search, and complementary products in the cart | Optional. Free app made by Shopify. |
| Main menu with three levels | The mega menu in the header | Recommended. |
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
- In your Shopify admin, go to Settings › Metafields and metaobjects and click Products.
- Click Add definition.
- In Name, enter the name from the table (for example, Summary). You can use any name: customers don't see it.
- In Namespace and key, replace the generated value with the exact namespace and key from the table (for example,
velada.resumen). - 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.
- Click Save. Repeat for each metafield you want to use.
| Namespace and key | Name | Type | Where it shows |
|---|---|---|---|
velada.bajada | Tagline | Single line text | Under the title on the product page, and on Featured products cards |
velada.resumen | Summary | Single line text | Product cards, and the product card in Hero with light. Separate parts with a middle dot between spaces ( · ), for example Emerald · 18K yellow gold. |
velada.estado | Availability | Single line text | Availability block on the product page and the label on product cards, for example Ready to ship or Made to order |
velada.plazo | Lead time | Single line text | Next to the availability, for example Ships in 4 weeks |
velada.piedra | Stone | Single line text, list of values | The Stone filter on collections and search |
velada.piedra_texto | About the stone | Multi-line text | A collapsible row on the product page, once you set its Product metafield to velada.piedra_texto (see Product page) |
velada.grabado | Engraving | True or false | Turns on the Engraving block for that product |
velada.grabado_max | Engraving limit | Integer | Character limit for the engraving. 12 if empty. |
velada.set | Complete the set | Product, list of values | The Complete the set section on the product page |
Fill them in for each product
- Go to Products and open a product.
- Scroll down to Metafields. Every definition you created shows there.
- Fill in the ones that apply to this product and click Save.
- If a metafield is empty, the theme hides the part that uses it. For example, a product without
velada.estadoandvelada.plazoshows 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
- In your Shopify admin, go to Content › Metaobjects and click Add definition.
- In Name, enter Metal.
- Shopify creates the type from the name (
metal). Change the type to exactlyvelada_metalbefore you save. This is the name the theme looks for. - 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 label Type What it does nombreSingle line text The metal name. Mark it as required. color_claroColor Light tone of the swatch color_oscuroColor Dark tone of the swatch. If empty, the swatch uses the light tone only. descripcionMulti-line text One or two lines shown under the options when this metal is selected. Optional. - Under Field options, set Display name to
nombre. - In Access, leave Storefronts selected.
- Click Save.
Step 2 · Add one entry per metal
- Go to Content › Metaobjects, open Metal, and click Add entry.
- In
nombre, enter the metal exactly as it's written in your product option values, for example 18K Yellow Gold. - Pick the two colors and, if you want, write the description. For example: Solid 18 karat gold, 75% pure gold.
- 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).
- Click Save. Repeat for each metal you sell.
| Option value on the product | Entry handle |
|---|---|
| 18K Yellow Gold | 18k-yellow-gold |
| Yellow Gold 18K | yellow-gold-18k |
| Rose gold (18k) | rose-gold-18k |
| Platinum | platinum |
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_clarovalue. 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.
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
- Go to Apps › Search & Discovery, click Filters, then Add filter.
- 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. - Optionally, change the Filter label customers see, then click Save.
- Drag the filters in the list to set their order.
Menus for the mega menu
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
- Go to Content › Menus and open your main menu.
- Add the top-level items, for example Jewelry, Engagement, and The house.
- 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.
- Add the links under each column heading and nest them one more level, for example Rings, Earrings, and Necklaces.
- 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.