Problem with variations (didn't allow to have over 20 variations)

This topic has 2 replies, 2 voices, and was last updated 8 years, 7 months ago ago by Eva Kemp

  • Avatar: Konsonans
    Konsonans
    Participant
    September 2, 2015 at 08:25

    Hi,

    I install Blanco Theme and Woocommerce. I have a problem because woocommerce didn’t allow us to have over 20 variations in one product. I upload woocommerce/single-product/add-to-cart/variable.php version 2.4, after update to 2.4 the product show all the variations, but showing all variation option, for exemple :
    I have 1 product in 6 variations: 1x, 1y, 1z, and 2a 2b 2c, when I chose variation from 1 wordpress show me otion x, y, z, a, b c, not only x, y, z. Can you helm mw with this?

    1 Answer
    Avatar: Eva
    Eva Kemp
    Support staff
    September 2, 2015 at 12:15

    Hello,

    Please refer to this article:
    https://woocommerce.wordpress.com/2015/07/13/improving-the-variations-interface-in-2-4/
    and try to use this code in functions.php file:

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

    Regards,
    Eva Kemp.

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.