Compare feature [Test Collection]

HOW TO SETUP COMPARE FEATURES ON PRODUCTS AND VARIANTS

  1. The product (no variants) and product variants must have unique SKU codes
  2. The product/product variant options will automatically be compared

CUSTOM FEATURES

  1. Create a metaobject
  2. Create a product/variant level metafield
  3. Add the metaobject to the product metafield in the admin product page
  4. In the theme customizer > Theme settings > Product specifications > Metafields, add the Title and Metafield key

Video reference

Define the attributes to be compared between products using the following format:
Title: metafield_key (product level specification)
$Title: metafield_key (variant level specification)

Example: 
Pays d'origine: spa_origine
$Formats: chimique_formats

The Title is used as the row’s heading, while the metafield_key defines the source metafield's key. The namespace is always assumed to be 'custom'.

Each attribute must be on it’s own line.

Prefix the line with a '$' to signify that this is a variant level metafield.
Filter & Sort
Sort
Filter
Reset
Product Type
Brand
Price
Availability
Sale
Nouveau
Compare Feature 3
Compare Feature 3

Compare Feature 3

Compare feature
Regular price $3.55
Sale price $3.55 Regular price $4.20
Sale
Nouveau
Compare Feature 2 [Test Product]
Compare Feature 2 [Test Product]
Compare Feature 2 [Test Product] Compare Feature 2 [Test Product] Compare Feature 2 [Test Product] Compare Feature 2 [Test Product] Compare Feature 2 [Test Product] Compare Feature 2 [Test Product] Compare Feature 2 [Test Product] Compare Feature 2 [Test Product] Compare Feature 2 [Test Product]

Compare Feature 2 [Test Product]

Compare feature
Regular price From $3.55
Sale price From $3.55 Regular price $4.20
Sale
Nouveau
Compare Feature [Test Product]
Compare Feature [Test Product]
Compare Feature [Test Product] Compare Feature [Test Product] Compare Feature [Test Product] Compare Feature [Test Product] Compare Feature [Test Product] Compare Feature [Test Product] Compare Feature [Test Product] Compare Feature [Test Product] Compare Feature [Test Product]

Compare Feature [Test Product]

Compare feature
Regular price From $3.55
Sale price From $3.55 Regular price $4.20
Showing 3 of 3