title: Woocommerce: How to loop through product variations?
body: <p>I am building a Woocommerce site, and the client is going to sale headphones. Each headphone will have multiple colors. In the product's index page he wants to display all product variations instead of 1 headphone.</p>
  
  <p>For example, If i create 1 product and add the variations (color), in the index there will be 1 product, and I will be able to choose a variation in the product detail page.</p>
  
  <p>But I could also create one category, let's say 'headphones' and add each color as a single product and loop through that category to display the same product multiple times just with different colors.</p>
  
  <p>What would be the best approach for this, and if the best approach is to create one single product with color variations, how do I loop through the variations in order to display each single color in the product's index?</p>