• Resolved keith_hh

    (@keith_hh)


    This is a general question.

    On my product page I would like to show the following options:

    Gender (M/F)
    Gender specific sizing which varies according to gender selected but lets say S, M, L for men and 8, 10, 12 for women.

    On the order therefore would be a product, a gender selection and the appropriate size.

    There is only the one product, but obviously different sizing options for men or women so it makes no sense to have two products.

    In an earlier version of woocommerce I easily accomplished this out of the box as I recall by nesting attributes. Men would be the parent of mens sizing and so forth. The correct sizing would be shown based on the gender selected.

    In V3.3.3 its not obvious how to do the same thing and I can find no documentation indicating how it might be done, either cleanly or as a hack or a suitable plugin.

    Any clues on how to do this with V3+?

    Many thanks.

Viewing 1 replies (of 1 total)
  • Caleb Burks

    (@icaleb)

    Automattic Happiness Engineer

    I don’t believe this was ever supported in WooCommerce by default, there has never been a conditional attributes / parent system like that to my knowledge.

    To achieve this using just WC core, you would want one size attributes with terms for both men’s and women’s. So for example:
    Size: Men's Small | Men's Medium | Women's Small | Women's Medium | Unisex Medium etc,

    Then when the first attribute of either “M’ or “F” is selected, it will show the available sizes based on matching attributes. Or you could just scratch the first selection and let them pick any size off the bat.

Viewing 1 replies (of 1 total)

The topic ‘How can I have nested attributes’ is closed to new replies.