Skip to content
How to set up Product Variant Carousel?

How to set up Product Variant Carousel?

 

 

 

What is the Product Variant Carousel?

The Product Variant Carousel displays related product variants in an elegant, interactive horizontal carousel. Perfect for showcasing color variations, sizes, or related products with smooth scrolling, touch support, and automatic highlighting of the current product. Features momentum physics and responsive design for optimal user experience across all devices.

Step 1: Create Metafield Definition

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 Metafield (1 total)

Jhango Variant Collection

custom.jhango_variant_collection

Purpose: Collection handle containing related product variants.

Type: Single line text

Description: "Collection handle for related product variants carousel"

Example Value: "mens-athletic-shirts" (collection handle)

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: "collection-handle-name"
  4. Important: Use only the handle, not the full collection name
  5. Save product

Finding Collection Handles

  • Go to Products → Collections
  • Click on your collection
  • Look at the URL or "Collection handle" field
  • Use this exact handle in your metafield
  • Example: If URL is /collections/mens-shirts, use "mens-shirts"

Key Features

Usage Notes

  • Collection handle must exist and contain products
  • Current product is automatically highlighted as selected
  • Displays first word of product title as display name
  • Smooth scrolling with momentum physics
  • Touch/mouse drag support for mobile and desktop
  • Responsive grid layout (desktop/tablet/mobile)
  • Automatically handles product ordering (selected product in 2nd position)
  • Elegant hover effects and transitions
  • Mobile-optimized touch interactions

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: This shows how the metafield appears in your product's metafields section. You can see "mens-athletic-wear" entered as the collection handle.

Metafield definition setup for jhango_variant_collection showing single line text type

Creating Text Metafield: This screenshot shows the metafield definition setup with the "Single line text" type and the namespace "custom.jhango_variant_collection".

Frequently Asked Questions

What is a product variant carousel in Shopify?

A product variant carousel is an interactive display that showcases related products or variants in a horizontal scrolling format. It helps customers discover similar products, color variations, or complementary items while providing smooth navigation and touch support for an enhanced shopping experience.

Do I need coding experience to implement the variant carousel?

Basic implementation requires no coding experience. You'll create metafields through Shopify's admin interface and set collection handles for each product. However, adding the snippet to your theme templates may require basic HTML knowledge or developer assistance for integration.

Can I use different collections for different products?

Yes, absolutely! Each product can reference a different collection through its metafield. This allows you to create product-specific carousels - for example, a red shirt might show other colored shirts, while athletic shoes might show other athletic footwear.

How many products should I include in my variant collection?

For optimal performance and user experience, include 5-15 products in your variant collection. This provides enough variety without overwhelming customers or causing performance issues. The carousel handles any number of products, but 5-15 offers the best balance.

What happens if I don't set a collection handle for a product?

If no metafield value is set, the carousel will fall back to the default collection specified in the block settings. This ensures the carousel always displays content, even if product-specific collections aren't configured. You can set theme-wide defaults for consistency.

 

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