fbpx
Want To Add Extra Images Per Product Variation? Download This Free Plugin

Disabled Attribute style does not work

Hi there,

From a specific number of attributes, the function “Disabled Attribute style => Hide” does not work. It is possible to check this issue at the following address  https://cotton24.interaccion.net/producto/camiseta-sols-regent/

In the case of the Camiseta Sol’s Regent Men, if you select Yellow color, 3XL, 4XL  and 5XL  options are not available, but can be selected. Then a text appears warning that there is no version available. 

On the other hand, on the T-shirt Camiseta Sol’s Regent Women https://cotton24.interaccion.net/producto/camiseta-sols-regent-women/ if it works correctly and there is no possibility to select size sizes not available, for example: 3XL in Yellow color.

Please can you help? Thanks in advance

Golam Kibria

Golam Kibria

Hi Raúl,

Please add the following snippet to the child theme’s functions.php file.If you don’t have any child theme, you can use the Code Snippets plugin to add it.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;}

Let me know if this helps resolve the issue.
Thank You

Thank you very much for your quick reply and your help. We have installed the indicated plug-in and implemented the proposed Snippet and it seems to work correctly. If we see any new bugs, we will report them to you through this channel.

Rgds