In my view I have duplicate entities for my product list, this is different from Drupal 7 as you could use the distinct module.

How can I remove the duplicates from my commerce product views in Drupal 8?


Drupal Commerce has duplicate entities because a product is referenced from multiple variations, any field you add to a variation type will find multiple duplications in your view most notably in images but could be any field in example t-shirt size.

An easy way to remove these is to set in your view:

Product: Variations:delta (= 0)

enter image description here

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.