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

Disabled Attribute Style: Hide – not working

Ralf Krauß

For not available attributes within variations the hide function isn’t working anymore. I followed the instructions in the tutorial and got all the settings right but since the update it still shows all variation swatches. Please help.

Hakik Zaman

Hi Ralf,

Thanks for reaching out to us. Can you please give us an exact product link to check?

Hope to hear from you soon!

Thank You

Ralf Krauß

Hi Hakik,

I’ve updated the link. The single page for this product is deactivated. It’s included as a shortcode into the main page under the linked section.

I hope this helps.

Thank you!

Hakik Zaman

Hi Ralf,

Sorry for your inconvenience. You have more than 30 variations for the product.

With our basic/free version the diable attribute style: hide will work for (up to 30 variations).

For more than 30 variations you need the Pro version of this plugin.

Thank You

Ralf Krauß

Hi Hakik,

I own the Pro Version of the plugin (I entered the license code in the support form) and have the Plugin setup according to your instructions. But the checkbox for the “Disable AJAX variation threshold…” function isn’t available in the latest version. I guess that’s the thing that’s causing the issue?

Please let me know how to fix this.

Hakik Zaman

Hi Ralf,

Please add the below code using the Code Snippet 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 1200;
}

Then let me know if it resolves your issue or not.

Thank You

Ralf Krauß

Is ist necessary to use the plugin or can I just add the code into the functions.php?

Hakik Zaman

Hi Ralf,

Yes, you can use it inside the functions.php. But in that case, we suggest using a child theme.

Because, if you make changes in the parent theme it can be lost because of the theme update.

Thank You

Ralf Krauß

Ok, in this case, I’ve used the plugin to enter the snippet.

It’s entered and active, but the error still remains.

Hakik Zaman

Hi Ralf,

Can you please give us temporary admin access to your site? We’ll try to investigate the issue for you.

You can add new users by going to Users > Add New set the user and password for us, set the role to admin, and set the info here.

And add your site URL, login username, and password in the site login area. Follow this guideline: https://www.useloom.com/share/27c1f2ac633c4060b2da883d946107d7

Hope to hear from you soon!

Ralf Krauß

I created an account and updated login details in the ticket.

I wasn’t able to watch the video you provided.

Please be careful with your actions.

Hakik Zaman

Hi Ralf,

Please kindly do a plugin compatibility check by doing these steps to identify the error :

=> Deactivate all of your additional plugins except the WooCommerce and WooCommerce Variation Swatches Plugin.

=> See if the problem persists. If the problem is resolved, you can tell which plugin might be the culprit of this error by activating your additional plugins one by one.

If the plugin compatibility check doesn’t help try to switch to a default theme of WordPress. Because from our inspection you are using your custom theme.

Note: To test the above I will suggest using a staging site. You can create a staging site using the WPStaging plugin.

Looking forward to hearing from you soon.

Thank you

Ralf Krauß

I have deactivated all of the plugins, except for WooCommerce – still not working.

I changed the Theme to a standard theme – still not working.

Hakik Zaman

Hi Ralf,

Will you help us to recreate/replicate your issue for one product on our staging site?

I will create a staging site for you and will add the necessary plugins.

Please let me know your thought.

Thank You

Hakik Zaman

Hi Ralf,

It’s a staging site, please login here and setup your theme. And try to replicate your issue here for one product.

https://wptestbox.com/119555/wp-admin

Username: admin

Password: demo

Note: I have added the necessary plugins and sample products for you.

So that I can send this to our development team to check it for you.

Thanks in advance for your co-operation.

Ralf Krauß

Hi Hakik,

thanks for your reply. Our theme produced an error during the installation, can you please remove the theme from the wordpress installation so we can upload the new version? We can’t access the admin panel due to the error.

Thanks in advance!

Hakik Zaman

Hi Ralf,

I have refreshed the staging. Please try to replicate it now.

Hope to hear from you soon!

Thank You

Ralf Krauß

Hi Hakik,

I was able to create my own staging site and found the root of the issue: The plugin doesn’t work when I use the shortcode

[product_page id="28"]

to integrate the single view of the product into the front page.

It works on the regular single page of the product (see here) but not within the shortcode (see here).

Any idea why this might be an issue? It used to work in the past.

Thanks and regards,

Ralf

 

Hakik Zaman

Hi Ralf,

I think Variation Swatches Pro is disabled on both this and this site.

So I couldn’t check what you described. Can you please enable it to check?

BTW, it would be great if you record the issue using a tool like- https://useloom.com

Hope to hear from you soon!

Thank You

Ralf Krauß

Hi Hakik,

Variation Swatches Pro is definitely on.

I think, I’ve linked the wrong page: https://staging.lederschreibunterlagen.de/produkt/schreibunterlage/

This is the single page where it works (as soon as you select a size from the dropdown).

But it doesn’t work on the main page where I use the shortcode.

See this screen recording: https://www.loom.com/share/39628cf8f2e043f0828c1f98874bb423

Also the reset button doesn’t work on the single page.

Thanks and regards,
Ralf

 

Hakik Zaman

Hi Ralf,

I have tried to replicate the issue on our testing server by using [product_page id="12"]

But everything is working fine from our side. You can check this- https://wptestbox.com/119555/

Will you please check and let me know if I missed anything on our staging site? The credentials are the same and will be found here- https://getwooplugins.com/ticket/119555/#comment-332812

Thank You

Ralf Krauß

Hi Hakik,

I have importet the attributes, variations and the products. I’ve also adjusted the shortcode to the same product that creates the issue. Now it also stopped working on your testbox: https://wptestbox.com/119555/

But it’s working on the single page of the product: https://wptestbox.com/119555/?product=schreibunterlage

So it’s not related to our theme or any third-party plugin.

I also did the same settings for Variation Swatches Pro Plugin as on our page.

Thanks and regards,
Ralf

Hakik Zaman

Hi Ralf,

Thanks for replicating the issue on our side. I am forwarding this issue to our development team.

Please give us some time to check. I will get back to you once I get any information regarding this.

Thanks in advance for your patience.

Hakik Zaman

Hi Ralf,

Thanks for your patience. We have added the pre-release version on our staging site.

Can you please check here- https://wptestbox.com/119555/?

Please let me know whether it is working as expected or not.

Hope to hear from you soon!

Thank You