I am having following category structure.
Category 1
Category 2
Category 3
- Category 3.1
- Category 3.1.1
- Category 3.1.2
- Category 3.1.3
- Category 3.1.4
- Category 3.1.5
- Category 3.2
- Category 3.2.1
- Category 3.2.2
- Category 3.2.3
- Category 3.2.4
- Category 3.2.5
- Category 3.3
- Category 3.3.1
- Category 3.3.2
- Category 3.3.3
- Category 3.3.4
- Category 3.3.5
Category 4
In my layered navigation I need this as follows:
Category 3.1 (attribute)
- Category 3.1.1 (options)
- Category 3.1.2 (options)
- Category 3.1.3 (options)
- Category 3.1.4 (options)
- Category 3.1.5 (options)
Category 3.2 (attribute)
- Category 3.2.1 (options)
- Category 3.2.2 (options)
- Category 3.2.3 (options)
- Category 3.2.4 (options)
- Category 3.2.5 (options)
I need to make this dynamically and programmatically.
Please let me know how to achieve this.