Skip to main content
All CollectionsKeystoneSections
Keystone: Product Comparison
Keystone: Product Comparison
Ryan avatar
Written by Ryan
Updated over 2 weeks ago

Summary


Product Comparison gives you the ability to compare details of individual products side by side.

โ€‹

Tips


  • To display the Product Comparison: Navigate to your template section > Click 'Add section' > Click 'Product Comparison'

Displaying custom data using metafields


Use the Metafield block to display custom data. This can be used to compare different properties or values of products in a side-by-side view. To do this follow the below steps

  1. Navigate to your Shopify admin and select Settings > Custom data

  2. Within the Metafield definitions click 'Products' and select 'Add definition'

  3. For this example we can use 'Weight'. Make sure the Namespace and key are labeled accordingly. For this example I chose: 'custom.weight'. Set the type to 'Multi-line text'.

  4. Within the Metaobject definitions click 'Add definition'. Set a name according to your metafield definition. For 'Type' select multi-line text and chose a name. For this example my metaobject key will be: 'weight.custom'.

  5. Navigate back to a product page within your Shopify admin, scroll to the bottom of the page. You should now see your 'Product metafields'. You can set the custom data within those fields.

  6. To display your custom data within your theme editor select the 'Product comparison' section > Add block > and select 'Metafield'.

    Use links below to save image.
  7. To display your custom data within your theme editor select the 'Product comparison' section > Add block > and select 'Metafield'.

    For more information see the attached screen shots below:

Screen shots

  • Navigating to custom data

Use links below to save image.
  • Adding a metafield definition

Use links below to save image.
  • Adding a metaobject definition

  • Add your text to the product metafields within your Shopify admin

    Use links below to save image.

Did this answer your question?