Thanks for answering, but this is not a solution.
It still doesn’t work, because it shows that is in stock in total, and not for the certain variable the user chooses.
I’m sure you understand what I mean, this should be done by default, when you filter a shoe size for example, it should show only the shoes that have that variable in stock.