• Resolved kreativamarketing

    (@kreativamarketing)


    I am creating a product and I need some product fields to appear conditionally.
    I have a shirt, and the customer can choose between sizes and characters they want on their shirt.
    Depending on the character they choose, another variation select will appear in which they can choose the shirt color design.
    For example, if they choose character x, black and red, green and grey colors will be able to be selected. If they choose character y, blue, yellow and white colors will be available.

    How can i make conditional fields on woocommerce?

Viewing 2 replies - 1 through 2 (of 2 total)
  • seank123

    (@seank123)

    This is the way attributes and variations works as standard.

    You need to set up two attributes: Character and Color
    Then you create new variations:

    Character X – Black
    Character X – Red
    Character Y – Blue
    Character Y – Yellow etc

    So, you need a variation for each character/color choice.

    When the customer selects Character X, then only the colors you’ve added will be selectable.

    Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there,

    We haven’t heard back from you in a while, so I’m going to mark this thread as resolved. There’s additional information about setting up Variable products here:
    https://docs.woocommerce.com/document/variable-product/

    Alternatively, if you want certain fields to only be displayed based on other options selected (rather than having available options based on other selected options), then perhaps you would be interested in the Gravity Forms Product Add-ons extension at the link below. It allows conditional logic in add-on fields. Please note though: while variable products would allow tracking each variation, the product add-ons would not track inventory separately for each add-on option.
    https://woocommerce.com/products/gravity-forms-add-ons/

    Have a wonderful day!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Conditional product fields’ is closed to new replies.