So I solved this thing but I have another problem with this plugin. In the virtuemart product, the color details work as they should, but when I switch to categories where other products are already, the color buttons don't work. So only one left one works and when I want to click on another color, the click does not work and it returns to the left one first.
I found that when I rewrite html / com_virtuemart / sublayouts / products_horizon.php to another version, it works, but I lose all css formatting. Then I tried to turn off Ajax in the virtuemart and it was also possible to click with the buttons, but they couldn't change the children's products, so the photos didn't change either. Can anyone tell me to make this work?