Added

Retail Menus - Category Hierarchy Support

Retail catalogs commonly use hierarchical category structures to organise products into logical sections to improve navigation.

Previously, our generic menu model exported only the lowest category level containing products. A new channel setting is now available to "Include full category hierarchy" which preserves the complete category structure within the existing generic menu model, listing child category ids within a "subCategories" array.

See example below;

{
  "menu": "Nested Categories Sample",
  "categories": [
    {
      "_id": "cat1",
      "name": "Toiletries",
      "subCategories": ["cat2"],
      "subProducts": []
    },
    {
      "_id": "cat2",
      "name": "Oral Care",
      "subCategories": ["cat3"],
      "subProducts": []
    },
    {
      "_id": "cat3",
      "name": "Toothpaste",
      "subCategories": [],
      "subProducts": [
        "prod1",
        "prod2"
      ]
    }
  ]
}