Home Forums WoodMart support forum Make all swatches enabled and clickable

Make all swatches enabled and clickable

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #717931

    webdev-4670
    Participant

    Hello,
    I have a shop with variable products – some have two swatches variations, other have three – and I have enabled the color and text swaches.

    So, I have a question and a client request.

    My question is, in the screenshot I’m attaching, the brown color also has a variation with 34-34 (red marked), but with the selected options, I’m unable to select 34. If I change to color Black (it has all options available), then I can select 34 and then change the color.
    I understand the way it works, but is it possible that I can also change to 34-34 variation when Brown and 32 are selected?

    The client request is, if it’s possible, the colors will be always enabled and selectable.

    Any ideas on these matters would be much appreciated.

    Thank you.

    Attachments:
    You must be logged in to view attached files.
    #717957

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    This is default WooCommerce behavior.

    Attributes are dependent on valid variation combinations, so if a specific combination (Brown + 32 + 34) doesn’t exist in the product variations, it cannot be selected.

    Also, colors cannot always stay active unless valid combinations are created for them.

    Best Regards

    #717961

    webdev-4670
    Participant

    Hi,
    I get that. My issue here is that Brown 34-34 exists as a variation.
    Brown 32-34 and 34-32 don’t exist, so I guess that’s why it won’t let me select 34 when I have 3 selected.
    But, in this particular situation, it should let me select 34, since 34-4 exists.

    #717977

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Hello,

    You are correct that Brown 34‑34 exists as a variation, but WooCommerce still blocks 34 when Brown + 32 are selected because there is no variation for Brown + 32 + 34.

    WooCommerce builds available options by the full set of attributes (Color + Size 1 + Size 2). If any required attribute leads to a non‑existent variation, that option is grayed out. This is default behavior, not a bug.

    Best Regards

    #718261

    webdev-4670
    Participant

    Hello,
    I managed to achieve the desired behaviour by adding some custom jquery.

    You can consider the issure resolved and close the ticket.

    Thank you very much.

    #718295

    Aizaz Imtiaz Awan
    Keymaster
    Xtemos team

    Sounds Great! that your issue has been solved.

    I’m so happy to hear you are pleased with the Theme and Support. XTEMOS strives to deliver the best customer experience, and it makes our day to hear we have accomplished that.

    We count ourselves lucky to have you as a customer. You can always reach us at any time. We are always here to help you.

    Thanks for contacting us.
    Have a great day.

    Topic Closed.
    Best Regards.

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

The topic ‘Make all swatches enabled and clickable’ is closed to new replies.