Hide variations that don’t match

So I’m currently working on a Woocommerce store that has lots of variations.

What I’m basically looking for is for the next variation to refresh based on what was chosen on the variation chosen before that.

Read More

For example, if you go on http://freelance.tstwebdesign.co.uk/platino/product/plain-platinum-court/,
I want to choose a selection from “Width” which should then refresh “Depth” showing only the depths available that match with that width.

How can this be done?

Related posts

1 comment

  1. It’s default function for not many variations. For many variations you can do it with function

        // Woo Commerce – Make Variations only appear when available
    function custom_wc_ajax_variation_threshold( $qty, $product ) {
    return 500;
    }
    
    add_filter( ‘woocommerce_ajax_variation_threshold’, ‘custom_wc_ajax_variation_threshold’, 10, 2 );
    

Comments are closed.