- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to render an attribute, dependent on previous attribute selection?
Hi,
We sell adult and kids towels. Now they are available in different colors but each color has different quantity availability. Also the both sizes might not be available in same colors. Which means, i need to create 2 color attributes.. say adult towel colors and kids towel colors. Based on the size attribute selection, one of these attribute dropdowns should render. How do i do this? I saw somewhere that the "depends" tag can be used.. Can anyone suggest a solution?
Thanks, Abhishek
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to render an attribute, dependent on previous attribute selection?
you can achieve by configurable product
Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to render an attribute, dependent on previous attribute selection?
Hi Sunil.. thanks for the response..
yes i am doing it using configurable products only but unable to use conditional rendering.. that is, say if i select the adult towel size in the size attribute, i need to render the adult towel color attribute dropdown and not the kids towel color attribute dropdown..
How do i do that?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: How to render an attribute, dependent on previous attribute selection?
@Abhishek260 you need to use one color attribute you need to create different options
Like color attribute
Adult Red
Kids Red
Adult Pink
Kids Pink
And same for size
12m
14m
30 M
35 M
now when you create simple product use
Kids Red , 12 M and 14 M
Kids Pink 12 M and 14 M
Adult Red 20M and 35 M
Adult Pink 20M and 35 M
hope it will work for you
Problem solved? Click Kudos & Accept as Solution!
Sunil Patel
Magento 2 Certified Professional Developer & Frontend Developer