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

Problem with attribute filtering

Gosia Eu

Hi,

I have a problem with attribute / variant filtering on one product page.
This is the product page: https://modne-rolety.pl/sklep/plisy/

On the others everything works fine.
Please take a look here: https://modne-rolety.pl/sklep/rolety-rzymskie/

I don’t know what this problem could be caused by.
Perhaps you can help me?

Best Regards,

Gosia

Hakik Zaman

Hi Gosia,

Thanks for reaching out to us. Unfortunately, I didn’t understand what issue you are facing after visiting the two links you have given.

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 Gosia,

How many variations do you have for the last product in your video?

Hope to hear from you soon.

Thank You

Gosia Eu

Hi,

 

He has 104 variations. Could this have an impact?

 

Best Regards,

Gosia

Hakik Zaman

Hi Gosia,

Please add a plugin called Code Snippets, then add the following snippet using the Code Snippets plugin:

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

Please let me know whether it resolves your issue or not.

Note: You have to use the Code Snippets plugin. The snippet will not work inside your theme’s functions.php file. Please flush your caches like browser cache, caching plugin cache, and server-side cache before checking.

Thank You

Gosia Eu

Hi,

Yes, it helped.

I very much appreciate your help.

Thank you!

Gosia