logo

Palette - Make it Colorful🎨

Palette - Visual Page Builder, no design degree required.

Live Demo Download Palette

Scroll

Help remove duplicates in Views

22/02/2025, by Anonymous (not verified)

I'm creating an online store using Drupal Commerce. To allow customers to choose the memory size when purchasing a phone, I'm using Variations (just like in Kickstart). Everything displays perfectly on the product page - there's a dropdown list of options, and the price updates accordingly. However, I've encountered a problem with the category page - for displaying products, I'm using Views (outputting a ready-made entity), but products that have multiple Variations are displayed as duplicates, all showing the same price. Can you advise me on how to remove these duplicates and ensure that only one product is displayed?

What I've tried that didn't work:

  • enabling aggregation,
  • turning on uniqueness in "query settings",
  • adding a filter by term and checking the box for unique values,
  • grouping in various ways, but nothing seems to work...
I would greatly appreciate any advice!