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

Swatches not showing on thumbnails in archive / shop page

Hello,

I’m trying to enable swatches on my product thumbnails, enabled the necessary in settings but nothing is showing.

Can you please check why it’s not working.

Here’s a temporary access to my test site:

https://dev.wonderbayt.com/wp-admin/?wtlwp_token=1eeaeb568d7c74481411d66016db02230cf216503dcbb64ea60cf8382dac019082f08dc7243d0cc4f90ac54d4d763a2e5a2b8650c27e7082ee318b37fff04e8e

 

Much Appreciated.

Hakik Zaman

Hi Boutros,

Thanks for reaching out to us. You are using Ultimate Addons for Elementor for your shop product grid.

So, the grid is skipping some standard WooCommerce hooks. It is the reason for not displaying swatches.

I have added a plugin called Code Snippets and added the following snippet using the Code Snippets plugin:

add_action('uael_woo_products_after_summary_wrap', function(){
if ( function_exists( 'woo_variation_swatches' ) ){
woo_variation_swatches()->show_archive_page_swatches();
}
}, 31);

Also added the necessary product wrapper and image selector here: https://paste.pics/MVIHR

Please check now and let me know if it is working. BTW, try to clear your caches like browser cache, caching plugin cache, and server-side cache before checking your site.

Hope to hear from you soon.

Thank You