• Resolved tkster95

    (@tkster95)


    From the wordpress dashboard – Swatch Settings – Advanced… I checked “disable out of stock item” and set it to “blur without cross”. That has been working fine for the past 6 months on many products with over 100 variations.

    Today, unfortunately, it stopped working. Now if a product has more than 30 variations the “blur without cross” for out-of-stock items no longer works. As of today, out of stock items will no longer blur out, allowing a customer to choose an item that is out of stock (however it will not let them purchase the out-of-stock item so that’s good).

    I’m using the pro version of the plugin. I remember on a previous version there was a section labeled “ajax variation threshold” where I could increase the number of variations I could have and still get the “disable out of stock item” to function correctly. That section is no longer available.

    Has anyone else ran into this issue recently after the update? How can I increase the number of variations I can have and still get the blur without cross to work correctly? Thanks.

Viewing 10 replies - 1 through 10 (of 10 total)
  • I have the same problem with the free version of the plugin. I think the bug comes with version 2.0.2
    I hope this will be fixed soon ??

    I downgraded to 2.0.1 and everything works again fine!
    I hope the problem will be fixed soon.

    Thread Starter tkster95

    (@tkster95)

    Hi kjm2202.

    Thanks for the info. I have 2.0.2 as well, I’d like to go back to a previous version too. How did you go about doing it? Thanks for the help.

    Thread Starter tkster95

    (@tkster95)

    Hi,

    I found the plugin WP Rollback and used that to go back to version 2.0.0. Now the “disable out of stock items” works again up to 100 variations!

    I wonder why they downgraded the ability for that function to work from 100 to 30 with the update!?

    Thanks for the suggestion.

    Plugin Support fizanzvai

    (@fizanzvai)

    @tkster95 @kjm2202

    Could you try the following snippet? Hopefully, this will help.

    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;
    }

    Thank You

    Thread Starter tkster95

    (@tkster95)

    Hi fizanzvai, thanks for the suggestion. I will try to add that shortly and let you know how it goes!

    CatBinetti

    (@tecnimusic)

    Hello @tkster95, if I help you the snippet?

    CatBinetti

    (@tecnimusic)

    I have the same problem, and the snippet doesn’t fix it.

    Thread Starter tkster95

    (@tkster95)

    Hi CatBinetti,

    The snippet worked for me, but only when using the pro version of plugin.

    On another website I have, I downloaded the non-pro version of the plugin and the snippit doesn’t work.

    Using the free version, I had this same problem. The “disabled” class was not added to out of stock “li.variable-item”. The above snippet worked and the class is now added. The plugin should probably be updated so we don’t have to add a custom function. Thanks for fix.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘“Disable out of stock item” no longer works’ is closed to new replies.