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

Issue of selecting variable characteristics

Théo Jeanney

Hello,
I manage an e-commerce site for one of my clients. At the moment, when I select the attributes of a product, the behaviour of the options drop-down list doesn’t work properly. I always get all the options displayed.
Do you have any idea how I can solve my problem please?

Thank you in advance,
Yours sincerely
Théo Jeanney.

Golam Kibria

Hi Théo,

I believe that you want to hide the unavailable options.

You have lots of variations.

The basic version of the plugin has some limitations on the number of variations it supports.

You will need the premium version of the Swatches plugin to dynamically hide the unavailable options.

If you have more questions or confusion, please let us know.

Thank you

Théo Jeanney

Hello Golam,

Thank you for your quick response.

Yes indeed, I am looking to hide the invalid options of my product. I have about 500 variations.

Could you tell me what the product limit is with the basic version of the plugin? Also, if I take the premium option of the plugin, where can I go to hide the invalid options? I do not see this option in the plugin settings.

Thank you in advance for your response,

Kind regards,

Théo Jeanney

Golam Kibria

Hi Théo,

The basic version supports up to 30 variations.

There are no such limits in the premium version.

There is no explicit option for the supported variation.

The premium plugin handles it internally.

In addition to the premium version, you may need an additional snippet as you have lots of variations.

I will help you with that.

Thank You

Théo Jeanney

Hi Golam

Thank you for all your answers,

I’ll check with my client but I think we’ll probably go for the plugin’s premium offer in this case.

Could you be a bit more specific about the additional snippet I might need?

Thanks for your help,

Théo

Golam Kibria

Hi Théo,

Please add the following snippet to your site 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;

}

The snippet requires the premium plugin.

Thank You

Théo Jeanney

Hi Golem,

Thank you, it worked fine now, I took the premium version.

Have a great evening!

Théo