[Woocommerce] Change image in archive based on attribute click

Hi everyone, how do I create a colour selector that changes the product image?

I use Woocommerce and the plugin YITH Color and Label Variations Pro.

The selector works on individual pages but does not produce anything on archive and shop pages.

I have activated all the settings in both Wc and the YITH plugin to enable the functionality also in archive pages but it does not work.

The interesting fact is that with a basic WordPress theme like Twenty Twenty everything works correctly.

If you don’t know how to solve this, do you at least have any idea where I should look? Obviously I have already searched the bricks forum and the WooCommerce documentation.

Do you have any examples of a bricks + WC site that has this functionality?

Thanks everyone

Solved. I have changed the plugin. instead of Yith color and label variations i have choose Variation Swatches For WooCommerce Pro by getwooplugins and it works with no extra settings