I am facing the following issue. I have a variable product that has a main product image and one image per variable. The product is a pair of trousers. The main image is the pair of trousers in green color. The variable is of type color and there are two values : black and white. For each variable of type color there is a respective product image (black trousers and white trousers).
When the customer selects the black trousers in the mini-cart widget placed in the sidebar the main product image is loaded (green trousers) instead of the selected variable product (black trousers). The product variable type select is correct (black) only the image is incorrect. However when I visit the main cart page I can see the correct image.