WooCommerce variable products

Hi there…
I need to correctly display my woocommerce variable products on my app. I’m a bit stuck on this… I created a quite simple algorithm that works fine when the product has only one variation. The problem comes when the product has more than one variation.
Any suggestion on this???
I really need help on this…
Thanx in advance