How loop a list in View item view (infolist)?

Im facing a situation where a Product can have many Product variants.
So in the view-one-product view, I need to loop through all its product variants and display those variants in a list.
How can I do that?
Screenshot_2024-07-24_at_15.25.46.png
Was this page helpful?