Home › Forums › WoodMart support forum › Swatches not working correctly
Swatches not working correctly
- This topic has 13 replies, 3 voices, and was last updated 4 years, 5 months ago by Artem Temos.
-
AuthorPosts
-
July 11, 2020 at 1:36 pm #210154
dimathParticipantHello, when a product has more that two variations the swatches do not appear as an image but only as a word and they do not work properly.
Please check the video.
July 11, 2020 at 3:09 pm #210162
Elise NoromitMemberHello,
Please provide the site admin access to the private area.
Best Regards
July 13, 2020 at 9:19 am #210364
dimathParticipantPlease check. This is a clone of the website.
July 13, 2020 at 10:25 am #210389
Elise NoromitMemberHello,
Please deactivate this plugin and check variation Variation Swatches for WooCommerce
Best Regards
July 13, 2020 at 2:48 pm #210473
dimathParticipantI have deactivated the plugin you mention and the issue remains. This happens when there are many color variations in a product. Please check the screenshot.
Attachments:
You must be logged in to view attached files.July 14, 2020 at 7:35 am #210676
Elise NoromitMemberHello,
You need to set the color and image in all the attribute items: https://prnt.sc/thdme6 Please check this instruction on how to configure swatches: https://xtemos.com/docs/woodmart/variable-products-swatches/
Best Regards
July 14, 2020 at 1:16 pm #210822
dimathParticipantAs you should have noticed we do not use colors but image variations, it works for all the products that have a few color variations but not for those that have too many. Could you please check and give me a responsibe answer because we loose time and the live site does not work as it should.
July 14, 2020 at 6:07 pm #210890
Elise NoromitMemberHello,
I check this product ipanema-780-20322/
I have found color Μαύρο I have added an image https://prnt.sc/thqg47 and you can see it works https://prnt.sc/thqgfh
You need to add image to all attribute items. It will work no matter if a variable product has a lot of variations.
Best Regards
July 14, 2020 at 6:23 pm #210898
dimathParticipantCould you please clarify? The attribute ΜΑΥΡΟ is common to other shoes of the eshop. How is it possible to use a single image of a product in an attribute that works for several products? Every variation has its own image that is why we have selected to show variation images at swatches instead of colors. It works for all the other products of the eshop whose attributes do not have an image or color at the attribute settings as you say. How is it possible to do something like that? It does not even make sense.
July 15, 2020 at 7:27 am #211045
Artem TemosKeymasterHello,
We are sorry that you faced difficulties working with our theme.
But the solution is quite simple. Each attribute term like MAYPO, require default image uploaded via Dashboard -> Products -> Attributes -> configure terms. Otherwise, they will be displayed as text. https://prnt.sc/thqg47
It is how our theme works and this default image is required even if you use images from product variations.
Even if this color is common, you will be able to override this default image for each product with the image from their variation. So just upload some “common” image preview for this color in Products -> Attributes and then override it with each product image uploading them to variations.Hope this clear for you and you can remove your negative review about our theme on ThemeForest.
Thank you for understanding.
Kind Regards
July 15, 2020 at 3:52 pm #211327
dimathParticipantIf this is how your theme works could you please explain to me why all the attributes are working without an image for other shoes in the site? This is an issue that did not exist in the beginning, and we have never used images in attributes. Please check the video if this was the case none of the products would have image variation swatches in product page. Also check some of the other products that show the variation swatches with image in the product page.
July 15, 2020 at 4:21 pm #211341
Artem TemosKeymasterOn your video you showed colors, but could you please send us a link to the product where we can see these colors used? We will check this, but this mechanism is how it worked from the beginning and we didn’t change anything there.
July 15, 2020 at 7:21 pm #211401
dimathParticipantPlease check the video. And the product of the url as an example.
July 16, 2020 at 6:29 am #211477
Artem TemosKeymasterHave you customized anything in WooCommerce in our theme? We see that some WooCommerce value is changed.
Try to add the following code to the functions.php in your child theme.
function custom_wc_ajax_variation_threshold( $qty, $product ) { return 200; } add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 10, 2 );
Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register