• I would like to have several selects for my product which are filtered dynamically. For example, if I choose size 4, I want the width to be 6,7 and 9 (or other values that are related with the size 4).

    It doesn’t happen right now and I think that the problem is because the data-product_variations doesn’t show any data, in the HTML it just says false. My variations are valid and showing in the front-end, but when I select a combination that is not created it sends a message of error:

    View post on imgur.com

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @kevinmamaqi,

    I would like to have several selects for my product which are filtered dynamically. For example, if I choose size 4, I want the width to be 6,7 and 9 (or other values that are related with the size 4).

    What’s happening is that when you go over a certain limit of variations, WooCommerce will instead just display every option instead of dynamically which ones should be available. This is a performance thing, as dynamically loading so much data can be a potential problem.

    If you want, you can increase the limit using a function like this:

    add_filter( 'woocommerce_ajax_variation_threshold', 'marce_wc_inc_ajax_threshold' );
    function marce_wc_inc_ajax_threshold() {
        return 50;
    }

    You would need to put this into your theme’s functions.php file below an opening <?php tag.

    Yes, This solution works for me too.

    Thanks.

    unstablenet

    (@unstablenet)

    Thanks a lot Mikey!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WooCommerce data-product_variations=”false” Doesnt show autmatically’ is closed to new replies.