Home Forums Plugins WooCommerce Product Variations Swatches Out-of-stock not working if over 30 variations

Out-of-stock not working if over 30 variations

  • Author
    Posts
  • #138000

    sanna julkunen
    Participant

    Hi!

    If the product has more that 30 variation, the out-of-stock (X over picture) does not work. It might be an Ajax problem. I use theme Astra and ajax filters. I tried this function, but it did not help.

    function iconic_wc_ajax_variation_threshold( $qty, $product ) {
    return 50;
    }

    add_filter( ‘woocommerce_ajax_variation_threshold’, ‘iconic_wc_ajax_variation_threshold’, 10, 2 );

    Sanna

You must be logged in to see replies to this topic. Click here to login or register