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

Swatches are not working on iPhone – customers can’t purchase!

Shai Adler

When trying to select on mobile, swatches are not working94842.jpg

Works OK on in desktop

 

Tanvirul Haque

Hi Shai,

Could you check your free and premium version of the WooCommerce Variation Swatches plugin?

The current version of swatches plugins is the following.

WoooCoommerce – Version 5.5.2

Variation Swatches for WoooCoommerce – Version 1.1.17

Variation Swatches for WooCommerce Pro – Version 1.1.17

Please make sure you are using the same version and let me know your reported issue has been fixed or not in this latest update?

Thank You

Shai Adler

Hi

I have these versions indeed

I think I was able to troubleshoot this issue, and it’s a conflict with WP Rocket

When I unchecked this configuration it started to work, I believe this is something you can easily reproduce, WP Rocket is a very popular plugin and it’s not a conflict you want to have

 

 

 

 

Tanvirul Haque

Hello,

Sorry, It’s not about the WP Rocket plugin, Swatches plugin is fully compatible with this plugin. It’s the issue of your site caching. Please try to clear all cache for mobile devices and if possible exclude swatches js files from Wp Rocket plugin.

Thanks

Shai Adler

Hi

 

I can add the JS file, which file should I exclude?

BTW – I don’t think it’s about clearing the cache as I checked it before opening this ticket

Tanvirul Haque

Those files you can exclude:

/wp-content/plugins/woo-variation-swatches/assets/js/frontend.min.js
/wp-content/plugins/woo-variation-swatches-pro/assets/js/frontend-pro.min.js
/wp-content/plugins/woo-variation-swatches-pro/assets/js/add-to-cart-variation.min.js

Thanks

Shai Adler

After checking with WP-Rocket support you should be aware that when activating mobile cache there is an issue and the following configuration should be applied
/jquery-?[0-9.]*(.min|.slim|.slim.min)?.js
/jquery-migrate(.min)?.js
woo_variation_swatches_options
/woo-variation-swatches/

Your answer was incorrect and not on the highest professional level

Tanvirul Haque

Hi Shai,

Apologize, we are sorry for your inconvenience. Is the issue still persist on your site?

Thank you

Shai Adler

No,

This is the right configuration to resolve it