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

Variation Swatches Strike-thru Limit

Zsolt Bayor

hi, i’m the developer for diamondeclipsejewelry.com. have noticed the red X feature doesn’t always work. seems to be on products with hundreds of variations. thought the pro version has no limit on variations. please checkout SKU, as an example: DEJ-STRI-122107

thanks for your help. greatly appreciated!     : )

Golam Kibria

Hi Zsolt,

Please try adding the following snippet to your child theme’s functions.php file:

add_filter( 'woo_variation_swatches_global_ajax_variation_threshold_max', 'woo_variation_swatches_global_ajax_variation_threshold_max_edit', 10, 2 );

function woo_variation_swatches_global_ajax_variation_threshold_max_edit( $size, $product ){
return 700;
}

You can also use the Code Snippets plugin for adding the snippet.
Thank You