I'm working on a product template that can display products of any type.
Various product types have varying numbers of variant fields each with their own options as other products. (All of my variant fields pull in other product types.)
I want to display each variant field's options as a separate dropdown on the product page.
Can I dynamically fetch the product's variant fields and field options in my product template? I would need, for a given product, to be able to get:
- Its product type's variant fields to loop through
- Each field's:
- Options (and I'd want the option of starting the option list with a "None" option)
- Or product type source(s), so that I could display those in an option list directly.