• Resolved jhez03

    (@jhez03)


    Hi there.

    I am creating a product with 2 Variations ( Black and White)
    then another variation for each color.
    For example: A user clicks on variation Black, then a new variation should appear below the black variation.
    Black
    -A1 Black
    -A2 Black
    -A3 Black
    Same goes for white. and the user should only be able to choose between black or white.
    I can’t seem to achieve that. Please guide me to the right direction.
    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello there,

    As an alternative solution you can combine variations with attributes, please check the tutorial below:

    How to Create Complex Variations

    I hope this points you in the right direction.

    Thread Starter jhez03

    (@jhez03)

    Hi, thank you for the quick response.
    So I checked the video, however it’s different to what I was aiming for.

    In the tutorial, you have to select at least 1 attributes to each variation in order to add it to cart.

    What I want is close from the tutorial, but I want the variation to be independent from each other.
    For example: I have 2 variations, Size and Color (black & white in my case) , I want the user to just select 1 variant from Size without the need of selecting another variants from Color.

    Hello @jhez03!

    I have 2 variations, Size and Color (black & white in my case) , I want the user to just select 1 variant from Size without the need of selecting another variants from Color.

    You can try the suggestions of this thread to accomplish this. ?? https://stackoverflow.com/a/67065952/10955218
    When you do that make sure to set the color as an optional attribute.

    Please note that we provide no warranty or support for custom code or 3rd party plugins (meaning we can not help you further with this code snippet). Use them at your own risk.
    **Also: Before you do that, please do make a full backup!**

    You can add this code to your child theme’s functions.php file or via a plugin that allows custom functions to be added, such as the Code Snippets plugin.

    I hope it helps.

    Thread Starter jhez03

    (@jhez03)

    Hello!

    Thank you for this. I think this is the one I’m looking for.
    I appreciate both your help.

    Cheers!

    Glad you found what you were looking for. ??

    I’m going to mark this thread as resolved.

    Feel free to create another topic if you have any other questions.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Nested Variation’ is closed to new replies.