Setting Up Collection Hierarchy

Shopify collections do not support hierarchy. Each merchant can define their own structure using metafields.
To learn more about category hierarchy, check out the XML feed documentation on category hierarchy.

Step 1: Add a "Parent" Metafield to Collections

In your Shopify admin, go to Settings > Custom data > Collections then:

  • Add a new metafield definition
  • Name: Parent (or similar)
  • Namespace and key: custom.parent (or a key of your choice)
  • Type: Collection

Step 2: Fill in Parent Relationships

For each collection, enter the handle (or ID) of the parent collection in the Parent metafield.

  • Top-level collections should have an empty parent
  • Subcategories should refer to their respective parent

Step 3: Include the Parent Field in Your Tweakwise Feed

Make sure your feed includes this Parent value for each collection that has it configured. This enables Tweakwise to interpret and apply the hierarchy.

If you're using a custom feed or feed generation app, map the metafield custom.parent to the parent field in your category data.

Notes

  • You can structure categories however you like, Tweakwise will still work without a hierarchy.
  • A good hierarchy improves the in-app user experience and allows you to use category-related features more effectively.