ForEach Loop iterates only once when inserting product variations

ForEach Loop iterates only once when inserting product variations