Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #984206

    Hello, I have the enfold theme, everything is updated to latest version and I have it on product gallery woocommerce 3.0 product gallery appearance via enfold settings. Please see the link, it takes you to a women’s solid long sleeve polo with 13 different colors you can choose. If you choose the color first, it will not change the picture to the corresponding photo. If you choose the color and then the size, it does change to the corresponding photo with that color. How can I make it so when the customer first selects the color first, it changes to reflect the selected color?

    At the current moment, if customer selects color variation first, the color photo with model will not reflect her selection, it simply does not show and stays on default photo. Trying to see if there is a way to fix without having to select size first.

    Thanks,

    Carlos

    • This topic was modified 6 years, 2 months ago by cpita.
    #984476

    Hey Carlos,

    Thank you for using Enfold.

    Have you tried to create a product variation using the color attributes only without the size attributes? It doesn’t work when you select a single attribute because a product variation does not exist which contain that attribute.

    Best regards,
    Ismael

    #984480

    well the thing is the following, the style comes in 13 different colorways and available in sizes xs,s,m,l,xl,xxl so I would need to include option to select color and option to select sizes.

    #985051

    Hi,

    Looks like the image won’t change unless all fields are selected. This is one of the conditions in the “add-to-cart-variation.js” file.

    if ( attributes.count === attributes.chosenCount ) {
    

    The “attributes.count” is the number of attributes select field and the “attribute.chosenCount” is the number of currently selected attributes. The image won’t update unless these two variables have the same value so you have to select all attribute before the image will update. Unfortunately, there’s no easy way to get around that without updating the whole script.

    Please contact the Woocommerce team for more info.

    Best regards,
    Ismael

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.