Skip to content

How to setup Variant Collection Display Snippet?

 

 

 

What is Variant Collection Display?

The Variant Collection Display snippet allows you to showcase related products from a specific collection directly on your product pages. Perfect for displaying product variants, complementary items, or related products in a customizable grid layout with modern styling and responsive design.

Step 1: Create Metafield Definitions

Creation Instructions

  1. Go to Shopify Admin → Settings → Metafields → Products
  2. Click "Add definition"
  3. Create each metafield with the specifications below
  4. Set Type to "Single line text"
  5. No validation required

Required Metafields (1 total)

Jhango Variant Collection

custom.jhango_variant_collection

Purpose: Collection handle for displaying related product variants

Type: Single line text

Description: "Collection handle for displaying related product variants"

Example Value: "mens-shirts-collection"

Step 2: Set Metafield Values

How to Set Values

  1. Navigate to Products → Select Product → Metafields section
  2. Find "Jhango Variant Collection" field
  3. Enter the collection handle (e.g., "summer-collection")
  4. Save product

How to Find Collection Handles

  • Go to Shopify Admin → Products → Collections
  • Click on your desired collection
  • The handle is shown in the URL and in the collection settings
  • Example: If URL is /collections/summer-dresses, the handle is summer-dresses

Key Features

Usage Notes

  • Keep collection handles short and descriptive
  • Use consistent naming conventions across collections
  • Test collections have sufficient products (minimum 3-6 items)
  • Ensure product images are high quality and consistent sizing
  • Grid Layout: Configure items per row for desktop/tablet/mobile
  • Card Styling: Customize borders, shadows, and background colors
  • Typography: Adjust font sizes, weights, and colors
  • Spacing: Control padding and margins between items
  • Image Settings: Set image aspect ratios and border radius

Visual Guide: Setting Up Metafields

Step-by-Step Screenshots

Here's exactly how the metafields look when you're setting them up in Shopify:

Shopify metafields interface showing jhango_variant_collection field

Product Metafields View: In your product's metafields section, you'll see the "Jhango Variant Collection" field where you can enter the collection handle, such as "summer-collection" or "product-variants".

Metafield definition setup for jhango_variant_collection showing single line text list type

Creating Benefits Metafield: This screenshot shows the metafield definition setup for the Benefits Grid. Note the "Single line text (List)" type and the namespace "custom.jhango_benefits".

Frequently Asked Questions

What is a Variant Collection Display?

A Variant Collection Display is a visual component that shows related products from a specific Shopify collection on your product pages. It helps customers discover similar items, product variants, or complementary products, increasing engagement and potential sales.

Do I need coding experience to implement this?

No coding experience is required for basic setup. The tutorial guides you through creating the metafield using Shopify's admin interface and setting collection handles for each product. However, adding the snippet to your theme templates may require basic HTML knowledge or developer assistance.

Can I use different collections for each product?

Yes, absolutely! Each product can display a different collection through its metafield value. This allows you to show product-specific variants, related items, or category-specific collections tailored to each product.

What happens if I enter an invalid collection handle?

If you enter a collection handle that doesn't exist, the snippet will fall back to the default collection specified in the block settings. It's important to verify that your collection handles are spelled correctly and that the collections exist and are published.

How many products will be displayed from the collection?

The number of products displayed depends on your block settings configuration. You can customize the grid layout to show different numbers of items per row for desktop and mobile devices. The snippet will display products from the collection based on your grid settings.

What if a collection is empty or has no products?

If a collection is empty or all products are unpublished, the snippet will simply not display any items. It's recommended to ensure your collections have at least 3-6 published products for the best visual impact.

Can I show products from multiple collections?

No.

 

 

Cart (0)

10% OFF for your first order. Use code NEW10

Your cart is currently empty

Thirste Shopify Theme

Market Luxe Shopify Theme

Gymwolf Shopify Theme

The Malkin Shopify Theme

The Omcarat Shopify Theme

The Street Shopify Theme

The Matcha Shopify Theme

Candy Man Shopify Theme

Wishlist

Thirste Shopify Theme

Market Luxe Shopify Theme

Gymwolf Shopify Theme

The Malkin Shopify Theme

The Omcarat Shopify Theme

The Street Shopify Theme

The Matcha Shopify Theme

Candy Man Shopify Theme

Recently Viewed

Thirste Shopify Theme

Market Luxe Shopify Theme

Gymwolf Shopify Theme

The Malkin Shopify Theme

The Omcarat Shopify Theme

The Street Shopify Theme

The Matcha Shopify Theme

Candy Man Shopify Theme