Show variation options in the product dropdown

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