通过单击Woocommerce中的属性显示相应的图像

This is one of the attributes in the product. enter image description here

It is made by me becouse I need to cross two attributes. When you click this appear enter image description here

I need to change the image in the product gallery by clicking just like normal woocommerce does.

How can I call to that option/trigger?