• Resolved ng-design

    (@ng-design)


    Hello all, I’m working to update a site running a very old copy of WooCommerce (version 2.6.14) to the newest 7x version.

    On the old site, I was able to set variable images for clothing (example, a shirt in red, green, and blue) with a second variable of sizes (S, M, L, XL). On the product page, you could select the colors from the dropdown and the image would automatically change. This no longer works in new WooCommerce versions. You have to select the color and the size, then the image will change.

    Other posts on this same topic mention that this is intentional, it’s the way Woo functions now. The only workaround seems to be paying for third-party plugins to change it to the old behavior.

    Is there a reason the feature is no longer part of the core install? I’m surprised to see it’s no longer supported as part of the software. Is there code I can add to the child theme files or functions.php? Thank you.

    • This topic was modified 1 year, 10 months ago by ng-design.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Saif

    (@babylon1999)

    Hello @ng-design,

    All variations need to be selected for the image to change, this is the normal behaviour of the plugin.

    In your case, I will recommend adding a default size value so customers just need to switch colours for the image to change.


    Link to image: https://d.pr/i/FXBXDs

    You can also find many snippets online to change this behaviour like this one, but please note that customization is not within our scope of support. If you’re looking for someone to help you with a custom solution, consider hiring a WooExpert.

    Hope this helps!

    Thread Starter ng-design

    (@ng-design)

    Hello @babylon1999, thanks for your recommendations. I will try the snippet you referenced and/or may choose the default size to be selected. Out of curiosity, are you aware of why WooCommerce did away with this behavior from the version 2x software? It used to be a built-in feature and it’s so incredibly useful. I’d love your insight. Thank you.

    Saif

    (@babylon1999)

    Out of curiosity, are you aware of why WooCommerce did away with this behavior from the version 2x software?

    WooCommerce is an open-source plugin, anyone can contribute to the code.

    I checked the channel log and previous pull requests but couldn’t locate when this happened.

    Usually there’s a detailed explanation of the change made in each pull request.

    If you’re interested to know why the team approved it I invite you to check the links above. ??</img>

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Variable Product Images’ is closed to new replies.