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

Swatch does not show on archive/shop page

Lauritz Wolff

The variation swatch is not showing on the archive/shop page despite me checking the options in settings. I use the Claue theme on my site: www.macebyamalie.dk

Can you please advice?

Hakik Zaman

Hi Lauritz,

Thanks for reaching out to us. I have added the following snippet using the installed Code Snippets plugin-

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

Please check now and let me know whether it displays the swatches from your side or not.

Note: Before checking please flush all the caches like- browser cache, caching plugin cache, and server-side cache.

Thank You