Hi everyone. How do I set up conditional data types / app data for a marketplace? In the example below, I’ve listed 2 Categories (Furniture and Lighting), and indented beneath them are 2 examples of potential filter options: (1) sub-categories and (2) materials (there will also be “Style”, “Manufacturer name”, etc. but I’m leaving them out for simplicity):
Furniture
(1) Table (2) Wood, Glass, Metal
(1) Chair (2) Wood, Cane
(1) Bed (2) Wood, Metal, Water
(1) Cupboard (2) Wood, Glass
Lighting
(1) Table (2) Ceramic, Glass
(1) Standard (2) Metal, Wood
(1) Drop (2) Metal
(1) Recessed (2) Metal
When a seller uploads a new item for sale, I want them to select options from dynamic drop-downs. So, in the product upload page, once they select Lighting, they should only see the subcategories for Lighting, not for Furniture. Likewise for materials. (similar logic for buyers filtering through the products available)
Going to Data Types tab > Custom Data Types, I created “Category” data type with a “Name” text field. I then went to the App Data tab and, under Category, I created new entries “Furniture” and “Lighting”. But I’m stuck on how to enter the 4 sub-categories for each Category, and also the master-list of materials options… and, finally, how to link all the data as appropriate.
Do I create separate Custom Data Types for “Materials”, “Style”, “Manufacturer name”, etc? And then specify sub-categories to each of them in the App Data Tab? Do I then create a Custom Data Type “Product” where the other Custom Data Types (Category, Materials, etc.) come together like:
How would I then specify which materials, styles, etc. are connected to each sub-category?
I imagine there’s a way for the administrator to specify data for each of these categories / sub-categories (?), and then specify which ones are connected. And only have to do this once.
Hope this makes sense. Appreciate your help!