fbpx

Variation selection behavior

HomeTopicsSupport forumVariation selection behavior
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #16338
    Avatar
    BadChip
    Participant

    Currently if I select Size, all variations that are not available in that size will be disabled. Can this behavior be changed? I want variations to always be selectable and when selected either Reset the size attribute (if its not available in that size) or just keep same selected size if available.

    Please see attached screenshot for better understanding.

    Could you please advise?

    Thanks,

    Attachments:
    You must be logged in to view attached files.
    #16348
    Artem Temos
    Artem Temos
    Keymaster

    Hello,

    Sorry, but it is a default WooCommerce behavior and we can’t change it now. You can test it without our theme swatches and you will see the same workflow.

    Kind Regards

    #16378
    Avatar
    BadChip
    Participant

    Hi Artem,

    I understand but from what I observed, all this logic is being handled by variationsSwatches.js inside your theme. That class is the one responsible for disabling/enabling swatches. Isn’t that right?

    Also is there a safe way for me to edit that file? I’m afraid to edit and lose my changes after theme update.

    Any advice from you would be so helpful for me.

    Thanks,

    #16384
    Artem Temos
    Artem Temos
    Keymaster

    Hello,

    Yes, but this file simply transforms default dropdowns behavior into our swatches buttons. You can customize this file but it will be overridden if you update the theme.

    Kind Regards

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Sign in

No account yet?

Create an Account