fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Swatches Aren’t Hiding

When I select “Hide” under “Disabled Attribute style”, it stills keeps everything visible even though there isn’t an option for it. Also, the “Clear on Reselect” isn’t selected, but it still shows the “Clear” button on the product page.

Hakik Zaman

Hi Nicholas,

Please add the below snippet using Code Snippets Plugin

add_filter( 'woocommerce_ajax_variation_threshold', 'woo_variation_swatches_global_ajax_variation_threshold_min', 10, 2 );

function woo_variation_swatches_global_ajax_variation_threshold_min( $size, $product ){
return 60;
}

Also, the “Clear on Reselect” isn’t selected, but it still shows the “Clear” button on the product page.

Clear on Reselect is not related to the “Clear” button. A clear button is the basic feature of WooCommerce itself.

Thank You