Hide options that do not match Woocommerce

So, I am currently working in a Woocommerce store that has many options.

What I'm mostly looking for is the next update option based on what was selected for the selected option.

For example, if you go to http://freelance.tstwebdesign.co.uk/platino/product/plain-platinum-court/ (Sorry for the slow loading time) I want to choose a choice from "Width", which then should update "Depth ", showing only the available depths corresponding to this width.

Is it possible?

Thank!

+4
source share
1 answer

.

    // 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 );
0

All Articles