1

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:

  1. Its product type's variant fields to loop through
  2. Each field's:
    1. Options (and I'd want the option of starting the option list with a "None" option)
    2. Or product type source(s), so that I could display those in an option list directly.
1

It looks like I'm trying to use variants the way options can be used. I'm going to go with options.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.