Show variation options in the product dropdown

The $terms array compared names field to slugs. No it returns all the fields.