Home Forums WoodMart support forum WoodMart Product Variation Error

WoodMart Product Variation Error

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

    www.cidev.ro
    Participant

    Hello,
    I have a problem with variations on the variable products. When I choose to set 30 variations on product, the product displays correctly the product variation with the color and gallery for each product per variation. But when I choose to set 33 variations, the color picker does not show the images in the gallery for each color of the product. Can you please tell me what is the problem? Thank You!

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

    Artem Temos
    Keymaster

    Hello,

    Yes, WooCommerce handles attributes differently when your product has a lot of variations (more than 30). If you want, you can increase this threshold to any number by adding the following code snippet to the functions.php file in your child theme

    function custom_wc_ajax_variation_threshold( $qty, $product ) {
    	return 100;
    }
    
    add_filter( 'woocommerce_ajax_variation_threshold', 'custom_wc_ajax_variation_threshold', 10, 2 );

    Regards

    #226903

    www.cidev.ro
    Participant

    Thank you very much! 😀

    #226915

    Artem Temos
    Keymaster

    You are welcome!

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

The topic ‘WoodMart Product Variation Error’ is closed to new replies.