Select Field: Group Category options based on level of category
Hello, I would like to create a Select Field to display categories of products, but i want them to make sense visually like this:
- Category 1
-- SubCategory 1-1
-- SubCategory 1-2
- Category 2
-- Sub Category 2-1
-- Sub Category 2-2
-- Sub Category 2-3
and so on..
Each Category has a parent_id, pointing to the parent category.
Any ideas ? I didn't see any reference in the docs
Thank you in advance!
1 Reply
Is there a solution for this?