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

Product Variations Cannot Be Selected On Mobile

Sue B

After installing Variations swatches, the product variation cannot be selected on mobile (simulation for mobile on desktop will not catch this as it was working on a desktop simulation for mobile).

When I click on the swatch on a real mobile phone, it does not select.

After uninstalling “Variations Swatches” plugin and using Woocommerce default variation menu, everything works again. The different variations can be selected properly on on mobile again.

Please help.

NOTE: the swatches selection works well on desktop.

Golam Kibria

Hi Sue,

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!

Sue B

Hi Golam,

Thank you! I have already troubleshoot myself (from other fix recommended here). It was due to Autooptimize with minifying the JS.

This seems to be a known problem for variation swatch if / when minify actions occured for JS as I found this solution on stackoverflow.

Please do recommend what js files to exclude from minify process or if you have a recommendation for another load optimisation plugin that is compatible with your plugin.

Golam Kibria

Hi Sue,

It is great that you have figured it out.

You need to exclude the following files to avoid the issue:

/wp-content/plugins/woo-variation-swatches/assets/css/(.*).css
/wp-content/plugins/woo-variation-swatches/assets/js/(.*).js

Let me know if this helps.

Thank You

Sue B

Hi Golam,

I have added the exclusions as indicated and the problem does  not persist anymore with Autoptimize. Thank you for the solution of this problem!

Sue B

Yes, please close this ticket.