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

out of stock for products not properly greying out for some products

patrick nelson

Hi,

I am noticing that some products aren’t properly “greying” out the out of stock variation swatch items and instead shows a “Sorry, no products matched your selection. Please choose a different combination.” error. Mean while some other products that are setup similar but have the “Manage stock” option selected and if you input zero it doesn’t grey out those variations. Is there a way to fix this? As we have a lot of different products that don’t need to manage stop and some that do.

 

Thanks!

Hakik Zaman

Hi patrick,

Thanks for reaching out to us.

Could you record me reproducing your issue using a tool like this? https://www.useloom.com
It helps me to quickly figure out the issue.

Thank you

Hakik Zaman

Hi patrick,

Thanks for recording your issue.

Please add the following snippet using a plugin called Code Snippets.

You can also add it inside your current child theme’s functions.php file

add_filter( 'woo_variation_swatches_global_ajax_variation_threshold_max', 'gwp_155666_global_ajax_variation_threshold_max_edit', 10, 2 );
function gwp_155666_global_ajax_variation_threshold_max_edit( $size, $product ){
return 700;
}

Note: It is recommended to add the Custom Code to the child theme’s functions.php file, to avoid any data loss while updating the Parent Theme.

Then let me know how it goes.

Hope to hear from you soon.

Thank You

patrick nelson

Perfect, Thanks that worked!

 

Additionally is there any reason why you can see why instead of the boxes being greyed out they don’t have the red “x” overtop of them like the option states it is adding? I have that option selected in the settings to add a blur with cross.

Hakik Zaman

Hi patrick,

You are using Breakdance on your site.

They have customized our styles as per their need.

We and Breakdance are also connected, we have given our file for compatibility.

I hope they are working on this issue and will solve it as soon as possible.

For further information regarding this cross-effect, you can contact Breakdance Support.

Thank You