• I yould like to use the plugin together with another plugin called “WPC Product Bundles”
    Unfortunately if I include a variable prduct in the bundle, the swatches appear but if I click on any option, the following woocommerce message appears: “Sorry, no products matched your selection. Please choose a different combination”

    Disabling “Woo variation swatches” on this specific product page would also be a good solution for me.
    I tried the following code, but no success:

    add_filter( 'option_active_plugins', 'disable_var_swatches' );
    function disable_var_swatches($plugins){
    	if ( is_product() && is_single('3275')) {
    		$key = array_search( 'variation-swatches-for-woocommerce/variation-swatches-for-woocommerce.php', $plugins );
    		if (false !== $key ){
    			echo $key;
    			unset ( $plugins[$key] );			
    		}
    	}
    	return $plugins;
    }

    Please help me find out what could cause the problem. Do you need any credentials to my page?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Display swatches only on specific products’ is closed to new replies.