-
AuthorPosts
-
July 11, 2018 at 1:07 pm #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, 4 months ago by cpita.
July 12, 2018 at 5:21 am #984476Hey 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,
IsmaelJuly 12, 2018 at 5:27 am #984480well 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.
July 13, 2018 at 9:33 am #985051Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.